1SUMMARY="A destructive shooting game"
2DESCRIPTION="Barrage is a rather destructive action game that puts you on a \
3shooting range with the objective to hit as many dummy targets as possible \
4within 3 minutes. You control a gun that may either fire small or large \
5grenades at soldiers, jeeps and tanks. Targets are fast paced and require \
6careful aiming as it takes half a second to reload the gun. In addition, \
7you have to keep an eye on your ammo and reload in time."
8HOMEPAGE="http://lgames.sourceforge.net/"
9COPYRIGHT="2003-2019 Michael Speck"
10LICENSE="GNU GPL v2"
11REVISION="1"
12SOURCE_URI="http://downloads.sourceforge.net/project/lgames/barrage/barrage-$portVersion.tar.gz"
13CHECKSUM_SHA256="a78897ab6a8cf6d53d4093bb8abae204ddfa3a22c5cab9e76220e4987de76904"
14PATCHES="barrage-$portVersion.patchset"
15
16ARCHITECTURES="?all x86_gcc2"
17
18GLOBAL_WRITABLE_FILES="
19	var/games/barrage/barrage.hscr keep-old
20	"
21
22PROVIDES="
23	barrage = portVersion
24	cmd:barrage = $portVersion
25	"
26REQUIRES="
27	haiku
28	lib:libSDL_1.2
29	lib:libSDL_mixer_1.2
30	"
31
32BUILD_REQUIRES="
33	haiku_devel
34	devel:libSDL
35	devel:libSDL_mixer
36	"
37BUILD_PREREQUIRES="
38	cmd:aclocal
39	cmd:autoreconf
40	cmd:awk
41	cmd:gcc
42	cmd:ld
43	cmd:libtoolize
44	cmd:make
45	"
46
47BUILD()
48{
49	autoreconf -vfi
50	runConfigure --omit-dirs binDir ./configure \
51		--bindir=$appsDir
52
53	make $jobArgs
54}
55
56INSTALL()
57{
58	make install
59
60	mv $appsDir/barrage $appsDir/Barrage
61
62	addAppDeskbarSymlink $appsDir/Barrage
63}
64