Files
haikuports/games-puzzle/numptyphysics/numptyphysics-0.3.4.recipe
Schrijvers Luc ce35aa6237 numptyphysics, fix references to libSDL*, fix build (#4290)
* numptyphysics, fix references to libSDL*, fix build
2019-11-18 12:20:58 +01:00

63 lines
1.9 KiB
Bash

SUMMARY="A drawing puzzle game in the spirit (and style?) of Crayon Physics"
DESCRIPTION="Harness gravity with your crayon and set about creating blocks, ramps, \
levers, pulleys and whatever else you fancy to get the little red thing to \
the little yellow thing."
HOMEPAGE="http://numptyphysics.garage.maemo.org"
COPYRIGHT="2008-2010 Tim Edmonds
2008, 2012, 2014-2016 Thomas Perl"
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="https://github.com/thp/numptyphysics/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="e00e1535c8246f3f1c3bab37d2e6f01259a14f59b38382299457b4b8447d2bc9"
PATCHES="numptyphysics-$portVersion.patchset"
ADDITIONAL_FILES="numptyphysics.rdef"
ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
SECONDARY_ARCHITECTURES="!x86_gcc2 !x86"
PROVIDES="
numptyphysics = $portVersion
app:NumptyPhysics
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libBox2D$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
lib:libSDL_ttf_2.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libBox2D$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libSDL_image$secondaryArchSuffix
devel:libSDL_ttf$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
# TODO: figure out how to move the ~/.numptyphysics directory to ~/config/settings/numptyphysics
make PLATFORM=sdl1 PREFIX=$appsDir/NumptyPhysics OBJ_DIR=objects $jobArgs
}
INSTALL()
{
make PLATFORM=sdl1 PREFIX=$appsDir/NumptyPhysics install
addResourcesToBinaries $portDir/additional-files/numptyphysics.rdef $appsDir/NumptyPhysics/bin/numptyphysics
ln -s $appsDir/NumptyPhysics/bin/numptyphysics $appsDir/NumptyPhysics/"Numpty Physics"
}