void-packages/srcpkgs/widelands/template

34 lines
1.3 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.1
revision=1
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 -DWL_INSTALL_BINDIR=${DESTDIR}/usr/bin"
hostmakedepends="python3 pkg-config gettext"
makedepends="asio 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/"
changelog="https://raw.githubusercontent.com/widelands/widelands/master/ChangeLog"
distfiles="https://github.com/widelands/widelands/archive/v${version}.tar.gz"
checksum=6853fcf3daec9b66005691e5bcb00326634baf0985ad89a7e6511502612f6412
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" -o "$XBPS_TARGET_ENDIAN" = "be" ]; then
configure_args+=" -DOPTION_BUILD_TESTS=OFF"
fi