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="https://sourceforge.net/projects/dragonmemory/"
COPYRIGHT="2011 Santiago Radeff Leria http://www.dragontech.net/"
LICENSE="GNU GPL v3"
REVISION="5"
SOURCE_URI="https://sf.net/projects/dragonmemory/files/DragonMemory-source.tgz"
CHECKSUM_SHA256="e0d7ff168cc7a5e01247e4c290346bf26a8423e0fc7b7b3047f437451c8f37b5"
SOURCE_FILENAME="DragonMemory-1-source.tgz"
SOURCE_DIR="DragonMemory"
PATCHES="dragonmemory-$portVersion.patchset"

ARCHITECTURES="!all ?x86_gcc2"

PROVIDES="
	dragonmemory = $portVersion
	app:dragonmemory = $portVersion
	"
REQUIRES="
	haiku
	lib:libGL
	lib:libSDL_1.2
	lib:libSDL_image_1.2
	lib:libSDL_mixer_1.2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libGL
	devel:libSDL_1.2
	devel:libSDL_image_1.2
	devel:libSDL_mixer_1.2
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	cmd:mkdepend
	"

BUILD()
{
	make
}

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