void-packages/srcpkgs/widelands/template

33 lines
1.2 KiB
Bash

# Template file for 'widelands'
pkgname=widelands
# Widelands 1.0 release supercedes beta builds
reverts="21_5 21_4 21_3 21_2 21_1 20_4 20_3 20_2 20_1 19_10 19_9 19_8 19_7 19_6
19_5 19_4 19_3 19_2 19_1 18_5 18_4 18_3 18_2 18_1"
version=1.0
revision=2
build_style=cmake
configure_args="-DOPENGL_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include
-DOPTION_BUILD_WEBSITE_TOOLS=OFF -DWL_INSTALL_BASEDIR=/usr/share/widelands
-DWL_INSTALL_DATADIR=/usr/share/widelands"
hostmakedepends="python3 pkg-config gettext"
makedepends="boost-devel icu-devel minizip-devel gettext-devel
glu-devel glew-devel libcurl-devel SDL2-devel SDL2_gfx-devel SDL2_image-devel
SDL2_net-devel SDL2_mixer-devel SDL2_ttf-devel"
short_desc="Real-time strategy game"
maintainer="travankor <travankor@tuta.io>"
license="GPL-2.0-or-later"
homepage="https://www.widelands.org/"
distfiles="https://github.com/widelands/widelands/archive/v${version}.tar.gz"
checksum=1dab0c4062873cc72c5e0558f9e9620b0ef185f1a78923a77c4ce5b9ed76031a
replaces="widelands-data>=0"
CXXFLAGS="-DU_USING_ICU_NAMESPACE=1"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" libexecinfo-devel gettext-devel"
fi
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DOPTION_BUILD_TESTS=OFF"
fi