2012-04-05 23:07:49 +02:00
|
|
|
# Template file for 'xonotic'
|
|
|
|
pkgname=xonotic
|
2013-06-11 10:26:13 +02:00
|
|
|
version=0.7.0
|
|
|
|
revision=1
|
2012-04-05 23:07:49 +02:00
|
|
|
wrksrc="Xonotic"
|
|
|
|
homepage="http://xonotic.org"
|
|
|
|
license="GPL-2, GPL-3"
|
|
|
|
distfiles="http://dl.xonotic.org/xonotic-${version}-source.zip"
|
|
|
|
short_desc="A free, fast-paced crossplatform first-person shooter"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-06-11 10:26:13 +02:00
|
|
|
checksum=f1a527de67ab2bfd2b17414614301a783ad04e00dbd0d8abb516505e4ee9f88c
|
|
|
|
|
|
|
|
hostmakedepends="unzip automake libtool"
|
|
|
|
makedepends="gmp-devel MesaLib-devel SDL-devel libcurl-devel alsa-lib-devel
|
|
|
|
libmodplug-devel libvorbis-devel libXpm-devel libjpeg-turbo-devel
|
|
|
|
xonotic-data>=${version}"
|
2012-04-05 23:07:49 +02:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \
|
|
|
|
DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release
|
|
|
|
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \
|
|
|
|
DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sdl-release
|
|
|
|
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" \
|
|
|
|
DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sv-release
|
|
|
|
|
|
|
|
cd source/d0_blind_id
|
2013-06-11 10:26:13 +02:00
|
|
|
autoreconf -fi
|
2012-04-05 23:07:49 +02:00
|
|
|
./configure --prefix=/usr --disable-rijndael
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# binaries
|
|
|
|
vinstall source/darkplaces/darkplaces-dedicated 755 usr/bin xonotic-dedicated
|
|
|
|
vinstall source/darkplaces/darkplaces-glx 755 usr/bin xonotic-glx
|
|
|
|
vinstall source/darkplaces/darkplaces-sdl 755 usr/bin xonotic-sdl
|
|
|
|
|
|
|
|
# convenience files
|
|
|
|
vmkdir usr/share/applications
|
|
|
|
install -Dm644 $FILESDIR/*.desktop -t $DESTDIR/usr/share/applications
|
|
|
|
install -Dm644 misc/logos/icons_png/xonotic_512.png \
|
|
|
|
$DESTDIR/usr/share/pixmaps/xonotic.png
|
|
|
|
|
|
|
|
# crypto stuff
|
|
|
|
cd source/d0_blind_id
|
|
|
|
make DESTDIR=$DESTDIR install
|
|
|
|
|
|
|
|
# Remove devel stuff
|
|
|
|
rm -rf $DESTDIR/usr/include $DESTDIR/usr/lib/pkgconfig $DESTDIR/usr/lib/*.a
|
|
|
|
}
|
2013-04-14 18:42:25 +02:00
|
|
|
|
|
|
|
xonotic_package() {
|
2013-06-11 10:26:13 +02:00
|
|
|
depends="desktop-file-utils xonotic-data>=${version}"
|
2013-04-14 18:42:25 +02:00
|
|
|
pkg_install() {
|
2013-06-11 10:26:13 +02:00
|
|
|
vmove all
|
2013-04-14 18:42:25 +02:00
|
|
|
}
|
|
|
|
}
|