Skip to content

Commit e811b05

Browse files
xckorofl0r
authored andcommitted
xf86-video-cirrus: modernize build recipe
1 parent 58bce3d commit e811b05

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pkg/xf86-video-cirrus

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ sha512=2af1b089527fb715b07b6d50da863972a1d063863e976c5e75576e70b502b74af43bc38ad
1111
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-cirrus-1.5.2.tar.bz2
1212

1313
[build]
14-
LDFLAGS=$(printf "%s" "$optldflags" | sed 's/-z,now/-z,lazy/') \
15-
./configure -C --prefix="$butch_prefix"
16-
make V=1 DESTDIR="$butch_install_dir" -j$MAKE_THREADS install
17-
14+
cp -f "$K"/config.sub .
15+
xconfflags="--build=$($CC -dumpmachine)"
16+
[ -n "$CROSS_COMPILE" ] && \
17+
xconfflags="--host=$($CC -dumpmachine)"
18+
CFLAGS="$optcflags" \
19+
LDFLAGS=$(printf "%s" "$optldflags" | sed 's/-z,now/-z,lazy/') \
20+
./configure -C --prefix="$butch_prefix" $xconfflags
21+
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

0 commit comments

Comments
 (0)