mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Now the source is downloaded from official tarbal. Patch generated...
This commit is contained in:
23
games-kids/pipepanic/patches/pipepanic-0.1.3.patch
Normal file
23
games-kids/pipepanic/patches/pipepanic-0.1.3.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- ../main.c 2006-05-16 22:11:29.042991616 +0200
|
||||
+++ main-new.c 2013-12-09 16:52:30.000000000 +0100
|
||||
@@ -16,6 +16,10 @@
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
||||
|
||||
/* Includes */
|
||||
+// chdir()
|
||||
+#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
+
|
||||
#include <SDL/SDL_main.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <string.h>
|
||||
@@ -102,6 +106,9 @@
|
||||
int main(int argc, char *argv[]) {
|
||||
int count, count2;
|
||||
|
||||
+ // For tracker (Thanks PulkoMandy)
|
||||
+ chdir(dirname(argv[0]));
|
||||
+
|
||||
/* Initialise the highscoreboard array because there may not yet
|
||||
be a saved highscore[board]/rc file */
|
||||
for (count = 0; count < 5; count++) {
|
||||
@@ -1,4 +1,4 @@
|
||||
SUMMARY="A SDL Pipepanic game."
|
||||
SUMMARY="A pipe connecting game."
|
||||
DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many different shaped pipes together as possible within the time given. "
|
||||
HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/"
|
||||
SRC_URI="http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-0.1.3-source.tar.gz"
|
||||
@@ -28,6 +28,9 @@ BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
PATCHES="
|
||||
pipepanic-0.1.3.patch
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user