darkplaces: use SSE only where possible

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

View File

@ -19,9 +19,13 @@ do_configure() {
unzip -q darkplacesenginesource${version}.zip
}
do_build() {
make_build_args="DP_FS_BASEDIR=/opt/quake DP_LINK_TO_LIBJPEG=1"
if [ "$XBPS_MACHINE" != "i686" -a "$XBPS_MACHINE" != "x86_64" ]; then
make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2="
fi
cd ${pkgname}
sed -i -e '1i DP_LINK_TO_LIBJPEG=1' makefile
make OPTIM_RELEASE="${CFLAGS}" DP_FS_BASEDIR=/opt/quake release
make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release
}
do_install() {
cd ${pkgname}