# $Id$

PortSystem			1.0

name				lincity-ng
version				2.0
revision                        2
categories			games
license				GPL-2+
maintainers			nomaintainer
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/ \
					http://download2.berlios.de/lincity-ng/
use_bzip2			yes

universal_variant no
checksums           md5     1bd0f58e0f2b131d70044f4230600ed1 \
                    sha1    2961a3f60f7481b33858d7d5ef7cf9c788d01077 \
                    rmd160  0466d56687f18813f9c0454468c092d1f181123e


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

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

depends_lib				port: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 \
					port:libiconv
depends_build		path:bin/pkg-config:pkgconfig \
					bin:jam:jam

configure.cxxflags-append -I${prefix}/include

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

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