darkplaces: obey our LDFLAGS
This commit is contained in:
parent
4317135bd5
commit
9fe1247eb3
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'darkplaces'
|
# Template file for 'darkplaces'
|
||||||
pkgname=darkplaces
|
pkgname=darkplaces
|
||||||
version=20140513
|
version=20140513
|
||||||
revision=2
|
revision=3
|
||||||
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"
|
||||||
|
@ -17,6 +17,7 @@ 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"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -25,8 +26,10 @@ do_build() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cd ${pkgname}
|
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() {
|
do_install() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
install -d ${DESTDIR}/usr/{bin,share/quake}
|
install -d ${DESTDIR}/usr/{bin,share/quake}
|
||||||
|
|
Loading…
Reference in New Issue