# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem 1.0

name		supertux
version		0.1.3
categories	games
platforms	darwin
maintainers	freebsd.org:adamw
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

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