# -*- 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
checksums rmd160 c0f1c2534eeb95bb901bc61a462495183f191be2 \
sha256 0f4d898ec6b05ce27b4a12ef242cc26571304b90d2509932a4743c71311314b8 \
set branch [join [lrange [split ${version} .] 0 2] .]
maintainers {ryandesign @ryandesign} openmaintainer
description Globulation 2 - a free and innovative strategy game
long_description Globulation 2 is an innovative high quality Real-Time \
Strategy, which minimizes micro-management by \
automatically assigning tasks to the units. The player \
has to choose the number of units he wants for the \
different tasks, and the units will do their best to \
satisfy the requests. This allows to manage more units \
and to focus on the strategy. It can be played alone, \
through your Local Area Network, or through Internet \
thanks to Ysagoon Online Game, a meta-server. It also \
features a scripting language for versatile gameplay or \
tutorials and an integrated map editor.
homepage https://globulation2.org
master_sites http://dl.sv.nongnu.org/releases/glob2/${branch}/
depends_build port:pkgconfig \
path:lib/libspeex.dylib:speex \
# Files missing in tarball; downloaded from
# https://bitbucket.org/giszmo/glob2/src/7f98290bab5c5f5c4194b2aa7ae26c992ccef6d1/darwin/
# with these changes to the Info.plist:
# * CFBundleVersion changed from hardcoded outdated version to @VERSION@
# * CFBundleShortVersionString added
# * NSHighResolutionCapable added
xinstall -d ${worksrcpath}/darwin
xinstall -W ${filespath} -m 0644 Glob2.icns Info.plist ${worksrcpath}/darwin
reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/darwin/Info.plist