# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id: Portfile 77369 2011-03-29 00:35:08Z ryandesign@macports.org $

PortSystem          1.0
name                freeciv
version             2.2.5
categories          games
maintainers         nomaintainer
description         An empire-building strategy game
long_description \
   Freeciv is a Free and Open Source empire-building strategy game inspired \
   by the history of human civilization. The game commences in prehistory \
   and your mission is to lead your tribe from the stone age to the space \
   age...

platforms           macosx

homepage            http://www.freeciv.org/
master_sites        sourceforge ftp://ftp.freeciv.org/freeciv/stable/
use_bzip2           yes

checksums           sha1    b204c4ae581be632fd2385517ada62558d48e702 \
                    rmd160  7f34e0d9c3ece7012665b1d1e4ae0be73759596b

conflicts           freeciv-x11

depends_lib         port:freetype port:libpng port:libsdl port:libsdl_image \
                    port:libsdl_mixer port:readline port:libiconv port:zlib

patchfiles          patch-client-options.c.diff

configure.args      --enable-client=sdl --with-readline \
                    --enable-nls --with-libiconv-prefix=${prefix} \
                    --mandir=${prefix}/share/man --with-sdl-prefix=${prefix}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     freeciv-(\[0-9\.\]+).tar.bz2

