From 8f73946d6b57b4ab58e1151ba3aaa2889b911be6 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 12 Jan 2014 14:01:13 +0100 Subject: [PATCH] Add Maelstrom. Blast the asteroids! --- games-action/maelstrom/maelstrom-3.0.6.recipe | 75 +++++++++++++++++++ .../patches/maelstrom-3.0.6.patchset | 24 ++++++ 2 files changed, 99 insertions(+) create mode 100644 games-action/maelstrom/maelstrom-3.0.6.recipe create mode 100644 games-action/maelstrom/patches/maelstrom-3.0.6.patchset diff --git a/games-action/maelstrom/maelstrom-3.0.6.recipe b/games-action/maelstrom/maelstrom-3.0.6.recipe new file mode 100644 index 000000000..bbf3c5ad0 --- /dev/null +++ b/games-action/maelstrom/maelstrom-3.0.6.recipe @@ -0,0 +1,75 @@ +SUMMARY="Blast the Asteroids!" +DESCRIPTION=" +You pilot your ship through the dreaded \"Maelstrom\" asteroid belt -- suddenly +your best friend thrusts towards you and fires, directly at your cockpit. You +raise your shields just in time, and the battle is joined. + +The deadliest stretch of space known to mankind has just gotten deadlier. +Everywhere massive asteroids jostle for a chance to crush your ship, and deadly +shinobi fighter patrols pursue you across the asteroid belt. But the deadliest +of them all is your sister ship, assigned to you on patrol. The pilot, trained +by your own Navy, battle hardened by months in the Maelstrom, is equipped with +a twin of your own ship and intimate knowledge of your tactics. + +The lovely Stratocaster R&R facility never sounded so good, but as you fire +full thrusters to dodge the latest barrage you begin to think you'll never get +home... +" +HOMEPAGE="http://www.libsdl.org/projects/Maelstrom" +COPYRIGHT="Copyright (C) 1996-2005 Sam Lantinga" +LICENSE="GNU GPL v2" +SRC_URI="http://www.libsdl.org/projects/Maelstrom/src/Maelstrom-$portVersion.tar.gz" +CHECKSUM_MD5="96aa6359538a6bd60b4198a792de578b" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + maelstrom$secondaryArchSuffix = $portVersion + app:Maelstrom + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libsdl$secondaryArchSuffix + lib:libSDL_net$secondaryArchSuffix + " +BUILD_REQUIRES=" + devel:libsdl$secondaryArchSuffix + devel:libSDL_net$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:autom4te + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:nasm + cmd:libtoolize + " +SOURCE_DIR="Maelstrom-$portVersion" +PATCHES="maelstrom-$portVersion.patchset" + +BUILD() +{ + libtoolize --force --copy --install + aclocal + touch NEWS AUTHORS ChangeLog # Yeah, automake needs all this stuff... + automake --add-missing + autoconf + + export LDFLAGS=-lnetwork + export CPPFLAGS=-D__BEOS__ + runConfigure --omit-dirs "docDir dataRootDir" ./configure + make $jobArgs +} + +INSTALL() +{ + make install + rm -rf $appsDir + mv $prefix/games $appsDir + + cp Maelstrom Maelstrom-netd $appsDir/Maelstrom/ + + addAppDeskbarSymlink $appsDir/Maelstrom/Maelstrom Maelstrom +} diff --git a/games-action/maelstrom/patches/maelstrom-3.0.6.patchset b/games-action/maelstrom/patches/maelstrom-3.0.6.patchset new file mode 100644 index 000000000..d857f160c --- /dev/null +++ b/games-action/maelstrom/patches/maelstrom-3.0.6.patchset @@ -0,0 +1,24 @@ +From 0aac53a13823ba5d1025006650115865a75944d4 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Sun, 12 Jan 2014 13:27:13 +0100 +Subject: Add haiku support to configure script. + + +diff --git a/configure.in b/configure.in +index 0170f4b..4f99f3f 100644 +--- a/configure.in ++++ b/configure.in +@@ -33,6 +33,10 @@ case "$target" in + MATHLIB="" + INETLIB="" + ;; ++ *-*-haiku*) ++ MATHLIB="" ++ INETLIB="-lnetwork" ++ ;; + *-*-darwin*) + MATHLIB="" + INETLIB="" +-- +1.8.3.4 +