1SUMMARY="Free 3D go-kart racing game" 2DESCRIPTION="a 3D open-source arcade racer with a variety of customized characters, \ 3tracks, and various modes to play. Our aim is to create a game that is more fun than \ 4realistic, and provide an enjoyable experience for all ages. 5 6Discover the mystery of an underwater world, or drive through the jungles of Val Verde \ 7and visit the famous Cocoa Temple. Race underground or in a spaceship, through a rural \ 8farmland or a strange alien planet. Or rest under the palm trees on the beach, watching \ 9the other karts overtake you. But don't eat the bananas! Watch for bowling balls, \ 10plungers, bubble gum, and cakes thrown by your opponents. 11 12You can do a single race against other karts, compete in one of several Grand Prix, \ 13or try to beat the high score in time trials on your own. Play battle mode against \ 14the computer or your friends, and more! For a greater challenge, race online against \ 15players from all over the world and prove your racing skills!" 16HOMEPAGE="https://supertuxkart.net" 17COPYRIGHT="2021 SuperTuxKart Development Team" 18LICENSE="GNU GPL v3" 19REVISION="2" 20SOURCE_URI="https://github.com/supertuxkart/stk-code/releases/download/$portVersion/supertuxkart-$portVersion-src.tar.xz" 21CHECKSUM_SHA256="eeabeb0d9801688a218f6f0a76ea3546a46a322ccaca9a258148ecacfe083ffd" 22SOURCE_DIR="SuperTuxKart-$portVersion-src" 23PATCHES="supertuxkart-$portVersion.patchset" 24ADDITIONAL_FILES="supertuxkart.rdef.in" 25 26ARCHITECTURES="all !x86_gcc2" 27SECONDARY_ARCHITECTURES="x86" 28 29PROVIDES=" 30 supertuxkart$secondaryArchSuffix = $portVersion 31 app:SuperTuxKart$secondaryArchSuffix 32 " 33 34REQUIRES=" 35 haiku$secondaryArchSuffix 36 lib:libcurl$secondaryArchSuffix 37 lib:libenet$secondaryArchSuffix 38 lib:libfreetype$secondaryArchSuffix 39 lib:libGL$secondaryArchSuffix 40 lib:libglu$secondaryArchSuffix 41 lib:libglew$secondaryArchSuffix 42 lib:libharfbuzz$secondaryArchSuffix 43 lib:libjpeg$secondaryArchSuffix 44 lib:libogg$secondaryArchSuffix 45 lib:libopenal$secondaryArchSuffix 46 lib:libpng16$secondaryArchSuffix 47 lib:libSDL2_2.0$secondaryArchSuffix 48 lib:libsqlite3$secondaryArchSuffix 49 lib:libsquish$secondaryArchSuffix 50 lib:libssl$secondaryArchSuffix 51 lib:libvorbis$secondaryArchSuffix 52 lib:libz$secondaryArchSuffix 53 " 54 55BUILD_REQUIRES=" 56 haiku${secondaryArchSuffix}_devel 57 devel:libcurl$secondaryArchSuffix 58 devel:libenet$secondaryArchSuffix 59 devel:libfreetype$secondaryArchSuffix 60 devel:libGL$secondaryArchSuffix 61 devel:libglu$secondaryArchSuffix 62 devel:libglew$secondaryArchSuffix >= 2.2 63 devel:libharfbuzz$secondaryArchSuffix 64 devel:libjpeg$secondaryArchSuffix 65 devel:libogg$secondaryArchSuffix 66 devel:libopenal$secondaryArchSuffix 67 devel:libpng16$secondaryArchSuffix 68 devel:libSDL2_2.0$secondaryArchSuffix 69 devel:libsqlite3$secondaryArchSuffix 70 devel:libsquish$secondaryArchSuffix 71 devel:libssl$secondaryArchSuffix 72 devel:libvorbis$secondaryArchSuffix 73 devel:libz$secondaryArchSuffix 74 " 75 76BUILD_PREREQUIRES=" 77 cmd:cmake 78 cmd:gcc$secondaryArchSuffix 79 cmd:ld$secondaryArchSuffix 80 cmd:make 81 cmd:pkg_config$secondaryArchSuffix 82 " 83 84BUILD() 85{ 86 cmake -Bbuild -S. \ 87 -DCMAKE_BUILD_TYPE=STKRelease \ 88 -DCMAKE_INSTALL_PREFIX=$prefix \ 89 -DSTK_INSTALL_DATA_DIR=$dataDir/SuperTuxKart \ 90 -DSTK_INSTALL_BINARY_DIR=$appsDir \ 91 -DBUILD_RECORDER=OFF \ 92 -DBUILD_SHARED_LIBS=OFF \ 93 -DUSE_WIIUSE=OFF 94 95 make -C build $jobArgs 96} 97 98INSTALL() 99{ 100 make -C build install 101 rm -rf $prefix/share 102 mv $appsDir/supertuxkart $appsDir/SuperTuxKart 103 104 local APP_SIGNATURE="application/x-vnd.supertuxkart" 105 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 106 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 107 local LONG_INFO="$SUMMARY" 108 sed \ 109 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 110 -e "s|@MAJOR@|$MAJOR|" \ 111 -e "s|@MIDDLE@|$MIDDLE|" \ 112 -e "s|@LONG_INFO@|$LONG_INFO|" \ 113 $portDir/additional-files/supertuxkart.rdef.in > $sourceDir/supertuxkart.rdef 114 115 addResourcesToBinaries $sourceDir/supertuxkart.rdef $appsDir/SuperTuxKart 116 addAppDeskbarSymlink $appsDir/SuperTuxKart 117} 118