From 774e0f8bf844d55c88055b3c3002dba2952c6b8f Mon Sep 17 00:00:00 2001 From: begasus Date: Wed, 3 Sep 2014 19:57:16 +0200 Subject: [PATCH] alienBlaster, fix recipe and added patch to make it run from Tracker --- .../alienblaster/alienblaster-1.1.0.recipe | 62 +++++++++++++------ .../patches/alienblaster-1.1.0.patch | 20 ++++++ 2 files changed, 63 insertions(+), 19 deletions(-) create mode 100644 games-arcade/alienblaster/patches/alienblaster-1.1.0.patch diff --git a/games-arcade/alienblaster/alienblaster-1.1.0.recipe b/games-arcade/alienblaster/alienblaster-1.1.0.recipe index d4c40c917..ce8bb32fc 100644 --- a/games-arcade/alienblaster/alienblaster-1.1.0.recipe +++ b/games-arcade/alienblaster/alienblaster-1.1.0.recipe @@ -1,28 +1,52 @@ -DESCRIPTION="Action loaded 2D shooter" -MESSAGE="As of right now this app can only be run through terminal" -HOMEPAGE="www.schwardtnet.de/alienblaster" +SUMMARY="Action loaded 2D shooter" +DESCRIPTION="Action loaded 2D shooter. Your mission is simple: stop the \ +invasion of the aliens and blast them!" +HOMEPAGE="http://www.schwardtnet.de/alienblaster" +LICENSE="GNU GPL v2" +COPYRIGHT="2004 Paul Grathwol, Arne Hormann, Daniel Kuhn, Sonke Schwardt" SRC_URI="http://www.schwardtnet.de/alienblaster/archives/alienblaster-1.1.0.tgz" -CHECKSUM_MD5="27412a868f7d4ae0949036aeb29a6691" -STATUS_HAIKU="stable" +CHECKSUM_SHA256="c4081548c05acdd92df4d721c556f6f2c18a60e2bf5c513cb18690ad9d769980" REVISION="1" -DEPEND="media-libs/libsdl >= 1.2.7 - media-libs/sdl-mixer >= 1.2.5" +SOURCE_DIR="alienblaster" + +PATCHES="alienblaster-1.1.0.patch" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PROVIDES=" + alienBlaster = $portVersion + cmd:alienBlaster = $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:touch + " + BUILD() { - cd alienblaster - make + make $jobArgs } INSTALL() { - cd alienblaster - GAMEDIR=`finddir B_APPS_DIRECTORY`/"AlienBlaster" - mkdir -p ${DESTDIR}/${GAMEDIR} - cp -af alienBlaster ${DESTDIR}/${GAMEDIR} - cp -af sound ${DESTDIR}/${GAMEDIR} - cp -af images ${DESTDIR}/${GAMEDIR} - cp -af cfg ${DESTDIR}/${GAMEDIR} + mkdir -p $appsDir/AlienBlaster + cp -af alienBlaster $appsDir/AlienBlaster + cp -af sound $appsDir/AlienBlaster + cp -af images $appsDir/AlienBlaster + cp -af cfg $appsDir/AlienBlaster + addAppDeskbarSymlink $appsDir/AlienBlaster/alienBlaster AlienBlaster } - -LICENSE="GNU GPL v2" -COPYRIGHT="2004 Paul Grathwol, Arne Hormann, Daniel Kuhn, Sonke Schwardt" \ No newline at end of file diff --git a/games-arcade/alienblaster/patches/alienblaster-1.1.0.patch b/games-arcade/alienblaster/patches/alienblaster-1.1.0.patch new file mode 100644 index 000000000..d93b3436d --- /dev/null +++ b/games-arcade/alienblaster/patches/alienblaster-1.1.0.patch @@ -0,0 +1,20 @@ +--- alienblaster/src/main.cc.org 2004-08-19 18:24:20.060555264 +0200 ++++ alienblaster/src/main.cc 2014-09-03 18:00:48.988282880 +0200 +@@ -21,9 +21,17 @@ + #include "SDL.h" + #include + ++#ifdef __HAIKU__ ++#include ++#include ++#endif ++ + using namespace std; + + int main(int argc, char *argv[]) { ++ #ifdef __HAIKU__ ++ chdir(dirname(argv[0])); ++ #endif + SDL_Init(0); + srand(0); + Game game;