mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Merged in Begasus/haikuports_games/gemdropx (pull request #239)
gemdropx, new recipe and patch
This commit is contained in:
59
games-puzzle/gemdropx/gemdropx-0.9.recipe
Normal file
59
games-puzzle/gemdropx/gemdropx-0.9.recipe
Normal file
@@ -0,0 +1,59 @@
|
||||
SUMMARY="Gem Drop X is a fast-paced puzzle game"
|
||||
DESCRIPTION="
|
||||
Gem Drop X is a fast-paced puzzle game where it is your job to clear the \
|
||||
screen of gems before they squash you! (You are at the bottom, they are at the \
|
||||
top, and they keep coming!)\
|
||||
Gem Drop X was directly ported from the original GemDrop for the Atari 8-bit, \
|
||||
which was based on "Magical Drop III" by SNK.\
|
||||
You grab gems (up to 10) of the same color and use them to knock more gems \
|
||||
off the screen. Match 3 or more of the same color in a column and >BAM!< \
|
||||
they explode! Any adjacent gems of the same color also explode, causing a \
|
||||
chain reaction that might cover the entire screen!\
|
||||
The more gems that disappear with one shot, the higher the score you get!
|
||||
"
|
||||
HOMEPAGE="http://www.newbreedsoftware.com/gemdropx/"
|
||||
SRC_URI="ftp://ftp.tuxpaint.org/unix/x/gemdropx/src/gemdropx-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e50495d292a1d456c28044efbf07c16d8865f8d95e1caba86f4c5b2e3fb1d28f"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2002 Bill Kendrick"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PATCHES="gemdropx-$portVersion.patch"
|
||||
|
||||
PROVIDES="
|
||||
gemdropx = $portVersion
|
||||
app:gemdropx = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libsdl
|
||||
lib:libsdl_mixer
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libsdl
|
||||
devel:libsdl_mixer
|
||||
"
|
||||
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/GemdropX
|
||||
cp -r data/ $appsDir/GemdropX
|
||||
cp gemdropx $appsDir/GemdropX/gemdropx
|
||||
|
||||
addAppDeskbarSymlink $appsDir/GemdropX/gemdropx "GemdropX"
|
||||
}
|
||||
42
games-puzzle/gemdropx/patches/gemdropx-0.9.patch
Normal file
42
games-puzzle/gemdropx/patches/gemdropx-0.9.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
--- gemdropx-0.9/gemdropx.c.org 2014-10-19 08:12:42.397672448 +0200
|
||||
+++ gemdropx-0.9/gemdropx.c 2014-10-19 08:09:18.373555200 +0200
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
#ifndef EMBEDDED
|
||||
#include <SDL.h>
|
||||
@@ -2560,7 +2561,10 @@
|
||||
SDL_version sdlver;
|
||||
#endif
|
||||
|
||||
-
|
||||
+ #ifdef __HAIKU__
|
||||
+ chdir(dirname(argv[0]));
|
||||
+ #endif
|
||||
+
|
||||
no_music = 0;
|
||||
|
||||
if (argc == 2)
|
||||
--- gemdropx-0.9/Makefile.org 2014-10-19 08:51:57.785383424 +0200
|
||||
+++ gemdropx-0.9/Makefile 2014-10-19 08:51:18.383254528 +0200
|
||||
@@ -14,7 +14,7 @@
|
||||
# Added 'install' target (finally!): May 18, 2002
|
||||
|
||||
|
||||
-DATA_PREFIX=/usr/local/share/gemdropx
|
||||
+DATA_PREFIX=./data
|
||||
SDL_CFLAGS := $(shell sdl-config --cflags)
|
||||
SDL_LDFLAGS := $(shell sdl-config --libs)
|
||||
CC=gcc
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
|
||||
gemdropx: gemdropx.o
|
||||
- $(CXX) $(CFLAGS) -o gemdropx gemdropx.o $(GFX_LIB) -lm
|
||||
+ $(CXX) $(CFLAGS) -o gemdropx gemdropx.o $(GFX_LIB)
|
||||
|
||||
|
||||
gemdropx.o: gemdropx.c
|
||||
Reference in New Issue
Block a user