xproto: Add recipe for 7.0.26

This commit is contained in:
François Revol
2014-07-29 19:08:10 +02:00
parent 5278ff38c7
commit ec434f9a8d
2 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
diff --git a/Xos_r.h xproto-7.0.23-git/Xos_r.h
index f963b64..f8b727b 100644
--- a/Xos_r.h
+++ xproto-7.0.23-git/Xos_r.h
@@ -88,6 +88,10 @@ in this Software without prior written authorization from The Open Group.
# endif
#endif /* _XOS_R_H */
+#ifdef __HAIKU__
+#define _POSIX_THREAD_SAFE_FUNCTIONS
+#endif
+
#ifndef WIN32
#ifdef __cplusplus
diff --git a/configure.ac xproto-7.0.23-git/configure.ac
index c4acf24..b3c82aa 100644
--- a/configure.ac
+++ xproto-7.0.23-git/configure.ac
@@ -99,6 +99,28 @@ if test "x$fds_bits_found" = xfalse ; then
fi
if test "x$fds_bits_found" = xfalse ; then
+AC_CHECK_MEMBER(fd_set.bits,
+ [
+ fds_bits_found=plain_simple
+ USE_FDS_BITS="bits"
+ ],,
+ [
+ #ifdef HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+ #endif
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+ #ifdef HAVE_SYS_TIME_H
+ #include <sys/time.h>
+ #endif
+ #ifdef HAVE_SYS_SELECT_H
+ #include <sys/select.h>
+ #endif
+ ])
+fi
+
+if test "x$fds_bits_found" = xfalse ; then
AC_MSG_ERROR([Could not determine how to access the fds_bits or equivalent
structure in fd_set on your platform.])
fi

View File

@@ -0,0 +1,57 @@
SUMMARY="xproto"
DESCRIPTION="
xproto.
"
HOMEPAGE="http://cgit.freedesktop.org/xorg/proto/xproto/"
COPYRIGHT="1991, Oracle and/or its affiliates. All rights reserved.
1985, 1987, 1988, 1990, 1991, 1993-1996, 1998 The Open Group
1987 by Digital Equipment Corporation, Maynard, Massachusetts.
1987 by Apollo Computer Inc., Chelmsford, Massachusetts.
1989 by Hewlett-Packard Company.
1999 The XFree86 Project Inc."
LICENSE="MIT (no promotion)"
SRC_URI="http://cgit.freedesktop.org/xorg/proto/xproto/snapshot/xproto-7.0.26.tar.gz"
CHECKSUM_SHA256="8c9667873a446f34c440d06e37c83144979d1abe6fa3dcd52727e7c6fecb290f"
REVISION="1"
PATCHES="xproto-7.0.26.patch"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
xproto$secondaryArchSuffix = $portVersion
devel:xproto$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:util_macros$secondaryArchSuffix
cmd:autoconf
cmd:libtool
cmd:aclocal
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
./autogen.sh -V
runConfigure ./configure
make
}
INSTALL()
{
make install
fixPkgconfig
}