From 2bbbdea0802025290cd7b23ef5b6009c1f6eb335 Mon Sep 17 00:00:00 2001 From: begasus Date: Mon, 1 Sep 2014 19:35:46 +0200 Subject: [PATCH] blobwars, added new recipe and patch file --- games-puzzle/blobwars/blobwars-1.19.recipe | 67 +++++++++++++++++++ .../blobwars/patches/blobwars-1.19.patch | 38 +++++++++++ 2 files changed, 105 insertions(+) create mode 100644 games-puzzle/blobwars/blobwars-1.19.recipe create mode 100644 games-puzzle/blobwars/patches/blobwars-1.19.patch diff --git a/games-puzzle/blobwars/blobwars-1.19.recipe b/games-puzzle/blobwars/blobwars-1.19.recipe new file mode 100644 index 000000000..93350ab89 --- /dev/null +++ b/games-puzzle/blobwars/blobwars-1.19.recipe @@ -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 +} diff --git a/games-puzzle/blobwars/patches/blobwars-1.19.patch b/games-puzzle/blobwars/patches/blobwars-1.19.patch new file mode 100644 index 000000000..fd898010b --- /dev/null +++ b/games-puzzle/blobwars/patches/blobwars-1.19.patch @@ -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 ++#include ++#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