# $Id: Portfile 77916 2011-04-17 16:53:58Z phw@macports.org $

PortSystem              1.0

name                    CrimsonFields
version                 0.5.3
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

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
}

platform macosx {
    pre-destroot {
        xinstall -d ${destroot}${applications_dir}/CrimsonFields.app/Contents/MacOS
        ln -s ${prefix}/bin/crimson \
            ${destroot}${applications_dir}/CrimsonFields.app/Contents/MacOS/CrimsonFields
    }
}

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