# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id: Portfile 48847 2009-03-30 04:01:23Z blb@macports.org $

PortSystem          1.0
name                freeciv
version             2.1.9
categories          games
maintainers         blb openmaintainer
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           md5     caffaa201b2f5dfdfe00b6e6c3f32fb1 \
                    sha1    01a3500a9d0f9d9c9b95b7c4b57f2446f671a900 \
                    rmd160  cbe12facbbf00a85410e1324eb6ba3f2351ea1f1

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

pre-fetch {
   ui_msg  "Please note that this port conflicts with port:freeciv-x11."
}

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

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

