Initial bep and patch for libggz from GCI2012 student Zbaker1398

This commit is contained in:
Scott McCreary
2012-12-22 22:13:47 +00:00
parent b74b229d09
commit e1827483c1
2 changed files with 52 additions and 0 deletions

View File

@@ -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"

View File

@@ -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 <sys/types.h>
#include <unistd.h>
+#ifdef (__HAIKU__)
+#include <sys/select.h>
+#endif
+
+
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#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 ------------------------------------------------------------------------