1SUMMARY="Free Lemmings clone" 2DESCRIPTION="Pingus is a free Lemmings(tm) clone for GNU/Linux, Win32 and \ 3other operating systems supported by SDL. It is covered under the GPL." 4HOMEPAGE="https://pingus.seul.org" 5COPYRIGHT="1998-2011 Ingo Ruhnke" 6LICENSE="GNU GPL v3" 7REVISION="5" 8SOURCE_URI="https://github.com/Pingus/pingus/archive/v$portVersion.tar.gz" 9CHECKSUM_SHA256="c4cd89e1d350d2472f32de5f6266ac9f3658a3620eace3f79efac45db4323b65" 10PATCHES="pingus-$portVersion.patchset" 11ADDITIONAL_FILES="pingus.rdef.in" 12 13ARCHITECTURES="all !x86_gcc2" 14SECONDARY_ARCHITECTURES="x86" 15 16PROVIDES=" 17 pingus$secondaryArchSuffix = $portVersion 18 app:Pingus$secondaryArchSuffix = $portVersion 19 " 20REQUIRES=" 21 haiku$secondaryArchSuffix 22 lib:libGL$secondaryArchSuffix 23 lib:libglu$secondaryArchSuffix 24 lib:libiconv$secondaryArchSuffix 25 lib:libpng16$secondaryArchSuffix 26 lib:libsdl_1.2$secondaryArchSuffix 27 lib:libsdl_image_1.2$secondaryArchSuffix 28 lib:libsdl_mixer_1.2$secondaryArchSuffix 29 lib:libz$secondaryArchSuffix 30 " 31 32BUILD_REQUIRES=" 33 haiku${secondaryArchSuffix}_devel 34 devel:libboost_system$secondaryArchSuffix >= 1.70.0 35 devel:libGL$secondaryArchSuffix 36 devel:libglu$secondaryArchSuffix 37 devel:libiconv$secondaryArchSuffix 38 devel:libpng16$secondaryArchSuffix 39 devel:libsdl_1.2$secondaryArchSuffix 40 devel:libsdl_image_1.2$secondaryArchSuffix 41 devel:libsdl_mixer_1.2$secondaryArchSuffix 42 devel:libz$secondaryArchSuffix 43 " 44BUILD_PREREQUIRES=" 45 cmd:find 46 cmd:gcc$secondaryArchSuffix 47 cmd:make 48 cmd:pkg_config$secondaryArchSuffix 49 cmd:scons 50 " 51 52BUILD() 53{ 54 scons \ 55 with_opengl=false \ 56 BINDIR=$appsDir/Pingus \ 57 DATADIR=$appsDir/Pingus/data \ 58 MANDIR=$manDir 59} 60 61INSTALL() 62{ 63 mkdir -p $appsDir/Pingus/data 64 65 make install \ 66 BINDIR=$appsDir/Pingus \ 67 DATADIR=$appsDir/Pingus/data \ 68 MANDIR=$manDir 69 70 mv $appsDir/Pingus/pingus.bin $appsDir/Pingus/Pingus 71 rm $appsDir/Pingus/pingus 72 73 local APP_SIGNATURE="application/x-vnd.pingus" 74 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 75 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 76 local MINOR="`echo "$portVersion" | cut -d. -f3`" 77 local LONG_INFO="$SUMMARY" 78 sed \ 79 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 80 -e "s|@MAJOR@|$MAJOR|" \ 81 -e "s|@MIDDLE@|$MIDDLE|" \ 82 -e "s|@MINOR@|$MINOR|" \ 83 -e "s|@LONG_INFO@|$LONG_INFO|" \ 84 $portDir/additional-files/pingus.rdef.in > $sourceDir/pingus.rdef 85 86 addResourcesToBinaries $sourceDir/pingus.rdef \ 87 $appsDir/Pingus/Pingus 88 89 addAppDeskbarSymlink $appsDir/Pingus/Pingus 90} 91