SUMMARY="A retro puzzle/platform game"
DESCRIPTION="Giddy 3 is a retro-tastic platform puzzle game!

Featuring bright colourful graphics, smooth scrolling, puzzles, and an egg \
with unfeasibly large hands!

Set across 5 large scrolling levels, you play the part of Giddy, the all-round \
good egg, who has to save the world from aliens, intent on taking over the \
world with giant robot stompers!"
HOMEPAGE="http://www.retroleum.co.uk/giddy3/"
COPYRIGHT="2000 Phil Rouston
	2009-2015 Peter Gordon"
LICENSE="GNU GPL v2"
REVISION="4"
srcGitRev="8a878a6bbd4e1792445b9f98862a198e5dd85c15"
SOURCE_URI="https://github.com/pete-gordon/Giddy-3/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="737a5e7010c368eb79cfe39a287014c1f473ddb9545f88c632be8e460bd657ab"
SOURCE_FILENAME="giddy3-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="Giddy-3-$srcGitRev"
ADDITIONAL_FILES="giddy3.rdef.in"

ARCHITECTURES="all"

PROVIDES="
	giddy3 = $portVersion
	app:giddy3
	"
REQUIRES="
	haiku
	lib:libGL
	lib:libSDL_1.2
	lib:libSDL_mixer_1.2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libGLU
	devel:libSDL
	devel:libSDL_mixer
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd src
	make PLATFORM=haiku

	addResourcesToBinaries $portDir/additional-files/giddy3.rdef.in ../giddy3
}

INSTALL()
{
	mkdir -p $appsDir/Giddy3
	cp -r giddy3 onion* hats* $appsDir/Giddy3
	addAppDeskbarSymlink $appsDir/Giddy3/giddy3 "Giddy 3"
}
