darkplaces: obey our LDFLAGS
This commit is contained in:
parent
4317135bd5
commit
9fe1247eb3
1 changed files with 5 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue