mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
darkplaces: use SSE only where possible
This commit is contained in:
parent
9ac9c63784
commit
822d1a666f
1 changed files with 6 additions and 2 deletions
|
@ -19,9 +19,13 @@ do_configure() {
|
||||||
unzip -q darkplacesenginesource${version}.zip
|
unzip -q darkplacesenginesource${version}.zip
|
||||||
}
|
}
|
||||||
do_build() {
|
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}
|
cd ${pkgname}
|
||||||
sed -i -e '1i DP_LINK_TO_LIBJPEG=1' makefile
|
make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release
|
||||||
make OPTIM_RELEASE="${CFLAGS}" DP_FS_BASEDIR=/opt/quake release
|
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
|
|
Loading…
Add table
Reference in a new issue