# $Id: Portfile,v 1.1 2006/04/29 22:29:46 pguyot Exp $

PortSystem			1.0
name				lincity-ng
version				1.0.3
categories			games
maintainers			pguyot@kallisys.net
description			3D city simulation game
long_description \
    LinCity-NG is a City Simulation Game. It is a polished and improved \
    version of the classic LinCity game. 
homepage			http://lincity-ng.berlios.de/
platforms			darwin
master_sites		http://download.berlios.de/lincity-ng/
use_bzip2			yes
checksums			md5 2624857ed9437ac30445884d8593850e \
					sha1 8dcce930ab97450d532e478c1af02849f1ab4284 \
					rmd160 c3312913f5a4a770b90339812b29a87a7f9aa88f

configure.args		--mandir=${destroot}${prefix}/share/man \
					--with-libphysfs=${prefix}

platform darwin {
	configure.args-append	--with-apple-opengl-framework
}

depends_lib			lib:libX11.6:XFree86 \
					lib:libxml2:libxml2 \
					bin:sdl-config:libsdl \
					lib:libsdl_mixer:libsdl_mixer \
					lib:libsdl_image:libsdl_image \
					lib:libsdl_ttf:libsdl_ttf \
					lib:libsdl_gfx:libsdl_gfx \
					lib:libphysfs:physfs \
					lib:libiconv:libiconv
depends_build		bin:jam:jam

build {
	system "cd ${worksrcpath} && jam"
}

destroot {
	system "cd ${worksrcpath} && jam -sprefix=${destroot}${prefix} install"
}