Gemz recipe created.

This commit is contained in:
MrPoxipol
2013-12-14 01:08:21 +00:00
parent 642f7d396f
commit 7a514decf8
2 changed files with 88 additions and 0 deletions

View 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"
}

View 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))
{