SUMMARY="A fast-paced puzzle game"
DESCRIPTION="Gem Drop X is a fast-paced puzzle game where it is your job to \
clear the screen of gems before they squash you! (You are at the bottom, they \
are at the top, and they keep coming!) \
Gem Drop X was directly ported from the original GemDrop for the Atari 8-bit, \
which was based on \"Magical Drop III\" by SNK. \
You grab gems (up to 10) of the same color and use them to knock more gems \
off the screen. Match 3 or more of the same color in a column and >BAM!< \
they explode! Any adjacent gems of the same color also explode, causing a \
chain reaction that might cover the entire screen! \
The more gems that disappear with one shot, the higher the score you get!"
HOMEPAGE="http://www.newbreedsoftware.com/gemdropx/"
COPYRIGHT="2002 Bill Kendrick"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/gemdropx-$portVersion.tar.gz"
CHECKSUM_SHA256="e50495d292a1d456c28044efbf07c16d8865f8d95e1caba86f4c5b2e3fb1d28f"
PATCHES="gemdropx-$portVersion.patchset"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	gemdropx = $portVersion
	app:GemdropX = $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_mixer_1.2
	"

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

BUILD()
{
	make DATA_PREFIX=$dataDir/gemdropx
}

INSTALL()
{
	mkdir -p $appsDir $dataDir/gemdropx
	cp -r data/* $dataDir/gemdropx
	cp gemdropx $appsDir
	mv $appsDir/gemdropx $appsDir/GemdropX

	addAppDeskbarSymlink $appsDir/GemdropX
}
