void-packages/srcpkgs/xonotic/template

54 lines
1.9 KiB
Text
Raw Normal View History

2012-04-05 21:07:49 +00:00
# Template file for 'xonotic'
pkgname=xonotic
2013-06-11 08:26:13 +00:00
version=0.7.0
revision=3
2012-04-05 21:07:49 +00: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 08:26:13 +00:00
checksum=f1a527de67ab2bfd2b17414614301a783ad04e00dbd0d8abb516505e4ee9f88c
nocross=yes
2013-06-11 08:26:13 +00:00
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"
depends="desktop-file-utils xonotic-data>=${version}"
2012-04-05 21:07:49 +00:00
do_build() {
2014-08-28 12:29:53 +00:00
make_build_args="DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1"
2014-08-28 13:21:01 +00:00
if [ "$XBPS_TARGET_MACHINE" != "i686" -a "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
2014-08-28 12:29:53 +00:00
make_build_args+=" CFLAGS_SSE= CFLAGS_SSE2="
fi
echo $make_build_args
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" $make_build_args cl-release
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" $make_build_args sdl-release
make ${makejobs} -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" $make_build_args sv-release
2012-04-05 21:07:49 +00:00
cd source/d0_blind_id
2013-06-11 08:26:13 +00:00
autoreconf -fi
2012-04-05 21:07:49 +00: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
}