mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Initial .bep and patch file for bzflag. Not yet working but making some progress.
This commit is contained in:
23
games-action/bzflag/bzflag-2.0.14.bep
Normal file
23
games-action/bzflag/bzflag-2.0.14.bep
Normal file
@@ -0,0 +1,23 @@
|
||||
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=/boot/common
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd bzflag-2.0.14
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="1993-2010 Tim Riker"
|
||||
96
games-action/bzflag/patches/bzflag-2.0.14.patch
Normal file
96
games-action/bzflag/patches/bzflag-2.0.14.patch
Normal file
@@ -0,0 +1,96 @@
|
||||
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 <sys/types.h>
|
||||
|
||||
-#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 <unistd.h>
|
||||
#endif
|
||||
-#ifdef __BEOS__
|
||||
+#if defined __BEOS__ || defined __HAIKU__
|
||||
# include <OS.h>
|
||||
#endif
|
||||
#if !defined(_WIN32)
|
||||
Reference in New Issue
Block a user