mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
neverball: add a recipe for version 1.6.0
This commit is contained in:
73
games-puzzle/neverball/neverball-1.6.0.recipe
Normal file
73
games-puzzle/neverball/neverball-1.6.0.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="Tilt the floor to roll a ball through an course before time runs out."
|
||||
DESCRIPTION="
|
||||
Neverball is part puzzle game, part action game, and entirely a test of skill. \
|
||||
Tilt the floor to roll a ball through an obstacle course before time runs out.
|
||||
"
|
||||
HOMEPAGE="http://neverball.org"
|
||||
COPYRIGHT="2002-2010 The Neverball Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
SRC_URI="http://neverball.org/neverball-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="73fe63cca4f96e2d355480d03bc0b2904e83a0abdf65fe8c52db5cc3cca88fa0"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 ?x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
PATCHES="neverball-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
neverball$secondaryArchSuffix = $portVersion
|
||||
app:neverball$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libphysfs$secondaryArchSuffix
|
||||
lib:libsdl2$secondaryArchSuffix
|
||||
lib:libsdl2_mixer$secondaryArchSuffix
|
||||
lib:libsdl2_ttf$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libphysfs$secondaryArchSuffix
|
||||
devel:libsdl2$secondaryArchSuffix
|
||||
devel:libsdl2_mixer$secondaryArchSuffix
|
||||
devel:libsdl2_ttf$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
gettext$secondaryArchSuffix # it's needed
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:find
|
||||
cmd:libpng_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/neverball
|
||||
cp -rf neverball neverputt mapc README.md LICENSE.md data $appsDir/neverball
|
||||
addAppDeskbarSymlink $appsDir/neverball/neverball
|
||||
}
|
||||
31
games-puzzle/neverball/patches/neverball-1.6.0.patchset
Normal file
31
games-puzzle/neverball/patches/neverball-1.6.0.patchset
Normal file
@@ -0,0 +1,31 @@
|
||||
From d1faefc900634563eef70b315a3f0c5662ec0a8a Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Thu, 7 Aug 2014 17:17:36 +0000
|
||||
Subject: haiku patch
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 815e50c..39a5dd6 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -168,7 +168,7 @@ ifeq ($(PLATFORM),darwin)
|
||||
OGL_LIBS := -framework OpenGL
|
||||
endif
|
||||
|
||||
-BASE_LIBS := -ljpeg $(PNG_LIBS) $(FS_LIBS) -lm
|
||||
+BASE_LIBS := -ljpeg $(PNG_LIBS) $(FS_LIBS) -lintl
|
||||
|
||||
ifeq ($(PLATFORM),darwin)
|
||||
BASE_LIBS += $(patsubst %, -L%, $(wildcard /opt/local/lib \
|
||||
@@ -176,7 +176,7 @@ ifeq ($(PLATFORM),darwin)
|
||||
endif
|
||||
|
||||
OGG_LIBS := -lvorbisfile
|
||||
-TTF_LIBS := -lSDL2_ttf
|
||||
+TTF_LIBS := -lSDL2_ttf -lfreetype
|
||||
|
||||
ALL_LIBS := $(HMD_LIBS) $(TILT_LIBS) $(INTL_LIBS) $(TTF_LIBS) \
|
||||
$(OGG_LIBS) $(SDL_LIBS) $(OGL_LIBS) $(BASE_LIBS)
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user