Files
2026-05-03 13:31:57 -04:00

84 lines
3.4 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup boost 1.0
PortGroup cmake 1.1
PortGroup app 1.0
PortGroup openssl 1.0
github.setup wesnoth wesnoth 1.18.7
revision 0
checksums rmd160 9535ea64d70b9c5e2ced16e085b191313ac05fb1 \
sha256 d6b50cfdf4388954a1c3da66a61abacdc7643a17aa78a16196e16e720a661fc2 \
size 467312032
set branch [join [lrange [split ${version} .] 0 1] .]
categories games
maintainers {ryandesign @ryandesign} openmaintainer
license GPL-2+
homepage https://www.wesnoth.org
master_sites sourceforge:project/wesnoth/wesnoth-${branch}/wesnoth-${version}
use_bzip2 yes
description a fantasy turn-based strategy game
long_description Battle for Wesnoth is a fantasy turn-based strategy \
game. Battle for control of villages, using variety of \
units which have advantages and disadvantages in \
different types of terrains and against different \
types of attacks. Units gain experience and advance \
levels, and are carried over from one scenario to the \
next campaign.
depends_build-append path:bin/pkg-config:pkgconfig
depends_lib-append port:bzip2 \
path:lib/pkgconfig/cairo.pc:cairo \
port:expat \
port:fontconfig \
port:freetype \
port:gettext \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:graphite2 \
path:lib/pkgconfig/harfbuzz.pc:harfbuzz \
port:libffi \
port:libiconv \
port:libogg \
path:lib/pkgconfig/pixman-1.pc:libpixman \
port:libpng \
port:libsdl2 \
port:libsdl2_image \
port:libsdl2_mixer \
port:libsdl2_net \
port:libsdl2_ttf \
port:libvorbis \
port:lua54 \
path:lib/pkgconfig/pango.pc:pango \
port:pcre \
port:readline \
port:zlib
compiler.cxx_standard 2017
cmake.build_type Release
configure.args-append -DENABLE_SYSTEM_LUA=ON
patchfiles-append patch-wesnoth-apple-notifications.diff
patchfiles-append patch-wesnoth-sdl-main.diff
# src/global.hpp:28:2: error: "Compilation with NDEBUG defined isn't supported, Wesnoth depends on asserts."
configure.cppflags-append -UNDEBUG
post-destroot {
file copy ${worksrcpath}/projectfiles/Xcode/Resources/SDLMain.nib ${destroot}${applications_dir}/${app.name}.app/Contents/Resources
}
app.icon projectfiles/Xcode/Resources/icon.icns
app.name The Battle for Wesnoth
app.identifier org.wesnoth.Wesnoth
app.retina yes
github.livecheck.regex {(\d+\.\d*[02468](\.\d+)*)}