# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                rott
version             1.1.2
categories          games
platforms           darwin
license             GPL-2+
maintainers         nomaintainer

description         Rise of the Triard
long_description    \
    Rise of the Triard is a first-person shooter computer game developed by \
    3D Realms and published by Apogee Software. \
    Level and gamefiles are not included, use the Shareware Version.

homepage            http://icculus.org/rott/
master_sites        http://icculus.org/rott/releases/
worksrcdir          ${name}-${version}/rott

checksums           md5     d523c7c6c97f95ba84b8cf4deae7db38 \
                    sha1    2c8841934008b1afe704b6b8743d82492def35ba \
                    rmd160  009cf7ac62ff4d96c69446df8bbbc2cc40e8932f

depends_lib         port:libsdl \
                    port:libsdl_image \
                    port:libsdl_mixer

use_configure       no
#build.args         macosx=true

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/bin
    file copy ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

post-extract {
    reinplace       "s|LDFLAGS += -Wl,-E|LDFLAGS += -Wl|g" ${worksrcpath}/Makefile
}

livecheck.url       http://icculus.org/rott/releases/
livecheck.regex     "rott-(\\d+(?:\\.\\d+)*)\\.tar\\.gz"
