SUMMARY="Abandoned Bricks is a tetris like cross-platform puzzle game"
DESCRIPTION="The goal of the game is to reach the highest possible score. \
Shapes fall from the top of the screen. You can move them sideways and \
rotate them in order to get the best fit when they reach the bottom. \
When you manage to complete a horizontal line, it disappears. When screen \
is full the game is over. The game speeds up whenever the lines are full. \
Therefore, it's better to fill as many lines you can at once. That way you \
can reach higher levels with the same speed."
HOMEPAGE="http://www.abrick.sourceforge.net"
LICENSE="GNU GPL v2"
COPYRIGHT="2004-2005 Milan Babuskov"
SOURCE_URI="http://sourceforge.net/projects/abrick/files/abrick/abrick-1.12/abrick-1.12-src.tar.gz"
CHECKSUM_SHA256="75113463cb8cdbcd0ed251865253c1124ae493b5c1a35393e901b3337c9d0c74"
SOURCE_DIR="abrick-1.12-src"
PATCHES="abrick-1.12.patch"
REVISION="1"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	abrick = $portVersion
	app:abrick = $portVersion
	"
REQUIRES="
	haiku
	lib:libsdl
	lib:libSDL_mixer
	lib:libSDL_image
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	devel:libSDL_mixer
	devel:libSDL_image
	"

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/Abrick
	cp -af abrick $appsDir/Abrick
	cp -af data $appsDir/Abrick
	cp -af html $appsDir/Abrick
	addAppDeskbarSymlink $appsDir/Abrick/abrick Abrick
}
