SUMMARY="An SDL version of the Lopan game"
HOMEPAGE="http://www.linuxmotors.com/sdllopan/"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2008 Dave Ashley"
SRC_URI="http://www.linuxmotors.com/sdllopan/downloads/sdllopan-10.tgz"
CHECKSUM_MD5="10c03c69d2df6bcae9d835d18215978f"
REVISION="1"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	sdllopan = $portVersion
	app:lopan = $portVersion
	"

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

PATCHES="sdllopan-10.patchset"
BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/Lopan
	cp lopan $appsDir/Lopan/Lopan
	cp -r data $appsDir/Lopan
	addAppDeskbarSymlink $appsDir/Lopan/Lopan Lopan
}

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

DESCRIPTION="
The well known Lopan (Mah Jongg) game. Find pair and try to remove all 144 \
tiles before getting locked.
"
