# $Id: Portfile 82985 2011-08-23 04:33:44Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               app 1.0

name                    CrimsonFields
version                 0.5.3
revision                1
categories              games
platforms               darwin
maintainers             phw openmaintainer

description             Tactical war game in the tradition of Battle Isle
long_description        Crimson Fields is a tactical war game in the tradition \
                        of Battle Isle, including a map editor and the \
                        possibility to import the original History Line or \
                        Battle Isle maps.

homepage                http://crimson.seul.org
master_sites            ${homepage}/files/
distname                crimson-${version}
checksums           md5     9e71bc8c12ddadf42136a3e07ae86a2c \
                    sha1    f71b1fc5eecd262d1e7bdafd259f3b061e6c9477 \
					rmd160  21a008cfca5afce0df2349ec87bf1550fbb25d3a


use_bzip2               yes

depends_lib             path:lib/pkgconfig/sdl.pc:libsdl \
                        port:libsdl_mixer \
                        port:libsdl_ttf \
                        port:zlib

patchfiles              tools.patch

configure.args          --disable-sdltest \
                        --mandir=${prefix}/share/man \
                        --with-sdl-prefix=${prefix} \
                        --with-zlib=${prefix} \
                        --enable-cfed \
                        --enable-comet

use_parallel_build      yes

post-destroot {
    file delete -force ${destroot}${prefix}/share/pixmaps
}

app.name                Crimson Fields
app.executable          crimson
app.icon                gfx/crimson.png

livecheck.url	http://crimson.seul.org/download.php
livecheck.regex "crimson-((\\d+(\\.)*)+)\\.tar\\.gz"
