Add -UNDEBUG to compiler flags to override the cmake build style default. Wesnoth's compilation errors out if assertions are disabled.
26 lines
814 B
Bash
26 lines
814 B
Bash
# Template file for 'wesnoth'
|
|
pkgname=wesnoth
|
|
version=1.14.17
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DENABLE_OMP=1"
|
|
hostmakedepends="pkg-config gettext"
|
|
makedepends="dbus-devel libgomp-devel fribidi-devel SDL2_image-devel
|
|
SDL2_net-devel SDL2_ttf-devel SDL2_mixer-devel pango-devel libvorbis-devel
|
|
zlib-devel bzip2-devel boost-devel openssl-devel SDL2-devel"
|
|
depends="desktop-file-utils"
|
|
short_desc="Turn-based fantasy strategy game"
|
|
maintainer="Philipp Hirsch <itself@hanspolo.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://wesnoth.org"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
checksum=3646cba604e09c12d6900a733bcb78cbf05f2f75f05346630d6529c220f584e1
|
|
replaces="wesnoth-data>=0"
|
|
|
|
CFLAGS="-UNDEBUG"
|
|
CXXFLAGS="-UNDEBUG"
|
|
|
|
post_install() {
|
|
# runit service
|
|
vsv wesnothd
|
|
}
|