1SUMMARY="A drawing puzzle game in the spirit (and style?) of Crayon Physics" 2DESCRIPTION="Harness gravity with your crayon and set about creating blocks, ramps, \ 3levers, pulleys and whatever else you fancy to get the little red thing to \ 4the little yellow thing." 5HOMEPAGE="http://numptyphysics.garage.maemo.org" 6COPYRIGHT="2008-2010 Tim Edmonds 7 2008, 2012, 2014-2019 Thomas Perl" 8LICENSE="GNU GPL v3" 9REVISION="1" 10SOURCE_URI="https://github.com/thp/numptyphysics/archive/$portVersion.tar.gz" 11CHECKSUM_SHA256="70347440adcacb3f1b02a2a73a4c23e8a76145a5e6e12237c7512a73b6000c5a" 12PATCHES="numptyphysics-$portVersion.patchset" 13ADDITIONAL_FILES="numptyphysics.rdef" 14 15ARCHITECTURES="all !x86_gcc2 !x86" 16SECONDARY_ARCHITECTURES="!x86_gcc2 !x86" 17 18PROVIDES=" 19 numptyphysics$secondaryArchSuffix = $portVersion 20 app:NumptyPhysics 21 " 22REQUIRES=" 23 haiku$secondaryArchSuffix 24 lib:libBox2D$secondaryArchSuffix 25 lib:libGL$secondaryArchSuffix 26 lib:libSDL_1.2$secondaryArchSuffix 27 lib:libSDL_image_1.2$secondaryArchSuffix 28 lib:libSDL_ttf_2.0$secondaryArchSuffix 29 lib:libz$secondaryArchSuffix 30 " 31 32BUILD_REQUIRES=" 33 haiku${secondaryArchSuffix}_devel 34 devel:libBox2D$secondaryArchSuffix 35 devel:libGL$secondaryArchSuffix 36 devel:libSDL$secondaryArchSuffix 37 devel:libSDL_image$secondaryArchSuffix 38 devel:libSDL_ttf$secondaryArchSuffix 39 devel:libz$secondaryArchSuffix 40 " 41BUILD_PREREQUIRES=" 42 cmd:gcc$secondaryArchSuffix 43 cmd:ld$secondaryArchSuffix 44 cmd:libtoolize$secondaryArchSuffix 45 cmd:make 46 cmd:pkg_config$secondaryArchSuffix 47 " 48 49BUILD() 50{ 51 make PLATFORM=sdl1 PREFIX=$appsDir/NumptyPhysics OBJ_DIR=objects $jobArgs 52} 53 54INSTALL() 55{ 56 make PLATFORM=sdl1 PREFIX=$appsDir/NumptyPhysics install 57 58 mv $appsDir/NumptyPhysics/bin/numptyphysics "$appsDir/NumptyPhysics/Numpty Physics" 59 mv $appsDir/NumptyPhysics/data/numptyphysics/* $appsDir/NumptyPhysics/data 60 rm -rf $appsDir/NumptyPhysics/{bin,data/numptyphysics} 61 62 addResourcesToBinaries $portDir/additional-files/numptyphysics.rdef "$appsDir/NumptyPhysics/Numpty Physics" 63 64 addAppDeskbarSymlink "$appsDir/NumptyPhysics/Numpty Physics" 65} 66