Merged in psirockin/haikuports/feature (pull request #381)

Added a recipe for SDL_bomber.
This commit is contained in:
Scott McCreary
2014-12-22 00:12:39 -08:00
3 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
From 6a6c051e1f8e4d906d26e576c5af7f35ec9d81c9 Mon Sep 17 00:00:00 2001
From: Scott McCreary <scottmc2@gmail.com>
Date: Sun, 21 Dec 2014 00:24:59 -0800
Subject: applying patch sdl_bomber-1.0.4.patch
diff --git a/bomber.c b/bomber.c
index 6c66afe..78a6fb0 100644
--- a/bomber.c
+++ b/bomber.c
@@ -14,6 +14,9 @@
#include <fcntl.h>
#include <stdarg.h>
+#ifdef __HAIKU__
+#include <libgen.h>
+#endif
void domode(void);
int iterate(void);
@@ -1917,6 +1920,10 @@ int main(int argc,char **argv)
int i;
char *p;
+#ifdef __HAIKU__
+ chdir(dirname(argv[0]));
+#endif
+
mname=0;
for(i=1;i<argc;++i)
--
1.8.3.4

View File

@@ -0,0 +1,25 @@
diff --git a/bomber.c b/bomber.c
index 6c66afe..78a6fb0 100644
--- a/bomber.c
+++ b/bomber.c
@@ -14,6 +14,9 @@
#include <fcntl.h>
#include <stdarg.h>
+#ifdef __HAIKU__
+#include <libgen.h>
+#endif
void domode(void);
int iterate(void);
@@ -1917,6 +1920,10 @@ int main(int argc,char **argv)
int i;
char *p;
+#ifdef __HAIKU__
+ chdir(dirname(argv[0]));
+#endif
+
mname=0;
for(i=1;i<argc;++i)

View File

@@ -0,0 +1,49 @@
SUMMARY="SDL Bomber."
DESCRIPTION="The same old bomber game. /
It's just that Mr.Bomberman looks meh."
HOMEPAGE="http://www.linuxmotors.com/SDL_bomber/"
SRC_URI="http://www.linuxmotors.com/SDL_bomber/downloads/SDL_bomber-1.0.4.tgz"
CHECKSUM_SHA256="b811e69b077b0f9bc97b1405dec8bb3e8020a178c1609b5ddad6b8cc07e5df07"
SOURCE_DIR="SDL_bomber-1.0.4"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2008 Dave Ashley"
ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
SDL_Bomber= $portVersion
app:SDL_Bomber= $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
PATCHES="sdl_bomber-1.0.4.patch"
BUILD()
{
make DBG=-lnetwork $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/SDL_bomber
cp bomber matcher $appsDir/SDL_bomber
cp -r data $appsDir/SDL_bomber
addAppDeskbarSymlink $appsDir/SDL_bomber/bomber SDL_bomber
}