mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
107 lines
3.2 KiB
Bash
107 lines
3.2 KiB
Bash
SUMMARY="Clone of Super Monkey Ball using SDL/OpenGL"
|
|
DESCRIPTION="Tilt the floor to roll a ball through an obstacle course within the \
|
|
given time. If the ball falls or time expires, a ball is lost. \
|
|
Collect coins to unlock the exit and earn extra balls."
|
|
HOMEPAGE="https://neverball.org"
|
|
COPYRIGHT="2002-2014 The Neverball Team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="4"
|
|
SOURCE_URI="https://neverball.org/neverball-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="73fe63cca4f96e2d355480d03bc0b2904e83a0abdf65fe8c52db5cc3cca88fa0"
|
|
PATCHES="neverball-$portVersion.patchset"
|
|
ADDITIONAL_FILES="neverball.rdef.in
|
|
neverputt.rdef.in
|
|
"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
neverball$secondaryArchSuffix = $portVersion
|
|
app:neverball$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libphysfs$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libsdl2_2.0$secondaryArchSuffix
|
|
lib:libsdl2_mixer_2.0$secondaryArchSuffix
|
|
lib:libsdl2_ttf_2.0$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libphysfs$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libsdl2_2.0$secondaryArchSuffix
|
|
devel:libsdl2_mixer_2.0$secondaryArchSuffix
|
|
devel:libsdl2_ttf_2.0$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
gettext$secondaryArchSuffix # it's needed
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libpng_config$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/Neverball
|
|
cp -rf mapc README.md LICENSE.md data $appsDir/Neverball
|
|
cp -f neverball $appsDir/Neverball/Neverball
|
|
cp -f neverputt $appsDir/Neverball/Neverputt
|
|
|
|
local APP_SIGNATURE="application/x-vnd.the-neverball"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/neverball.rdef.in > $sourceDir/neverball.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/neverball.rdef \
|
|
$appsDir/Neverball/Neverball
|
|
|
|
local APP_SIGNATURE="application/x-vnd.the-neverputt"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/neverputt.rdef.in > $sourceDir/neverputt.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/neverputt.rdef \
|
|
$appsDir/Neverball/Neverputt
|
|
|
|
addAppDeskbarSymlink $appsDir/Neverball/Neverball
|
|
addAppDeskbarSymlink $appsDir/Neverball/Neverputt
|
|
}
|