From e1827483c19fedec19e6860cb2a51d9f619bf6e1 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Sat, 22 Dec 2012 22:13:47 +0000 Subject: [PATCH] Initial bep and patch for libggz from GCI2012 student Zbaker1398 --- dev-games/libggz/libggz-0.99.5.bep | 24 +++++++++++++++++ dev-games/libggz/patches/libggz-0.99.5.patch | 28 ++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 dev-games/libggz/libggz-0.99.5.bep create mode 100644 dev-games/libggz/patches/libggz-0.99.5.patch diff --git a/dev-games/libggz/libggz-0.99.5.bep b/dev-games/libggz/libggz-0.99.5.bep new file mode 100644 index 000000000..894a5bb2f --- /dev/null +++ b/dev-games/libggz/libggz-0.99.5.bep @@ -0,0 +1,24 @@ +DESCRIPTION="GGZ Library libggz" +HOMEPAGE="http://dev.ggzgamingzone.org/libraries/libggz/" +SRC_URI="http://mirrors.ibiblio.org/pub/mirrors/ggzgamingzone/ggz/snapshots/ggz-base-libs-snapshot-0.99.5.tar.gz" +CHECKSUM_MD5="811d956fe082ee27c682c6d1c4d55142" +REVISION="1" +STATUS_HAIKU="broken" +DEPEND="dev-util/pkgconfig >= 0.23" + +BUILD { + cd ggz-base-libs-snapshot-0.99.5 + libtoolize -fci + aclocal -I m4 -I m4/ggz + autoconf + ./configure --prefix=`finddir B_COMMON_DIRECTORY` + make +} + +INSTALL { + cd ggz-base-libs-snapshot-0.99.5 + make install +} + +LICENSE="GNU LGPL v2.1" +COPYRIGHT="2003-2009 The GGZ Development Team" diff --git a/dev-games/libggz/patches/libggz-0.99.5.patch b/dev-games/libggz/patches/libggz-0.99.5.patch new file mode 100644 index 000000000..b3bd973cd --- /dev/null +++ b/dev-games/libggz/patches/libggz-0.99.5.patch @@ -0,0 +1,28 @@ +diff -Naur ggz-base-libs-snapshot-0.99.5/ggzcore/netxml.c ggz-base-libs-snapshot-0.99.5-haiku/ggzcore/netxml.c +--- ggz-base-libs-snapshot-0.99.5/ggzcore/netxml.c 2009-01-02 19:32:30.017825792 +0000 ++++ ggz-base-libs-snapshot-0.99.5/ggzcore/netxml.c 2011-06-08 19:17:54.251396096 +0000 +@@ -37,6 +37,11 @@ + #include + #include + ++#ifdef (__HAIKU__) ++#include ++#endif ++ ++ + #ifdef HAVE_WINSOCK2_H + # include + #endif + +--- ggz-base-libs-snapshot-0.99.5/m4/ggz/platform.m4 2012-12-22 15:35:37.236191744 +0000 ++++ ggz-base-libs-snapshot-0.99.5/m4/ggz/platform.m4 2012-12-22 15:26:06.672661504 +0000 +@@ -251,7 +251,9 @@ + # On some systems additional libraries may be needed. Simply include them + # if they're there. + AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) ++AC_CHECK_LIB(network, socket, [LIBS="$LIBS -lnetwork"]) + AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) ++AC_CHECK_LIB(network, gethostbyname, [LIBS="$LIBS -lnetwork"]) + ]) + + dnl ------------------------------------------------------------------------