diff --git a/games-action/bzflag/bzflag-2.0.14.recipe b/games-action/bzflag/bzflag-2.0.14.recipe deleted file mode 100644 index 3301851d6..000000000 --- a/games-action/bzflag/bzflag-2.0.14.recipe +++ /dev/null @@ -1,25 +0,0 @@ -DESCRIPTION="bzflag - 3D tank combat simulator game" -HOMEPAGE="http://www.bzflag.org/" -SRC_URI="http://downloads.sourceforge.net/project/bzflag/bzflag%20source/2.0.14/bzflag-2.0.14.tar.bz2" -REVISION="1" -STATUS_HAIKU="broken" -DEPEND="libsdl >= 1.2.14" -CHECKSUM_MD5="15a28cd55e46f0f39a7c8b8eea7464c6" -BUILD() -{ - cd bzflag-2.0.14 - mkdir -p m4 - libtoolize --force --copy --install - ./autogen.sh - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd bzflag-2.0.14 - make install -} - -LICENSE="GNU LGPL v2.1" -COPYRIGHT="1993-2010 Tim Riker" diff --git a/games-action/bzflag/bzflag-2.4.2.recipe b/games-action/bzflag/bzflag-2.4.2.recipe new file mode 100644 index 000000000..719e8a7fb --- /dev/null +++ b/games-action/bzflag/bzflag-2.4.2.recipe @@ -0,0 +1,94 @@ +SUMMARY="online multiplayer 3D tank battle game" +DESCRIPTION="BZFlag is a free online multiplayer 3D tank battle game. The name \ +originates from \"Battle Zone Capture The Flag\". It runs on Windows, Mac OSX, \ +Linux, BSD, and other platforms. It was one of the most popular games ever on \ +Silicon Graphics machines and continues to be developed and improved to this day. +" +HOMEPAGE="http://www.bzflag.org/" +REVISION="1" +ARCHITECTURES="" +SECONDARY_ARCHITECTURES="x86" +if [ $effectiveTargetArchitecture == "x86" ]; then + ARCHITECTURES+="x86_gcc2 $ARCHITECTURES" +fi + +SRC_URI="http://downloads.sourceforge.net/project/bzflag/bzflag%20source/$portVersion/bzflag-$portVersion.tar.bz2" +CHECKSUM_SHA256="4f7bc52284cc4b39fc352855e555b2b064c1de6a18f7474e249073070762c811" +PATCHES="bzflag-$portVersion.patchset" + +PROVIDES=" + bzflag$secondaryArchSuffix = $portVersion + cmd:bzadmin$secondaryArchSuffix + cmd:bzfs$secondaryArchSuffix + lib:HoldTheFlag$secondaryArchSuffix + lib:Phoenix$secondaryArchSuffix + lib:SAMPLE_PLUGIN$secondaryArchSuffix + lib:TimeLimit$secondaryArchSuffix + lib:airspawn$secondaryArchSuffix + lib:autoFlagReset$secondaryArchSuffix + lib:chathistory$secondaryArchSuffix + lib:customflagsample$secondaryArchSuffix + lib:fairCTF$secondaryArchSuffix + lib:fastmap$secondaryArchSuffix + lib:flagStay$secondaryArchSuffix + lib:hiddenAdmin$secondaryArchSuffix + lib:keepaway$secondaryArchSuffix + lib:killall$secondaryArchSuffix + lib:koth$secondaryArchSuffix + lib:logDetail$secondaryArchSuffix + lib:nagware$secondaryArchSuffix + lib:playHistoryTracker$secondaryArchSuffix + lib:rabbitTimer$secondaryArchSuffix + lib:rabidRabbit$secondaryArchSuffix + lib:recordmatch$secondaryArchSuffix + lib:regFlag$secondaryArchSuffix + lib:RogueGenocide$secondaryArchSuffix + lib:serverControl$secondaryArchSuffix + lib:shockwaveDeath$secondaryArchSuffix + lib:teamflagreset$secondaryArchSuffix + lib:thiefControl$secondaryArchSuffix + lib:timedctf$secondaryArchSuffix + lib:wwzones$secondaryArchSuffix +" + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgcc_s$secondaryArchSuffix + lib:libstdc++$secondaryArchSuffix + lib:libcares$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + lib:libcurl$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + lib:libz$secondaryArchSuffix +" + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcares$secondaryArchSuffix + devel:libcurl$secondaryArchSuffix + devel:libz$secondaryArchSuffix +" + +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:gawk + cmd:gcc$secondaryArchSuffix + cmd:make +" + +BUILD() +{ + export LDFLAGS=-lnetwork + runConfigure ./configure --disable-ares-build --disable-curl-build --disable-zlib-build + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/*.la +} + +LICENSE="GNU LGPL v2.1" +COPYRIGHT="1993-2010 Tim Riker" diff --git a/games-action/bzflag/patches/bzflag-2.0.14.patch b/games-action/bzflag/patches/bzflag-2.0.14.patch deleted file mode 100644 index 700c8a99e..000000000 --- a/games-action/bzflag/patches/bzflag-2.0.14.patch +++ /dev/null @@ -1,96 +0,0 @@ -diff -urN bzflag-2.0.14/configure.ac bzflag-2.0.14-haiku/configure.ac ---- bzflag-2.0.14/configure.ac 2010-02-14 19:35:21.006553600 +0000 -+++ bzflag-2.0.14-haiku/configure.ac 2010-06-20 06:37:51.000000000 +0000 -@@ -15,7 +15,7 @@ - AC_CONFIG_SRCDIR(src/bzflag/bzflag.cxx) - AC_REVISION($Revision $) - --AC_CONFIG_AUX_DIR(misc) -+AC_CONFIG_AUX_DIR(m4) - - # sed magic to get version numbers from src/date/buildDate.cxx - MAJOR_VERSION=`sed -e 's/#.*define.*BZ_MAJOR_VERSION[^0-9]*\(.*\)/\1/' -e t -e d < \$srcdir/src/date/buildDate.cxx` -@@ -293,6 +293,10 @@ - GLIBS=" -lmedia -lgame $GLIBS" - LIBS="-lbe" - ;; -+ haiku*) -+ GLIBS=" -lmedia -lgame $GLIBS" -+ LIBS="-lbe" -+ ;; - macos|darwin*) - ;; - *) -@@ -303,9 +307,12 @@ - AC_CHECK_LIB(m, sqrtf) - - # for BeOS - old network stack don't have those libs ( move it in the case switch ?) -+AC_CHECK_LIB([network], [socket]) - AC_CHECK_LIB([socket], [socket]) - AC_CHECK_LIB([socket], [gethostent], [], AC_CHECK_LIB([bind], [gethostent])) - -+ -+ - # check for various IEEE and c99 standard math functions in libm - AC_CHECK_LIB([m], [acosf], [AC_DEFINE([HAVE_ACOSF],[1],[libm includes acosf])]) - AC_CHECK_LIB([m], [asinf], [AC_DEFINE([HAVE_ASINF],[1],[libm includes asinf])]) -@@ -328,7 +335,7 @@ - case $host_os in - macos|darwin*) - ;; -- beos*) -+ beos*|haiku*) - ;; - *) - if test x$no_x = x ; then -@@ -670,7 +677,7 @@ - FLAGS="FLAGS -march=mips2" - fi - ;; -- beos*) -+ beos*|haiku*) - AC_DEFINE(HAVE_DEFINED_TOLOWER, 1, [tolower and toupper are not functions]) - ;; - esac -@@ -692,7 +699,7 @@ - FLAGS="$FLAGS -pg" - fi - ;; -- beos) -+ beos|haiku) - FLAGS="$FLAGS -Werror" - ;; - esac -@@ -720,7 +727,7 @@ - FLAGS="$FLAGS -O2" - fi - ;; -- beos) -+ beos|haiku) - FLAGS="$FLAGS -O2 -ffast-math -fomit-frame-pointer" - FLAGS="$FLAGS -fno-exceptions" - ;; -diff -urN bzflag-2.0.14/include/bzares.h bzflag-2.0.14-haiku/include/bzares.h ---- bzflag-2.0.14/include/bzares.h 2008-04-12 07:40:02.045350912 +0000 -+++ bzflag-2.0.14-haiku/include/bzares.h 2010-06-20 06:36:21.000000000 +0000 -@@ -20,7 +20,7 @@ - - #include - --#if defined(_AIX) || defined(NETWARE) -+#if defined(_AIX) || defined(NETWARE) || defined (__HAIKU__) - /* HP-UX systems version 9, 10 and 11 lack sys/select.h and so does oldish - libc5-based Linux systems. Only include it on system that are known to - require it! */ -diff -urN bzflag-2.0.14/src/common/TimeKeeper.cxx bzflag-2.0.14-haiku/src/common/TimeKeeper.cxx ---- bzflag-2.0.14/src/common/TimeKeeper.cxx 2010-02-13 01:09:52.038797312 +0000 -+++ bzflag-2.0.14-haiku/src/common/TimeKeeper.cxx 2010-06-20 06:44:57.000000000 +0000 -@@ -20,7 +20,7 @@ - #ifdef HAVE_UNISTD_H - # include - #endif --#ifdef __BEOS__ -+#if defined __BEOS__ || defined __HAIKU__ - # include - #endif - #if !defined(_WIN32) diff --git a/games-action/bzflag/patches/bzflag-2.4.2.patchset b/games-action/bzflag/patches/bzflag-2.4.2.patchset new file mode 100644 index 000000000..8766417d7 --- /dev/null +++ b/games-action/bzflag/patches/bzflag-2.4.2.patchset @@ -0,0 +1,35 @@ +From d206a22e8a8764c209aa086bdd6a6ff2d5647f39 Mon Sep 17 00:00:00 2001 +From: Adrien Destugues +Date: Tue, 9 Jun 2015 15:21:49 +0200 +Subject: Haiku fixes. + + +diff --git a/include/network.h b/include/network.h +index 5282d85..b098d8b 100644 +--- a/include/network.h ++++ b/include/network.h +@@ -64,7 +64,7 @@ + # define AddrLen unsigned int + /* setsockopt incorrectly prototypes the 4th arg without const. */ + # define SSOType void* +-#elif defined(BSD) || defined(sun) || defined(__GLIBC__) ++#elif defined(BSD) || defined(sun) || defined(__GLIBC__) || defined(__HAIKU__) + # define AddrLen socklen_t + #elif defined (__APPLE__) + # include +diff --git a/src/common/TimeKeeper.cxx b/src/common/TimeKeeper.cxx +index a31c868..32caec3 100644 +--- a/src/common/TimeKeeper.cxx ++++ b/src/common/TimeKeeper.cxx +@@ -20,7 +20,7 @@ + #ifdef HAVE_UNISTD_H + # include + #endif +-#ifdef __BEOS__ ++#if defined(__BEOS__)||defined(__HAIKU__) + # include + #endif + #if !defined(_WIN32) +-- +2.2.2 +