darkplaces: use SSE only where possible
This commit is contained in:
parent
9ac9c63784
commit
822d1a666f
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user