Portfile

PortSystem 1.0

name glob2
version 0.8.21
categories games
platforms darwin
maintainers nomaintainer@macports.org
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 http://globulation2.org/
master_sites ${homepage}/releases/${version}/
checksums md5 3173f82572f1dd5fba79019ebc43d427 \
sha1 c9829ea4e78e7c7e901126bf77d2fbb36272bfc0 \

depends_lib port:speex port:libogg port:libvorbis\
port:libsdl port:libsdl_image port:libsdl_net port:libsdl_ttf \
port:boost port:zlib port:freetype port:libiconv \
port:libpng port:jpeg port:tiff

configure.env CPPFLAGS=-I${prefix}/include \
LDFLAGS=-L${prefix}/lib

post-configure { reinplace "s|\${datarootdir}|${prefix}/share|" ${worksrcpath}/config.h }