diff --git a/srcpkgs/darkplaces/template b/srcpkgs/darkplaces/template index 588e2876ce5..fb055a794b2 100644 --- a/srcpkgs/darkplaces/template +++ b/srcpkgs/darkplaces/template @@ -1,7 +1,7 @@ # Template file for 'darkplaces' pkgname=darkplaces version=20140513 -revision=2 +revision=3 create_wrksrc=yes hostmakedepends="unzip" makedepends="zlib-devel alsa-lib-devel libjpeg-turbo-devel libXpm-devel libXxf86vm-devel SDL-devel MesaLib-devel" @@ -17,6 +17,7 @@ post_extract() { # Extract the real source code. unzip -q darkplacesenginesource${version}.zip } + do_build() { make_build_args="DP_FS_BASEDIR=/opt/quake DP_LINK_TO_LIBJPEG=1" case "$XBPS_TARGET_MACHINE" in @@ -25,8 +26,10 @@ do_build() { esac cd ${pkgname} - make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release + # LDFLAGS to make PIE work + make OPTIM_RELEASE="${CFLAGS} ${LDFLAGS}" ${make_build_args} release } + do_install() { cd ${pkgname} install -d ${DESTDIR}/usr/{bin,share/quake}