SUMMARY="xrick is a clone of Rick Dangerous."
HOMEPAGE="http://www.bigorno.net/xrick"
LICENSE="xrick"
COPYRIGHT="2000-2006 Bigorno.net"
SRC_URI="http://www.bigorno.net/xrick/xrick-021212.tgz"
CHECKSUM_SHA256="aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b"
REVISION="1"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	xrick = $portVersion
	app:xrick = $portVersion
	"

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

PATCHES="xrick-$portVersion.patchset"
BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/XRick
	cp xrick $appsDir/XRick
	cp data.zip $appsDir/XRick
	addAppDeskbarSymlink $appsDir/XRick/xrick "Rick Dangerous"
}

# ----- DESCRIPTION -----------------------------------------------------------

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 the
Schwarzendumpf castle.
"
