SUMMARY="GNU Robbo: Classic Atari Puzzle Game"
DESCRIPTION="An open source reimplementation \
of Janusz Pelc's Robbo for the Atari XE/XL which was distributed \
by LK Avalon in 1989. In this retro game, you can collect and reach the \
UFO-like object."
HOMEPAGE="http://gnurobbo.sourceforge.net/"
COPYRIGHT="2002-2010 The GNU Robbo Team"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="http://downloads.sourceforge.net/gnurobbo/gnurobbo-$portVersion-source.tar.gz"
CHECKSUM_SHA256="54d2418f49e52b8f49631eb93af7789074b628d308a6d26b00cc795ad0b04d89"

ARCHITECTURES="all ?x86"

PROVIDES="
	gnurobbo = $portVersion
	app:gnurobbo = $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_image_1.2
	lib:libSDL_mixer_1.2
	lib:libSDL_ttf_2.0
	"

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

BUILD()
{
	make $jobArgs PACKAGE_DATA_DIR=$appsDir/GNURobbo/data
}

INSTALL()
{
	mkdir -p $appsDir/GNURobbo
	cp gnurobbo $appsDir/GNURobbo
	cp -r data $appsDir/GNURobbo
	addAppDeskbarSymlink $appsDir/GNURobbo/gnurobbo GnuRobbo
}
