xonotic: use SSE only where possible

This commit is contained in:
Christian Neukirchen 2014-08-28 14:29:53 +02:00
parent 822d1a666f
commit eb95469354
1 changed files with 8 additions and 6 deletions

View File

@ -17,12 +17,14 @@ makedepends="gmp-devel MesaLib-devel SDL-devel libcurl-devel alsa-lib-devel
depends="desktop-file-utils xonotic-data>=${version}"
do_build() {
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \
DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \
DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sdl-release
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \
DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sv-release
make_build_args="DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1"
if [ "$XBPS_MACHINE" != "i686" -a "$XBPS_MACHINE" != "x86_64" ]; then
make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2="
fi
echo $make_build_args
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" $make_build_args cl-release
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" $make_build_args sdl-release
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" $make_build_args sv-release
cd source/d0_blind_id
autoreconf -fi