SUMMARY="A destructive shooting game"
DESCRIPTION="Barrage is a rather destructive action game that puts you on a \
shooting range with the objective to hit as many dummy targets as possible \
within 3 minutes. You control a gun that may either fire small or large \
grenades at soldiers, jeeps and tanks. Targets are fast paced and require \
careful aiming as it takes half a second to reload the gun. In addition, \
you have to keep an eye on your ammo and reload in time."
HOMEPAGE="http://lgames.sourceforge.net/"
SOURCE_URI="http://downloads.sourceforge.net/project/lgames/barrage/barrage-1.0.4.tar.gz"
CHECKSUM_SHA256="ad74e049dfded3bca28b8dc1c5870408cfad9e024b35cc5b501ba90486d9af25"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2003-2011 Michael Speck"
PATCHES="barrage-1.0.4.patch"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	barrage = portVersion
	cmd:barrage = $portVersion
"

REQUIRES="
	haiku
	lib:libsdl
	lib:libsdl_mixer 
"

BUILD_REQUIRES="
	haiku_devel
	devel:libsdl
	devel:libsdl_mixer
"

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	cmd:ld
	cmd:libtoolize
"

BUILD()
{
	libtoolize -fci
	runConfigure ./configure

	make $jobArgs
}
INSTALL()
{
	make install

	addAppDeskbarSymlink $binDir/barrage Barrage
}
