SUMMARY="A game similar to Super Mario Bros"
DESCRIPTION="
SuperTux is a classic 2D jump'n run sidescroller game in a style similar to \
the original Super Mario games.
"
HOMEPAGE="http://supertux.lethargik.org/"
SOURCE_URI="http://supertux.googlecode.com/files/supertux-0.1.3.tar.bz2"
CHECKSUM_SHA256="0092588351776626955339caaa62d12ce5954bb80c5f6952f60a122f53c2ad97"
CHECKSUM_MD5="f2fc288459f33d5cd8f645fbca737a63"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2003 SuperTux Devel Team"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PATCHES="supertux-0.1.3.patchset"

PROVIDES="
	supertux$secondaryArchSuffix = $portVersion
	cmd:supertux$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libGL$secondaryArchSuffix
	lib:libGLU$secondaryArchSuffix
	lib:libSDL_1.2$secondaryArchSuffix >= 0.11.4
	lib:libSDL_mixer_1.2$secondaryArchSuffix >= 0.12.0
	lib:libSDL_image_1.2$secondaryArchSuffix >= 0.8.4
	lib:libz$secondaryArchSuffix >= 1.2.8
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libGL$secondaryArchSuffix
	devel:libGLU$secondaryArchSuffix
	devel:libSDL_1.2$secondaryArchSuffix >= 0.11.4
	devel:libSDL_mixer_1.2$secondaryArchSuffix >= 0.12.0
	devel:libSDL_image_1.2$secondaryArchSuffix >= 0.8.4
	devel:libz$secondaryArchSuffix >= 1.2.8
	"
BUILD_PREREQUIRES="
	cmd:autoconf
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:libtoolize
	cmd:make
	"

BUILD()
{
	autoreconf --force --install
	runConfigure ./configure
	make
}

INSTALL()
{
	make install

	addAppDeskbarSymlink $binDir/supertux SuperTux
}

