2014-03-29 21:24:30 +01:00
|
|
|
# Template file for 'darkplaces'
|
|
|
|
pkgname=darkplaces
|
2014-11-03 22:06:21 +01:00
|
|
|
version=20140513
|
2015-05-31 12:56:40 +02:00
|
|
|
revision=2
|
2014-03-29 21:24:30 +01:00
|
|
|
create_wrksrc=yes
|
|
|
|
hostmakedepends="unzip"
|
2014-11-03 22:06:21 +01:00
|
|
|
makedepends="zlib-devel alsa-lib-devel libjpeg-turbo-devel libXpm-devel libXxf86vm-devel SDL-devel MesaLib-devel"
|
2014-03-29 21:24:30 +01:00
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
short_desc="An advanced Quake 1 game engine"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-03-29 21:24:30 +01:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://icculus.org/twilight/darkplaces/"
|
|
|
|
distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
|
2014-11-03 22:06:21 +01:00
|
|
|
checksum=69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9
|
2014-03-29 21:24:30 +01:00
|
|
|
|
2015-05-31 12:56:40 +02:00
|
|
|
post_extract() {
|
2014-03-29 21:24:30 +01:00
|
|
|
# Extract the real source code.
|
|
|
|
unzip -q darkplacesenginesource${version}.zip
|
|
|
|
}
|
|
|
|
do_build() {
|
2014-08-28 14:29:30 +02:00
|
|
|
make_build_args="DP_FS_BASEDIR=/opt/quake DP_LINK_TO_LIBJPEG=1"
|
2015-05-31 12:56:40 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*|x86_64*) ;;
|
|
|
|
*) make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2=" ;;
|
|
|
|
esac
|
2014-08-28 14:29:30 +02:00
|
|
|
|
2014-03-29 21:24:30 +01:00
|
|
|
cd ${pkgname}
|
2014-08-28 14:29:30 +02:00
|
|
|
make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release
|
2014-03-29 21:24:30 +01:00
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
cd ${pkgname}
|
|
|
|
install -d ${DESTDIR}/usr/{bin,share/quake}
|
|
|
|
install -m755 darkplaces-{dedicated,glx,sdl} ${DESTDIR}/usr/bin
|
|
|
|
|
|
|
|
for i in 16 24 32 48 64 72; do
|
|
|
|
install -Dm644 darkplaces${i}x${i}.png ${DESTDIR}/usr/share/icons/hicolor/${i}x${i}/apps/darkplaces.png
|
|
|
|
done
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
|
|
}
|