2014-03-29 20:24:30 +00:00
|
|
|
# Template file for 'darkplaces'
|
|
|
|
pkgname=darkplaces
|
|
|
|
version=20130304
|
2014-09-16 08:48:17 +00:00
|
|
|
revision=3
|
2014-03-29 20:24:30 +00:00
|
|
|
create_wrksrc=yes
|
|
|
|
hostmakedepends="unzip"
|
2014-09-16 08:48:17 +00:00
|
|
|
makedepends="alsa-lib-devel libjpeg-turbo-devel libXpm-devel libXxf86vm-devel SDL-devel MesaLib-devel"
|
2014-03-29 20:24:30 +00:00
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
short_desc="An advanced Quake 1 game engine"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://icculus.org/twilight/darkplaces/"
|
|
|
|
distfiles="http://icculus.org/twilight/$pkgname/files/darkplacesengine${version}.zip"
|
|
|
|
checksum=e1858dcba033b1dfc6e685482745b7137ceb23dfd710671971cd5e34529a9f44
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# Extract the real source code.
|
|
|
|
unzip -q darkplacesenginesource${version}.zip
|
|
|
|
}
|
|
|
|
do_build() {
|
2014-08-28 12:29:30 +00:00
|
|
|
make_build_args="DP_FS_BASEDIR=/opt/quake DP_LINK_TO_LIBJPEG=1"
|
2014-08-28 13:21:14 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" != "i686" -a "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
|
2014-08-28 12:29:30 +00:00
|
|
|
make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2="
|
|
|
|
fi
|
|
|
|
|
2014-03-29 20:24:30 +00:00
|
|
|
cd ${pkgname}
|
2014-08-28 12:29:30 +00:00
|
|
|
make OPTIM_RELEASE="${CFLAGS}" ${make_build_args} release
|
2014-03-29 20:24:30 +00: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
|
|
|
|
}
|