blobwars, added new recipe and patch file

This commit is contained in:
begasus
2014-09-01 19:35:46 +02:00
parent 7911743b56
commit 2bbbdea080
2 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
SUMMARY="Metal Blob Solid is a 2D platform game."
DESCRIPTION="Since their world was invaded by an alien race, the Blobs have \
faced a lifetime of war. But now they have a chance to win the war once and \
for all. In Blob Wars: Metal Blob Solid, you take on the role of a fearless \
Blob agent, Bob. Bob's mission is to infiltrate the various enemy bases around \
the Blobs' homeworld and rescue as many MIAs as possible. But standing in his \
way are many vicious aliens, other Blobs who have been assimilated and the \
evil alien leader, Galdov."
HOMEPAGE="http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html"
SRC_URI="http://sourceforge.net/projects/blobwars/files/blobwars-1.19.tar.gz"
CHECKSUM_SHA256="f9bafe59ead9e370ceaba4aae3d280241bf05fa06c8ae006eec0322c2fe9e2ed"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2004, 2005 Milan Babuskov"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PATCHES="blobwars-1.19.patch"
PROVIDES="
blobwars = $portVersion
app:blobwars = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
lib:libsdl
lib:libSDL_mixer
lib:libSDL_image
lib:libSDL_net
lib:libSDL_ttf
lib:libintl
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
devel:libSDL
devel:libSDL_mixer
devel:libSDL_image
devel:libSDL_net
devel:libSDL_ttf
devel:libz
devel:libintl
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/BlobWars/{data,doc,icons,sound,gfx,locale}
cp blobwars $appsDir/BlobWars/
cp -r data/* $appsDir/BlobWars/data/
cp -r doc $appsDir/BlobWars/
cp -r icons $appsDir/BlobWars/
cp -r sound $appsDir/BlobWars/
cp -r gfx $appsDir/BlobWars/
cp -r locale $appsDir/BlobWars/
addAppDeskbarSymlink $appsDir/BlobWars/blobwars BlobWars
}

View File

@@ -0,0 +1,38 @@
--- blobwars-1.19/makefile.org 2014-08-11 23:06:33.176685056 +0200
+++ blobwars-1.19/makefile 2014-08-11 23:06:19.469762048 +0200
@@ -21,8 +21,8 @@
CXXFLAGS += `sdl-config --cflags` -DVERSION=$(VERSION) -DRELEASE=$(RELEASE) -DUSEPAK=$(USEPAK)
CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall
CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" -DMEDAL_SERVER_HOST=\"$(MEDAL_SERVER_HOST)\" -DMEDAL_SERVER_PORT=$(MEDAL_SERVER_PORT)
-CXXFLAGS += $(CFLAGS) -Werror
-LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net -lz
+CXXFLAGS += $(CFLAGS)
+LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_net -lz -lintl
OBJS += CAudio.o
OBJS += CBoss.o
--- blobwars-1.19/src/main.cpp.org 2014-08-31 18:48:07.870842368 +0200
+++ blobwars-1.19/src/main.cpp 2014-08-31 18:45:04.260833280 +0200
@@ -17,6 +17,10 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef __HAIKU__
+#include <unistd.h>
+#include <libgen.h>
+#endif
#include "main.h"
@@ -103,6 +107,11 @@
debug(("Not Using PAK...\n"));
#endif
+ // For tracker (Thanks PulkoMandy)
+ #ifdef __HAIKU__
+ chdir(dirname(argv[0]));
+ #endif
+
#if RELEASE
chdir(PAKLOCATION);
#endif