2015-08-10 13:13:22 +00:00
|
|
|
# Template file for 'boswars'
|
|
|
|
pkgname=boswars
|
|
|
|
version=2.7
|
2016-09-02 15:24:11 +00:00
|
|
|
revision=3
|
2015-09-03 07:19:42 +00:00
|
|
|
wrksrc="${pkgname}-${version}-src"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="lua51-devel libtheora-devel libogg-devel libpng-devel libvorbis-devel MesaLib-devel SDL-devel"
|
2015-08-10 13:13:22 +00:00
|
|
|
short_desc="A futuristic real-time strategy game (RTS)"
|
|
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://boswars.org"
|
|
|
|
distfiles="http://www.boswars.org/dist/releases/boswars-${version}-src.tar.gz"
|
|
|
|
checksum=dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e
|
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
do_build() {
|
2016-09-02 15:24:11 +00:00
|
|
|
# Patch make.py to respect our $CXXFLAGS and $LDFLAGS
|
|
|
|
sed -i make.py \
|
2016-09-02 15:29:52 +00:00
|
|
|
-e "s;^gccflags = '\(.*\)'.split();gccflags = '${CXXFLAGS} \1'.split();" \
|
2016-09-02 15:24:11 +00:00
|
|
|
-e "/^gccflags.*/a gldflags = '${LDFLAGS}'.split()" \
|
|
|
|
-e "s;self.ldflags = list(ldflags);self.ldflags = gldflags + list(ldflags);"
|
2015-08-10 13:13:22 +00:00
|
|
|
python make.py
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/share/boswars
|
|
|
|
vcopy fbuild/release/boswars usr/share/boswars/
|
|
|
|
vcopy campaigns usr/share/boswars/
|
|
|
|
vcopy engine usr/share/boswars/
|
|
|
|
vcopy graphics usr/share/boswars/
|
|
|
|
vcopy intro usr/share/boswars/
|
|
|
|
vcopy languages usr/share/boswars/
|
|
|
|
vcopy maps usr/share/boswars/
|
|
|
|
vcopy scripts usr/share/boswars/
|
|
|
|
vcopy sounds usr/share/boswars/
|
|
|
|
vbin ${FILESDIR}/boswars
|
2015-09-19 00:19:29 +00:00
|
|
|
vinstall ${FILESDIR}/boswars.desktop 644 usr/share/applications/
|
|
|
|
vinstall ${FILESDIR}/boswars.png 644 usr/share/pixmaps/
|
2015-08-10 13:13:22 +00:00
|
|
|
}
|