SUMMARY="A clone of Rick Dangerous"
DESCRIPTION="
Remember Rick Dangerous?

Way before Lara Croft, back in the 1980's and early 1990's, Rick Dangerous \
was the Indiana Jones of computer games, running away from rolling rocks, \
avoiding traps, from South America to a futuristic missile base via Egypt \
and theSchwarzendumpf castle.
"
HOMEPAGE="http://www.bigorno.net/xrick"
LICENSE="xrick"
COPYRIGHT="2000-2006 Bigorno.net"
SOURCE_URI="http://www.bigorno.net/xrick/xrick-021212.tgz"
CHECKSUM_SHA256="aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b"
REVISION="2"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	xrick = $portVersion
	app:xrick = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libsdl$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"
BUILD_REQUIRES="
	devel:libsdl$secondaryArchSuffix
	devel:libz$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	haiku_devel
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

PATCHES="xrick-$portVersion.patchset"

BUILD()
{
	make $jobArgs
	rc -o xrick.rsrc xrick.rdef
	xres -o xrick xrick.rsrc
}

INSTALL()
{
	mkdir -p $appsDir/XRick
	cp xrick $appsDir/XRick/XRick
	cp data.zip $appsDir/XRick
	cp ReadMe $appsDir/XRick
	cp -r images $appsDir/XRick
	addAppDeskbarSymlink $appsDir/XRick/XRick
}
