From b7fed8588f30048b3c1d66862f4c6b9d196aa6ed Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 5 Apr 2015 21:24:06 +0200 Subject: [PATCH] Giddy3: update recipe to version 1.5. Fixes #216. --- games-arcade/giddy3/giddy3-1.5.recipe | 57 +++++++++++++++++++ .../giddy3/patches/giddy3-1.5.patchset | 23 ++++++++ 2 files changed, 80 insertions(+) create mode 100644 games-arcade/giddy3/giddy3-1.5.recipe create mode 100644 games-arcade/giddy3/patches/giddy3-1.5.patchset diff --git a/games-arcade/giddy3/giddy3-1.5.recipe b/games-arcade/giddy3/giddy3-1.5.recipe new file mode 100644 index 000000000..438faa673 --- /dev/null +++ b/games-arcade/giddy3/giddy3-1.5.recipe @@ -0,0 +1,57 @@ +SUMMARY="A Retro Puzzle/Platform Game" +DESCRIPTION="Giddy 3 is a retro-tastic platform puzzle game! + +Featuring bright colourful graphics, smooth scrolling, puzzles, and an egg \ +with unfeasibly large hands! + +Set across 5 large scrolling levels, you play the part of Giddy, the all-round \ +good egg, who has to save the world from aliens, intent on taking over the \ +world with giant robot stompers!" +HOMEPAGE="http://www.retroleum.co.uk/giddy3/" +LICENSE="GNU GPL v2" +COPYRIGHT=" + 2000 Phil Rouston + 2009-2014 Peter Gordon" +ARCHITECTURES="x86_gcc2" +REVISION="1" + +SRC_URI="https://github.com/pete-gordon/Giddy-3/archive/v1_5.tar.gz" +CHECKSUM_SHA256="8938aa949268f0f300ff08aca246e378979169c79b3facbf020fce87c265e53f" +SRC_FILENAME="giddy3-v1.5.tar.gz" +SOURCE_DIR="Giddy-3-1_5" +PATCHES="giddy3-1.5.patchset" + +PROVIDES=" + giddy3 = $portVersion + app:giddy3 +" + +REQUIRES=" + lib:libsdl + lib:sdl_mixer +" + +BUILD_REQUIRES=" + devel:libsdl + devel:libglu + devel:sdl_mixer +" + +BUILD_PREREQUIRES=" + haiku_devel + cmd:gcc + cmd:make +" + +BUILD() +{ + cd src + make PLATFORM=haiku +} + +INSTALL() +{ + mkdir -p $appsDir/Giddy3 + cp -r giddy3 onion* hats* $appsDir/Giddy3 + addAppDeskbarSymlink $appsDir/Giddy3/giddy3 "Giddy 3" +} diff --git a/games-arcade/giddy3/patches/giddy3-1.5.patchset b/games-arcade/giddy3/patches/giddy3-1.5.patchset new file mode 100644 index 000000000..00b57b5d9 --- /dev/null +++ b/games-arcade/giddy3/patches/giddy3-1.5.patchset @@ -0,0 +1,23 @@ +From e3437608db7c7f13938e4ebbb7639b41bef58124 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 5 Apr 2015 19:28:56 +0200 +Subject: Fix build for Haiku. + +* We do have glext.h and it conflicts with the SDL replacement. + +diff --git a/src/makefile b/src/makefile +index 3b20757..248715f 100644 +--- a/src/makefile ++++ b/src/makefile +@@ -79,7 +79,7 @@ endif + # Haiku + ifeq ($(PLATFORM),haiku) + LFLAGS += `sdl-config --libs` -lGL -lSDL_mixer +-CFLAGS += `sdl-config --cflags` ++CFLAGS += `sdl-config --cflags` -DNO_SDL_GLEXT + endif + + # Pandora +-- +2.2.2 +