SUMMARY="A memory game with addictive gameplay"
DESCRIPTION="
Dragon Memory is a simple but fun memory game with very detailed graphics and \
addictive gameplay.
"
HOMEPAGE="http://sourceforge.net/projects/dragonmemory/" 
SRC_URI="http://cznic.dl.sourceforge.net/project/dragonmemory/DragonMemory-source.tgz
    http://heanet.dl.sourceforge.net/project/dragonmemory/DragonMemory-source.tgz"
SRC_FILENAME="DragonMemory-1-source.tgz"
CHECKSUM_SHA256="e0d7ff168cc7a5e01247e4c290346bf26a8423e0fc7b7b3047f437451c8f37b5"
REVISION="1"
ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
SOURCE_DIR="DragonMemory"

PROVIDES="
	dragonmemory = $portVersion
	app:dragonmemory = $portVersion"

BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	makefile_engine
	libsdl
	sdl_image
	sdl_mixer
	glu
#	cmd:sdl-config
	cmd:gcc
	cmd:make
	cmd:mkdepend"


BUILD_REQUIRES="
	haiku_devel >= $haikuVersion 
	devel:libsdl
	devel:sdl_image
	devel:sdl_mixer
	devel:libglu
	"

REQUIRES="
	lib:libsdl
	lib:libsdl_image
	lib:libsdl_mixer
	lib:libglu
	"

COPYRIGHT="2011 Santiago Radeff Leria http://www.dragontech.net/"
LICENSE="GNU GPL v3"

BUILD()
{
	make
}

INSTALL()
{
	mkdir -p $appsDir/DragonMemory
	cp -R dragonmemory gfx fonts music themes sounds $appsDir/DragonMemory
	addAppDeskbarSymlink $appsDir/DragonMemory/dragonmemory
}
