2018-06-16 17:28:33 +02:00
|
|
|
# Template file for '0ad'
|
|
|
|
pkgname=0ad
|
2018-12-27 10:42:43 +01:00
|
|
|
version=0.0.23b
|
2018-12-12 12:12:49 +01:00
|
|
|
revision=2
|
2018-06-16 17:28:33 +02:00
|
|
|
wrksrc="${pkgname}-${version}-alpha"
|
|
|
|
hostmakedepends="pkg-config perl cmake python"
|
|
|
|
makedepends="SDL2-devel boost-devel gloox-devel libcurl-devel libenet-devel
|
|
|
|
libopenal-devel libpng-devel libsodium-devel libxml2-devel miniupnpc-devel
|
2018-09-12 15:45:50 +02:00
|
|
|
nspr-devel wxWidgets-gtk3-devel"
|
2018-06-16 17:28:33 +02:00
|
|
|
depends="${pkgname}-data"
|
|
|
|
short_desc="Historically-based real-time strategy game"
|
|
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
|
|
license="GPL-2.0-or-later, CC-BY-SA-3.0, MPL-2.0, MIT"
|
|
|
|
homepage="https://play0ad.com"
|
|
|
|
distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz"
|
2018-12-27 10:42:43 +01:00
|
|
|
checksum=01bff7641ee08cac896c54d518d7e4b01752513105558f212e3199d747512a37
|
2018-06-16 17:28:33 +02:00
|
|
|
nocross="uses bundled third-party libraries that do not cross-compile"
|
|
|
|
|
|
|
|
CXXFLAGS="-fpermissive"
|
2018-12-27 10:42:43 +01:00
|
|
|
# Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
|
|
|
|
LDFLAGS="-fuse-ld=bfd"
|
2018-09-12 15:45:50 +02:00
|
|
|
export WX_CONFIG="wx-config-gtk3"
|
2018-06-16 17:28:33 +02:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
cd ${wrksrc}/build/workspaces
|
|
|
|
./update-workspaces.sh --bindir=/usr/bin --libdir=/usr/lib/0ad \
|
|
|
|
--datadir=/usr/share/${pkgname}/data
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make config=release -C build/workspaces/gcc ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin binaries/system/pyrogenesis
|
|
|
|
vmkdir usr/lib/${pkgname}
|
|
|
|
vcopy binaries/system/*.so usr/lib/${pkgname}
|
|
|
|
vmkdir usr/share/${pkgname}/data
|
|
|
|
vcopy binaries/data/l10n usr/share/${pkgname}/data
|
|
|
|
vbin build/resources/${pkgname}.sh ${pkgname}
|
|
|
|
vinstall build/resources/${pkgname}.desktop 0644 usr/share/applications
|
|
|
|
vinstall build/resources/${pkgname}.png 0644 usr/share/pixmaps
|
|
|
|
vlicense LICENSE.txt
|
|
|
|
}
|