# $Id: Portfile,v 1.3 2005/07/24 13:04:19 mww Exp $

PortSystem 1.0

name		supertux
version		0.1.3
categories	games
platforms	darwin
maintainers	adamw@freebsd.org
description	classic 2D jump and run sidescroller SuperMario clone
long_description	SuperTux is a classic 2D jump and run sidescroller \
			game in a similar style like the original SuperMario \
			games.

homepage	http://supertux.berlios.de/
master_sites	http://download.berlios.de/supertux/
checksums	md5 f2fc288459f33d5cd8f645fbca737a63
use_bzip2	yes

patchfiles	patch-src_texture.h

depends_lib	bin:sdl-config:libsdl \
		lib:libmikmod:libmikmod \
		lib:libSDL_mixer:libsdl_mixer \
		lib:libSDL_image:libsdl_image

variant darwin	{
	configure.args	--with-apple-opengl-framework
	post-destroot	{
		xinstall -d -m 755 ${destroot}/Applications/DarwinPorts/SuperTux.app/Contents/MacOS
		system "ln -sf ${prefix}/bin/supertux \
			${destroot}/Applications/DarwinPorts/SuperTux.app/Contents/MacOS/SuperTux"
	}
}
