mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
This will add the recipe and patch for SDL_bomber.
This commit is contained in:
33
games-action/sdl_bomber/patches/sdl_bomber-1.0.4.patchset
Normal file
33
games-action/sdl_bomber/patches/sdl_bomber-1.0.4.patchset
Normal 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
|
||||
25
games-action/sdl_bomber/sdl_bomber-1.0.4.patch
Normal file
25
games-action/sdl_bomber/sdl_bomber-1.0.4.patch
Normal 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)
|
||||
49
games-action/sdl_bomber/sdl_bomber-1.0.4.recipe
Normal file
49
games-action/sdl_bomber/sdl_bomber-1.0.4.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user