barrage new recipe and patch file for version 1.0.4

This commit is contained in:
begasus
2014-08-25 19:11:14 +02:00
parent c23229c840
commit 4a04cafc00
2 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
SUMMARY="Barrage is 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/"
SRC_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 >= $haikuVersion
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
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
}

View File

@@ -0,0 +1,22 @@
--- barrage-1.0.4/src/Makefile.in.org 2011-07-28 15:28:20.000000000 +0200
+++ barrage-1.0.4/src/Makefile.in 2014-07-14 13:05:29.277086208 +0200
@@ -185,7 +185,7 @@
SFont.c
barrage_LDFLAGS =
-barrage_LDADD = @audio_lib@ -lm
+barrage_LDADD = @audio_lib@
EXTRA_DIST = \
defs.h particle.h shots.h units.h\
data.h bfield.h menu.h SFont.h chart.h
--- barrage-1.0.4/src/main.c.org 2014-07-14 13:28:39.039321600 +0200
+++ barrage-1.0.4/src/main.c 2014-07-14 13:27:14.832831488 +0200
@@ -28,7 +28,7 @@
#define BITDEPTH 16
int delay = 0;
-int fullscreen = 1;
+int fullscreen = 0;
int audio_on = 1;
int audio_freq = 22050;
int audio_format = AUDIO_S16LSB;