SUMMARY="A arcade game"
DESCRIPTION="You drive a toy wood engine in many levels and you must collect \
all the coaches for win."
HOMEPAGE="http://www.ri-li.org"
COPYRIGHT="2006 Dominique Roux-Serret
	2006 Maf464"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://prdownloads.sourceforge.net/ri-li/Ri-li-$portVersion.tar.bz2"
CHECKSUM_SHA256="f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd"
SOURCE_DIR="Ri-li-$portVersion"
PATCHES="ri_li-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	ri_li$secondaryArchSuffix = $portVersion
	app:Ri_li$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libSDL_1.2$secondaryArchSuffix
	lib:libSDL_mixer_1.2$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libSDL_1.2$secondaryArchSuffix
	devel:libSDL_mixer_1.2$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoreconf
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:libtoolize$secondaryArchSuffix
	cmd:make
	"

defineDebugInfoPackage ri_li$secondaryArchSuffix \
	$appsDir/Ri_li

BUILD()
{
	autoreconf -vfi
	runConfigure --omit-dirs binDir ./configure --bindir=$appsDir
	make $jobArgs
}

INSTALL()
{
	make install

	addAppDeskbarSymlink $appsDir/Ri_li
}
