From 4b9dc2d85c60ea44b0defd589ee77c9e73f4794c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 14 Nov 2014 09:37:01 +0100 Subject: [PATCH] mixxx: unbreak x86: force SSE instructions. --- srcpkgs/mixxx/template | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/srcpkgs/mixxx/template b/srcpkgs/mixxx/template index 876d45872f..2fc246beba 100644 --- a/srcpkgs/mixxx/template +++ b/srcpkgs/mixxx/template @@ -17,18 +17,21 @@ checksum="00961b5d6c1e6d6686d76e55de474b943bbeff4e59b163dddd3d9940dc1b0331" _scons_args="qtdir=/usr/include shoutcast=0 faad=1 tuned=0 prefix=/usr" do_build() { + if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + export CFLAGS+=" -msse" + export CXXFLAGS+=" -msse" + fi sed -i \ -e 's/branch_name = .*/branch_name = "mixxx"/' \ -e 's/bazaar_revision = .*/bazaar_revision = "'$version'"/' \ src/SConscript - scons ${makejobs} \ - $_scons_args \ - install_root=$DESTDIR/usr + scons ${makejobs} ${_scons_args} } do_install() { - scons ${makejobs} \ - $_scons_args \ - install_root=$DESTDIR/usr \ - install + if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + export CFLAGS+=" -msse" + export CXXFLAGS+=" -msse" + fi + scons ${_scons_args} install_root=${DESTDIR}/usr install }