From eb95469354c205704da2074c64ba35634f4df7b6 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 28 Aug 2014 14:29:53 +0200 Subject: [PATCH] xonotic: use SSE only where possible --- srcpkgs/xonotic/template | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/srcpkgs/xonotic/template b/srcpkgs/xonotic/template index f6ae0676d95..28b07bad292 100644 --- a/srcpkgs/xonotic/template +++ b/srcpkgs/xonotic/template @@ -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