mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-02 21:18:51 +02:00
Fixed recipe for rezerwar game. All working.
This commit is contained in:
33
games-puzzle/rezerwar/patches/rezerwar-0.4.2.patch
Normal file
33
games-puzzle/rezerwar/patches/rezerwar-0.4.2.patch
Normal 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);
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user