mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add recipe for SDL Scavenger.
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From a39fa224fe4adcfc7a9189ad93b05a7e89b7a0fd Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Fri, 29 Nov 2013 16:15:13 +0100
|
||||
Subject: gcc2 and main directory fixes.
|
||||
|
||||
|
||||
diff --git a/scav.c b/scav.c
|
||||
index fa22286..38ad157 100644
|
||||
--- a/scav.c
|
||||
+++ b/scav.c
|
||||
@@ -4,6 +4,8 @@
|
||||
#define VERSION "SDL Scavenger version 1.4.5.1 (11/05/2010)"
|
||||
|
||||
#include "scav.h"
|
||||
+#include <libgen.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
char demolevel0[]={
|
||||
0x04,0x44,0x44,0x07,0x00,0x06,0x60,0x00,0x70,0x44,0x44,0x40,
|
||||
@@ -1703,6 +1705,8 @@ int main (int argc, char **argv)
|
||||
strcpy(rcname,RCNAME);
|
||||
strcpy(LevelsName,LEVELSNAME); /* Normally use default name */
|
||||
|
||||
+ chdir(dirname(argv[0]));
|
||||
+
|
||||
#if defined(__WIN32__) || defined(WIN32)
|
||||
/* Crude command line options for windows (no getopt function) */
|
||||
if (argc != 1) /* command line option used */
|
||||
@@ -1757,7 +1761,6 @@ int main (int argc, char **argv)
|
||||
while (1)
|
||||
{
|
||||
int option_index = 0;
|
||||
- opterr = 0;
|
||||
static struct option long_options[] = {
|
||||
{"window", 0, 0, 'w'},
|
||||
{"help", 0, 0, 'h'},
|
||||
@@ -1769,6 +1772,7 @@ int main (int argc, char **argv)
|
||||
{"quiet", 0, 0, 'q'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
+ opterr = 0;
|
||||
|
||||
c = getopt_long (argc, argv, "hvwsqc:l:L:",
|
||||
long_options, &option_index);
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
50
games-arcade/sdlscavenger/sdlscavenger-145.1.recipe
Normal file
50
games-arcade/sdlscavenger/sdlscavenger-145.1.recipe
Normal file
@@ -0,0 +1,50 @@
|
||||
SUMMARY="An SDL clone of Lode Runner"
|
||||
HOMEPAGE="http://sourceforge.net/projects/sdlscavenger/files/"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="1999-2010 Dave Ashley"
|
||||
SRC_URI="http://www.mirrorservice.org/sites/downloads.sourceforge.net/s/sd/sdlscavenger/sdlscav-145.1_2010_11_5.tgz"
|
||||
CHECKSUM_MD5="995dc8b6b1792e1c2c9ec253bcfafbfe"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
sdlscavenger = $portVersion
|
||||
app:sdlscavenger = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="sdlscav-145"
|
||||
PATCHES="sdlscavenger-145.1.patchset"
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/sdlscavenger
|
||||
cp sdlscav $appsDir/sdlscavenger
|
||||
cp -r data $appsDir/sdlscavenger/data
|
||||
addAppDeskbarSymlink $appsDir/sdlscavenger/sdlscav Scavenger
|
||||
}
|
||||
|
||||
# ----- DESCRIPTION -----------------------------------------------------------
|
||||
|
||||
DESCRIPTION="
|
||||
Grab all the diamonds, but don't get caught! Escape or trap ennemies by digging
|
||||
holes in the ground, climb ladders and ropes, and, or course, run fast!
|
||||
"
|
||||
Reference in New Issue
Block a user