Source
# -*- 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 app 1.0
PortGroup cmake 1.0
name wesnoth
version 1.12.6
revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories games
platforms darwin
maintainers ryandesign openmaintainer
license GPL-2+
homepage http://www.wesnoth.org/
master_sites sourceforge:project/wesnoth/wesnoth-${branch}/wesnoth-${version}
use_bzip2 yes
use_parallel_build 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.
checksums rmd160 8a097e8b711e428799ebc0b95e8d771d83035db6 \
sha256 a50f384cead15f68f31cfa1a311e76a12098428702cb674d3521eb169eb92e4e
depends_build-append port:pkgconfig
depends_lib port:xorg-libX11 \
port:boost \
port:libsdl \
port:libsdl_image \
port:libsdl_mixer \
port:libsdl_ttf \
port:libsdl_net \
port:libiconv \
port:lua \
path:lib/pkgconfig/pango.pc:pango \
port:fontconfig \
port:freetype \
port:fribidi \
port:gettext \
port:zlib
patchfiles patch-cmake-FindFriBiDi.cmake.diff
patchfiles-append patch-CMakeLists.txt
post-patch {
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/cmake/FindFriBiDi.cmake
}
cmake.out_of_source yes
app.icon icons/wesnoth-icon-Mac.png
livecheck.type sourceforge
livecheck.regex /${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}