SUMMARY="find and capture the SPHERE, and carry it to the sky."
HOMEPAGE="http://www2.braingames.getput.com/stransball2/default.asp"
LICENSE="GNU GPL v2"
COPYRIGHT="2003-2005 Brain Games"
SRC_URI="http://www2.braingames.getput.com/stransball2/downloads/stransball2-v15-windows.zip"
CHECKSUM_SHA256="644cf89c8b7084abe0451ff433db25b41e43da77d5d92edad8253baf48b018db"
REVISION="1"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	super_transball = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	lib:libsdl$secondaryArchSuffix
	lib:libSDL_image$secondaryArchSuffix
	lib:libSDL_mixer$secondaryArchSuffix
	lib:libSDL_sound$secondaryArchSuffix
	lib:libSGE$secondaryArchSuffix
	"
BUILD_REQUIRES="
	devel:libsdl$secondaryArchSuffix
	devel:libSDL_image$secondaryArchSuffix
	devel:libSDL_mixer$secondaryArchSuffix
	devel:libSDL_sound$secondaryArchSuffix
	devel:libSGE$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	haiku_devel >= $haikuVersion
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

SOURCE_DIR="stransball2"
PATCHES="super_transball-$portVersion.patchset"
BUILD()
{
	cd sources
	make $jobArgs
}

INSTALL()
{
	installDir=$appsDir/"Super Transball 2"
	mkdir -p "$installDir"
	cp -r stransball2 demos graphics maps sound "$installDir"
	addAppDeskbarSymlink "$installDir/stransball2" "Super Transball 2"
}

DESCRIPTION="
\"Super Transbal 2\" is the sequel of \"Transball\" and \"Transball 2\",
Inspired in THRUST type of games (and concretely in ZARA THRUSTA for the Amiga
500). In each level of Transball, the goal is to find the SPHERE, capture it
and carry it to the upper part of the level. The main obstacle is the gravity,
that impulses you towards the ground. But many other obstacles, canons, tanks,
doors, etc. will try to make difficult your journey...
"
