SUMMARY="An action game similar to Tron and Nibbles"
DESCRIPTION="Heroes is similar to the Tron and Nibbles games of yore, but \
includes many graphical improvements and new game features. In it, you must \
maneuver a small vehicle around a world and collect powerups while avoiding \
obstacles, your opponents trails, and even your own trail."
HOMEPAGE="http://heroes.sourceforge.net/"
COPYRIGHT="2000-2002 Alexandre Duret-Lutz, Romual Genevois, \
Alexandre Liverneaux, Philippe Meisburger"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://prdownloads.sourceforge.net/heroes/heroes-0.21.tar.gz"
CHECKSUM_SHA256="1264981d37d0fa12905ca627e6329c22ae6db10a1abaf3ec9b9c7357d391b54f"
SOURCE_URI_2="http://prdownloads.sourceforge.net/heroes/heroes-data-1.5.tar.gz"
CHECKSUM_SHA256_2="af2af6b1fd83636db03d0d2aa77243d31dccd1cb14a20269ed765edb2bb4ff43"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	heroes = portVersion
	app:heroes = $portVersion
	cmd:heroeslvl = $portVersion
	"
REQUIRES="
	haiku
	lib:libintl
	lib:libsdl
	lib:libsdl_mixer
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	devel:libsdl
	devel:libsdl_mixer
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:libtoolize
	cmd:make
	"

BUILD()
{
	libtoolize -fci
	./configure --prefix=$appsDir/Heroes
	make $jobArgs
	cd ../../sources-2/heroes-data-1.5
	libtoolize -fci
	./configure --prefix=$appsDir/Heroes
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/Heroes
	make install
	cd ../../sources-2/heroes-data-1.5
	make install
}
