# $Id: Portfile 91078 2012-03-23 15:07:33Z phw@macports.org $

PortSystem 1.0
name		rott
version		1.1.2
categories	games
platforms	darwin
maintainers	phw openmaintainer
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 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	path:lib/pkgconfig/sdl.pc: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"
