Fixed recipe for rezerwar game. All working.

This commit is contained in:
MrPoxipol
2013-12-14 00:49:01 +00:00
parent bc4c346e67
commit 642f7d396f
2 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
--- ../configure 2010-05-09 16:25:03.000524288 +0000
+++ configure-new 2013-12-14 00:36:47.137887744 +0000
@@ -232,7 +232,7 @@
Haiku|BeOS)
check_sdl
check_sdl_mixer
- [ -z "$PREFIX" ] && PREFIX="/boot/apps/rezerwar"
+ [ -z "$PREFIX" ] && PREFIX="data"
[ -z "$TARGET" ] && TARGET="$PREFIX"
TARGET_BIN="$TARGET"
TARGET_DOC="$TARGET"
--- ../src/main.c 2010-05-09 16:25:03.002097152 +0000
+++ main-new.c 2013-12-13 23:59:59.994312192 +0000
@@ -32,7 +32,8 @@
#endif
#include "SDL.h"
-
+#include <unistd.h>
+#include <libgen.h>
#include "rezerwar.h"
#include "config.h"
@@ -231,7 +232,8 @@
bool loop = true;
char *path;
SDL_Joystick *js;
-
+ // For tracker
+ chdir(dirname(av[0]));
/* Version number only */
if (has_flag(ac, av, "-v")) {
printf("%s\n", VERSION);

View File

@@ -19,7 +19,7 @@ PROVIDES="
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libsdl$secondaryArchSuffix
lib:sdl_mixer$secondaryArchSuffix
lib:libsdl_mixer$secondaryArchSuffix
"
BUILD_REQUIRES="
@@ -35,6 +35,10 @@ BUILD_PREREQUIRES="
cmd:sdl_config$secondaryArchSuffix
"
PATCHES="
rezerwar-0.4.2.patch
"
BUILD()
{
configure
@@ -44,7 +48,8 @@ BUILD()
INSTALL()
{
mkdir -p $appsDir/rezerwar
cp -r --copy-contents rezerwar $appsDir/rezerwar
cp -r data $appsDir/rezerwar
#cp -r rezerwar $appsDir/rezerwar
cp src/rezerwar $appsDir/rezerwar/rezerwar
addAppDeskbarSymlink $appsDir/rezerwar/rezerwar "Rezerwar"