SUMMARY="The sequel of Transball and Transball 2"
DESCRIPTION="Super Transball 2 is inspired by 'thrust' type of games (and \
especially by ZARA THRUSTA for the Amiga 500).
The goal of each level  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. Other obstacles like cannons, tanks, doors, etc. \
will try to make your journey difficult as well..."
HOMEPAGE="http://www2.braingames.getput.com/stransball2/default.asp"
COPYRIGHT="2003-2005 Brain Games"
LICENSE="GNU GPL v2"
REVISION="5"
SOURCE_URI="http://www2.braingames.getput.com/stransball2/downloads/stransball2-v15-windows.zip"
CHECKSUM_SHA256="644cf89c8b7084abe0451ff433db25b41e43da77d5d92edad8253baf48b018db"
SOURCE_DIR="stransball2"
PATCHES="super_transball-$portVersion.patchset"

ARCHITECTURES="all ?x86"

PROVIDES="
	super_transball = $portVersion
	app:stransball2 = $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_image_1.2
	lib:libSDL_mixer_1.2
	lib:libSDL_sound_1.0
	lib:libSGE
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	devel:libSDL_image
	devel:libSDL_mixer
	devel:libSDL_sound
	devel:libSGE
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:ld
	cmd:make
	"

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"
}
