darkplaces: portability patch for musl.
This commit is contained in:
parent
b100261fd0
commit
59a637eb89
11
srcpkgs/darkplaces/patches/musl.patch
Normal file
11
srcpkgs/darkplaces/patches/musl.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- darkplaces/sys_shared.c.orig 2015-05-31 12:54:42.131106842 +0200
|
||||||
|
+++ darkplaces/sys_shared.c 2015-05-31 12:54:58.842284100 +0200
|
||||||
|
@@ -69,7 +69,7 @@ void Sys_AllowProfiling(qboolean enable)
|
||||||
|
else
|
||||||
|
moncleanup();
|
||||||
|
#endif
|
||||||
|
-#elif defined(__linux__) || defined(__FreeBSD__)
|
||||||
|
+#elif defined(__linux__) && defined(__GLIBC__) || defined(__FreeBSD__)
|
||||||
|
extern int moncontrol(int);
|
||||||
|
moncontrol(enable);
|
||||||
|
#endif
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'darkplaces'
|
# Template file for 'darkplaces'
|
||||||
pkgname=darkplaces
|
pkgname=darkplaces
|
||||||
version=20140513
|
version=20140513
|
||||||
revision=1
|
revision=2
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
hostmakedepends="unzip"
|
hostmakedepends="unzip"
|
||||||
makedepends="zlib-devel alsa-lib-devel libjpeg-turbo-devel libXpm-devel libXxf86vm-devel SDL-devel MesaLib-devel"
|
makedepends="zlib-devel alsa-lib-devel libjpeg-turbo-devel libXpm-devel libXxf86vm-devel SDL-devel MesaLib-devel"
|
||||||
|
@ -13,15 +13,16 @@ homepage="http://icculus.org/twilight/darkplaces/"
|
||||||
distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
|
distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
|
||||||
checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
|
checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
|
||||||
|
|
||||||
do_configure() {
|
post_extract() {
|
||||||
# Extract the real source code.
|
# Extract the real source code.
|
||||||
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"
|
make_build_args="DP_FS_BASEDIR=/opt/quake DP_LINK_TO_LIBJPEG=1"
|
||||||
if [ "$XBPS_TARGET_MACHINE" != "i686" -a "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2="
|
i686*|x86_64*) ;;
|
||||||
fi
|
*) make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2=" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release
|
make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release
|
||||||
|
|
Loading…
Reference in New Issue
Block a user