1SUMMARY="Clone of Super Monkey Ball using SDL2/OpenGL" 2DESCRIPTION="Tilt the floor to roll a ball through an obstacle course within \ 3the given time. If the ball falls or time expires, a ball is lost. \ 4Collect coins to unlock the exit and earn extra balls. Red coins are worth 5. \ 5Blue coins are worth 10. A ball is awarded for 100 coins." 6HOMEPAGE="https://neverball.org" 7COPYRIGHT="2002-2019 The Neverball Team" 8LICENSE="GNU GPL v2" 9REVISION="2" 10srcGitRev="09a2a620a6b71bfc0afca1f0fc96a7dfb6cb9208" 11SOURCE_URI="https://github.com/Neverball/neverball/archive/$srcGitRev.tar.gz" 12CHECKSUM_SHA256="66a9fa8b0f7676991e32b4dda669a64e902ddc07e5612d1f4f21a9003549fcde" 13SOURCE_FILENAME="neverball-$portVersion-$srcGitRev.tar.gz" 14SOURCE_DIR="neverball-$srcGitRev" 15PATCHES="neverball-$portVersion.patchset" 16ADDITIONAL_FILES=" 17 neverball.rdef.in 18 neverputt.rdef.in 19 " 20 21ARCHITECTURES="all !x86_gcc2" 22if [ "$targetArchitecture" = x86_gcc2 ]; then 23SECONDARY_ARCHITECTURES="x86" 24fi 25 26PROVIDES=" 27 neverball$secondaryArchSuffix = $portVersion 28 app:neverball$secondaryArchSuffix = $portVersion 29 " 30REQUIRES=" 31 haiku$secondaryArchSuffix 32 lib:libfreetype$secondaryArchSuffix 33 lib:libGL$secondaryArchSuffix 34 lib:libintl$secondaryArchSuffix 35 lib:libjpeg$secondaryArchSuffix 36 lib:libogg$secondaryArchSuffix 37 lib:libphysfs$secondaryArchSuffix 38 lib:libpng16$secondaryArchSuffix 39 lib:libSDL2_2.0$secondaryArchSuffix 40 lib:libSDL2_mixer_2.0$secondaryArchSuffix 41 lib:libSDL2_ttf_2.0$secondaryArchSuffix 42 lib:libvorbis$secondaryArchSuffix 43 " 44 45BUILD_REQUIRES=" 46 haiku${secondaryArchSuffix}_devel 47 devel:libfreetype$secondaryArchSuffix 48 devel:libGL$secondaryArchSuffix 49 devel:libintl$secondaryArchSuffix 50 devel:libjpeg$secondaryArchSuffix 51 devel:libogg$secondaryArchSuffix 52 devel:libphysfs$secondaryArchSuffix 53 devel:libpng16$secondaryArchSuffix 54 devel:libSDL2$secondaryArchSuffix 55 devel:libSDL2_mixer$secondaryArchSuffix 56 devel:libSDL2_ttf$secondaryArchSuffix 57 devel:libvorbis$secondaryArchSuffix 58 " 59BUILD_PREREQUIRES=" 60 cmd:find 61 cmd:gcc$secondaryArchSuffix 62 cmd:ld$secondaryArchSuffix 63 cmd:libpng_config$secondaryArchSuffix >= 1.6 64 cmd:make 65 " 66 67PATCH() 68{ 69 mv share/version.in.h share/version.h 70 sed -i 's/0.0.0/1.6.1/g' share/version.h 71} 72 73BUILD() 74{ 75 make $jobArgs 76} 77 78INSTALL() 79{ 80 mkdir -p $appsDir/Neverball 81 cp -rf mapc README.md LICENSE.md data $appsDir/Neverball 82 cp -f neverball $appsDir/Neverball/Neverball 83 cp -f neverputt $appsDir/Neverball/Neverputt 84 85 local APP_SIGNATURE="application/x-vnd.the-neverball" 86 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 87 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 88 local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`" 89 local LONG_INFO="$SUMMARY" 90 sed \ 91 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 92 -e "s|@MAJOR@|$MAJOR|" \ 93 -e "s|@MIDDLE@|$MIDDLE|" \ 94 -e "s|@MINOR@|$MINOR|" \ 95 -e "s|@LONG_INFO@|$LONG_INFO|" \ 96 $portDir/additional-files/neverball.rdef.in > $sourceDir/neverball.rdef 97 98 addResourcesToBinaries $sourceDir/neverball.rdef \ 99 $appsDir/Neverball/Neverball 100 101 local APP_SIGNATURE="application/x-vnd.the-neverputt" 102 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 103 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 104 local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`" 105 local LONG_INFO="$SUMMARY" 106 sed \ 107 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 108 -e "s|@MAJOR@|$MAJOR|" \ 109 -e "s|@MIDDLE@|$MIDDLE|" \ 110 -e "s|@MINOR@|$MINOR|" \ 111 -e "s|@LONG_INFO@|$LONG_INFO|" \ 112 $portDir/additional-files/neverputt.rdef.in > $sourceDir/neverputt.rdef 113 114 addResourcesToBinaries $sourceDir/neverputt.rdef \ 115 $appsDir/Neverball/Neverputt 116 117 addAppDeskbarSymlink $appsDir/Neverball/Neverball 118 addAppDeskbarSymlink $appsDir/Neverball/Neverputt 119} 120