This will add the recipe and patch for SDL_bomber.

This commit is contained in:
Derek Tse
2014-12-22 06:17:41 +00:00
parent 13a64cb9bd
commit 585bdba3b3
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