From e98f0e8c4c251bc2e2bccc831c75aef04a8034d9 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sun, 3 Nov 2019 23:08:32 +1000 Subject: [PATCH] FooBillardPlus: add recipe --- .../additional-files/foobillardplus.rdef.in | 48 ++++++++++ .../foobillardplus-3.42.0.recipe | 96 +++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 games-sports/foobillardplus/additional-files/foobillardplus.rdef.in create mode 100644 games-sports/foobillardplus/foobillardplus-3.42.0.recipe diff --git a/games-sports/foobillardplus/additional-files/foobillardplus.rdef.in b/games-sports/foobillardplus/additional-files/foobillardplus.rdef.in new file mode 100644 index 000000000..eb78fb01c --- /dev/null +++ b/games-sports/foobillardplus/additional-files/foobillardplus.rdef.in @@ -0,0 +1,48 @@ +resource app_flags B_SINGLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "FooBillard++", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon array { + $"6E63696608040082020116043ED0000000000000003F200048800048000000FF" + $"68E3A1BBFF48020106033927FB3EB9FDBF324239B33449BE6F44544A00A9FF00" + $"BD007F33FF025D27050003F7F9F6020106033D7FD10000000000003E083B4AAA" + $"9A4888BD00FFD2679BFFA837FFFF64060500040172090204CBE2C903CDE9C491" + $"C9D7CD77BD3FCE5AC34CCFDBB733CCDDB5F9C39AB3F2C80AB802BF27C49EBE41" + $"BE90BCC3CAAA400204CA6CBEB5CA6CB83ECA6CC52FBEB5CA6DC530CA6CB83ECA" + $"6D1FBEB51FC5301FB83EBEB41FB83E1FC52FB2FC0204B735B5C3BE17B775B51D" + $"B76FB327BD0FB403B99FBC31BEFCC746C6AFC206C257C89CC52BCA4CBE9FCA76" + $"C2D1C54FBA3B0204C4A8BD44C4A8BA45C4A8C042BF3EC2B2C23CC2B2BC3FC2B2" + $"B9D1BD44B9D1C043B9D1BA45BF3DB7D9BC3FB7D9C23CB7D90206C139B940C1BB" + $"B977C069B8E7BEC1B9A3BF73B924BDF7BA37BD9737BD71BB32BDAFBCD9BEE7BD" + $"A3BE34BD74BFC9BDE3C16ABCECC0C2BD89C219BC4EC23FBA6BC281BB52C21DB9" + $"E90205C0D8BA03C0BDB9F644BA35C18BBB43C19FBAC2C172BC33BF83BCDCC07D" + $"BD00BF00BCCCBE81BBDCBE90BC5DBE5DBAD0C080B9EBBF69B9C8C09FB9ED0204" + $"C047BCE8BF4FBDB5C070BD4AC11ABD2543BCC2C022BDF2BDD0C049BEA7BFFABD" + $"89C066BC59BFA4BC80C007BD4FBED7061CFEBEFBAAAAAAEEC22AB468C306BB35" + $"C351B97DC2BBBCE4C030BFADC1CEBF05BFB1BFE0BD94BE34BE25BED9BD03BD8F" + $"BCA0BBC2BC6EBED9BC44BD54BC9AC05DBD3EC3C1BD4BC297BD2EC504BC52C666" + $"BB45C3F1BBCBC4EDBAC2C2F5B961C1A3BA1FC4C8BA19C342BA26C64DBA31CDB0" + $"B768C983BD02D1E8C13AD16BC240D10ABE50CF1BC365CCA0BE50CA22C365C7A5" + $"C879CA22CCE5C7F8CCC5C743C879C528CC36C354CC11C218CB71BD8BC9F1BF97" + $"CABBBF0EC96CBFF1C825C010C6B6BA63C772BC54C565B6EB0A05C879CA22C365" + $"CCA0C80ECEE7C9E6CE3BCBF5CBD7090A06020708123F5D740000000000003EE0" + $"69C0D70E41377901178500040A05020708023F5D740000000000003EE069C0D7" + $"0E4137790A000100023E768F0000000000003E43DA4758DE49299C0A03010112" + $"3E42ED0000000000003E43DA47B60C497A2001178700040A010101023E42ED00" + $"00000000003E43DA47B60C497A200A020102023E37C10000000000003E34AE47" + $"B650497D6A0A040103023E42ED0000000000003E43DA47B60C497A200A030204" + $"05023E42ED0000000000003E43DA47B60C497A200A030106023E42ED00000000" + $"00003E43DA47B60C497A20" +}; diff --git a/games-sports/foobillardplus/foobillardplus-3.42.0.recipe b/games-sports/foobillardplus/foobillardplus-3.42.0.recipe new file mode 100644 index 000000000..98ced697e --- /dev/null +++ b/games-sports/foobillardplus/foobillardplus-3.42.0.recipe @@ -0,0 +1,96 @@ +SUMMARY="3D OpenGL Billiard Game" +DESCRIPTION="FooBillard supports several kinds of billiard games: \ +carom billiards (three-cushion billiards), snooker, and pool billiard \ +(pocket billiards) in the eight-ball and nine-ball variant. + +FooBillard has a realistic physics engine and a computer opponent AI. \ +It features an optional red/green 3D stereo view (requires anaglyph 3D \ +glasses), a free view mode and an animated cue." +HOMEPAGE="https://foobillardplus.sourceforge.net/" +COPYRIGHT="Florian Berger" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/threedeyes/FooBillardPlus/archive/$portVersion.tar.gz" +CHECKSUM_SHA256="e7ccb5f100e82f139ee80edd4c3093a0b879727e67675383e4ef5d0c5bb38a0e" +SOURCE_DIR="FooBillardPlus-$portVersion" +ADDITIONAL_FILES="foobillardplus.rdef.in" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + foobillardplus$secondaryArchSuffix = $portVersion + app:FooBillard++$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libGL$secondaryArchSuffix + lib:libGLU$secondaryArchSuffix + lib:libpng16$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + lib:libSDL2_image_2.0${secondaryArchSuffix} + lib:libSDL2_mixer_2.0${secondaryArchSuffix} + lib:libSDL2_net_2.0${secondaryArchSuffix} + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libfreetype$secondaryArchSuffix + devel:libGL$secondaryArchSuffix + devel:libglu$secondaryArchSuffix + devel:libpng16$secondaryArchSuffix + devel:libSDL2$secondaryArchSuffix + devel:libSDL2_image$secondaryArchSuffix + devel:libSDL2_mixer$secondaryArchSuffix + devel:libSDL2_net$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autoheader + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + aclocal --force + autoconf -f + autoheader -f + automake -a -c -f + + LIBS="-lnetwork" ./configure \ + --disable-fastmath \ + --enable-nvidia=no \ + --enable-sdl2 \ + --without-x + make $jobArgs +} + +INSTALL() +{ + mkdir -p $appsDir/FooBillard++ + + cp src/foobillardplus $appsDir/FooBillard++/FooBillard++ + cp -rf data $appsDir/FooBillard++ + + local APP_SIGNATURE="application/x-vnd.foobillardplus" + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local LONG_INFO="$SUMMARY" + sed \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/foobillardplus.rdef.in > $sourceDir/foobillardplus.rdef + + addResourcesToBinaries $sourceDir/foobillardplus.rdef $appsDir/FooBillard++/FooBillard++ + addAppDeskbarSymlink $appsDir/FooBillard++/FooBillard++ +}