From 5dc2e288da8ce929e74e353a14c38d92d97232c6 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 24 Jun 2018 05:32:17 +0200 Subject: [PATCH] ballsmacker, new recipe (#2583) --- .../ballsmacker/ballsmacker-1.0.0.recipe | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 games-sports/ballsmacker/ballsmacker-1.0.0.recipe diff --git a/games-sports/ballsmacker/ballsmacker-1.0.0.recipe b/games-sports/ballsmacker/ballsmacker-1.0.0.recipe new file mode 100644 index 000000000..08f3eb4a2 --- /dev/null +++ b/games-sports/ballsmacker/ballsmacker-1.0.0.recipe @@ -0,0 +1,72 @@ +SUMMARY="An OpenGL virtual pool game" +DESCRIPTION="Ballsmacker is a Free virtual pool game rendered in OpenGL. \ +Currently British and American pool are supported; there are plans to \ +support many different billiards games. At the moment the game can be played \ +with two players taking turns on one computer; in the future networked \ +multiplayer will be supported." +HOMEPAGE="http://ballsmacker.sourceforge.net/" +COPYRIGHT="2004 Simon Howard" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://downloads.sourceforge.net/ballsmacker/ballsmacker-$portVersion.tar.gz" +CHECKSUM_SHA256="5eae4bc75fb9248ebba43cde312e5f22f889f600da7def23307be75df3130a94" + +ARCHITECTURES="?x86_gcc2 ?x86_64 ?x86" +SECONDARY_ARCHITECTURES="?x86" + +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + ballsmacker$secondaryArchSuffix = $portVersion + cmd:ballsmacker$commandSuffix = $portVersion + app:BallSmacker = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgl$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libglu$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libsdl$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgl$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libglu$secondaryArchSuffix + devel:libsdl$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -vfi + runConfigure --omit-dirs bindir ./configure \ + --bindir=$commandBinDir + make $jobArgs +} + +INSTALL() +{ + make install + + mkdir -p "$appsDir" + ln -rs "$commandBinDir"/ballsmacker "$appsDir"/BallSmacker + + addAppDeskbarSymlink "$commandBinDir"/ballsmacker BallSmacker +}