38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'warzone2100'
|
|
pkgname=warzone2100
|
|
version=4.0.1
|
|
revision=1
|
|
wrksrc="warzone2100"
|
|
build_style=cmake
|
|
configure_args="-DWZ_ENABLE_WARNINGS_AS_ERRORS=OFF -DWZ_DISTRIBUTOR=void"
|
|
hostmakedepends="zip unzip asciidoc gettext pkg-config shaderc"
|
|
makedepends="libpng-devel fribidi-devel fontconfig-devel SDL2-devel libvorbis-devel
|
|
libtheora-devel libopenal-devel glew-devel physfs-devel harfbuzz-devel
|
|
libsodium-devel libcurl-devel"
|
|
depends="desktop-file-utils warzone2100-data"
|
|
short_desc="3D realtime strategy game on a future Earth"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://wz2100.net"
|
|
distfiles="https://github.com/Warzone2100/${pkgname}/releases/download/${version}/${pkgname}_src.tar.xz"
|
|
checksum=337622d5f813bbc1f9a3b4fee0874fcc074806781cfa9c25a252534ddd240ab9
|
|
nocross="fails to detect SDL2 when cross-compiling"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
echo "target_link_libraries(warzone2100 atomic)" >> CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
warzone2100-data_package() {
|
|
short_desc+=" - data files"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
vmove usr/share/${sourcepkg}
|
|
}
|
|
}
|