mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Gemz recipe created.
This commit is contained in:
51
games-puzzle/gemz/gemz-0.97.0.recipe
Normal file
51
games-puzzle/gemz/gemz-0.97.0.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="Gemz is an SDL implementation of the popular puzzle game 'Bejeweled'."
|
||||
DESCRIPTION="Gemz is an SDL implementation of the popular puzzle game 'Bejeweled'."
|
||||
HOMEPAGE="http://sourceforge.net/projects/gemz/"
|
||||
SRC_URI="http://sourceforge.net/projects/gemz/files/gemz/Source/gemz-0.97.0.tgz/download"
|
||||
CHECKSUM_MD5="ea71e3cf9ee7f3b7f6d0a7f4cbe0af58"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2003-2013 Jonathan Bilodeau"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
gemz = $portVersion
|
||||
app:gemz = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libsdl_image$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:which
|
||||
cmd:sdl_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCHES="
|
||||
gemz-0.97.0.patch
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/gemz
|
||||
cp -r fonts gfx tilesets $appsDir/gemz
|
||||
cp gemz $appsDir/gemz/gemz
|
||||
|
||||
addAppDeskbarSymlink $appsDir/gemz/gemz "Gemz"
|
||||
}
|
||||
37
games-puzzle/gemz/patches/gemz-0.97.0.patch
Normal file
37
games-puzzle/gemz/patches/gemz-0.97.0.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
--- ../Makefile 2004-05-07 05:39:47.034340864 +0000
|
||||
+++ Makefile-new 2013-12-13 22:51:00.000000000 +0000
|
||||
@@ -2,7 +2,7 @@
|
||||
CFLAGS+=-O2 -Wall -W -g
|
||||
#CFLAGS+=-O2 -Wall -W -g -fprofile-arcs -ftest-coverage -pg
|
||||
CFLAGS+=`sdl-config --cflags`
|
||||
-LFLAGS=`sdl-config --libs` -lSDL_image -L/usr/X11R6/lib -lX11
|
||||
+LFLAGS=`sdl-config --libs` -lSDL_image
|
||||
SRCS= \
|
||||
SFont.c \
|
||||
board.c \
|
||||
--- ../main.c 2004-05-07 05:36:26.035389440 +0000
|
||||
+++ main-new.c 2013-12-13 23:41:06.150994944 +0000
|
||||
@@ -2,6 +2,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <SDL.h>
|
||||
+#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
#include "board.h"
|
||||
#include "graphics.h"
|
||||
@@ -27,11 +29,12 @@
|
||||
/* 3. Start the game loop */
|
||||
/* 4. Clean up before the program exits */
|
||||
/* ************************************************************************ */
|
||||
-int main()
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
game_t game;
|
||||
screen_t screen;
|
||||
-
|
||||
+ // For tracker
|
||||
+ chdir(dirname(argv[0]));
|
||||
/* initialize various systems (sounds, graphics, input, etc) */
|
||||
if (init(&screen))
|
||||
{
|
||||
Reference in New Issue
Block a user