From 0c1b01a967fd500e351c20e4f3dc845e7ed9e385 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Tue, 4 May 2010 06:20:48 +0000 Subject: [PATCH] Initial x11-lib .bep and patch files, these were all done by michaelvoliveira Mostly untested, so may need some more work still. --- .../libpthread-stubs-0.3.2.bep | 19 ++++++ .../libpthread-stubs/libpthread-stubs-0.3.bep | 19 ++++++ x11-libs/libX11/libX11-1.3.3.bep | 29 +++++++++ .../libX11/libX11.OptionalPackageDescription | 65 +++++++++++++++++++ x11-libs/libX11/patches/libX11-1.3.3.patch | 34 ++++++++++ x11-libs/libXau/libXau-1.0.5.bep | 20 ++++++ x11-libs/libXau/patches/libXau-1.0.5.patch | 13 ++++ x11-libs/libxcb/libxcb-1.6.bep | 22 +++++++ x11-libs/libxcb/patches/libxcb-1.6.patch | 26 ++++++++ x11-libs/xtrans/xtrans-1.2.5.bep | 20 ++++++ x11-misc/util-macros/util-macros-1.7.0.bep | 17 +++++ x11-proto/inputproto/inputproto-2.0.bep | 19 ++++++ x11-proto/kbproto/kbproto-1.0.4.bep | 19 ++++++ x11-proto/xcb-proto/xcb-proto-1.6.bep | 20 ++++++ x11-proto/xextproto/xextproto-7.1.1.bep | 19 ++++++ x11-proto/xproto/patches/xproto-7.0.16.patch | 46 +++++++++++++ x11-proto/xproto/xproto-7.0.16.bep | 18 +++++ 17 files changed, 425 insertions(+) create mode 100644 dev-libs/libpthread-stubs/libpthread-stubs-0.3.2.bep create mode 100644 dev-libs/libpthread-stubs/libpthread-stubs-0.3.bep create mode 100644 x11-libs/libX11/libX11-1.3.3.bep create mode 100644 x11-libs/libX11/libX11.OptionalPackageDescription create mode 100644 x11-libs/libX11/patches/libX11-1.3.3.patch create mode 100644 x11-libs/libXau/libXau-1.0.5.bep create mode 100644 x11-libs/libXau/patches/libXau-1.0.5.patch create mode 100644 x11-libs/libxcb/libxcb-1.6.bep create mode 100644 x11-libs/libxcb/patches/libxcb-1.6.patch create mode 100644 x11-libs/xtrans/xtrans-1.2.5.bep create mode 100644 x11-misc/util-macros/util-macros-1.7.0.bep create mode 100644 x11-proto/inputproto/inputproto-2.0.bep create mode 100644 x11-proto/kbproto/kbproto-1.0.4.bep create mode 100644 x11-proto/xcb-proto/xcb-proto-1.6.bep create mode 100644 x11-proto/xextproto/xextproto-7.1.1.bep create mode 100644 x11-proto/xproto/patches/xproto-7.0.16.patch create mode 100644 x11-proto/xproto/xproto-7.0.16.bep diff --git a/dev-libs/libpthread-stubs/libpthread-stubs-0.3.2.bep b/dev-libs/libpthread-stubs/libpthread-stubs-0.3.2.bep new file mode 100644 index 000000000..a1d057af0 --- /dev/null +++ b/dev-libs/libpthread-stubs/libpthread-stubs-0.3.2.bep @@ -0,0 +1,19 @@ +DESCRIPTION="libpthread-stubs" +HOMEPAGE="http://xcb.freedesktop.org/" +SRC_URI="http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.gz" +CHECKSUM_MD5="a09d928c4af54fe5436002345ef71138" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" +BUILD { + cd libpthread-stubs-0.3 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd libpthread-stubs-0.3 + make install +} diff --git a/dev-libs/libpthread-stubs/libpthread-stubs-0.3.bep b/dev-libs/libpthread-stubs/libpthread-stubs-0.3.bep new file mode 100644 index 000000000..a1d057af0 --- /dev/null +++ b/dev-libs/libpthread-stubs/libpthread-stubs-0.3.bep @@ -0,0 +1,19 @@ +DESCRIPTION="libpthread-stubs" +HOMEPAGE="http://xcb.freedesktop.org/" +SRC_URI="http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.gz" +CHECKSUM_MD5="a09d928c4af54fe5436002345ef71138" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" +BUILD { + cd libpthread-stubs-0.3 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd libpthread-stubs-0.3 + make install +} diff --git a/x11-libs/libX11/libX11-1.3.3.bep b/x11-libs/libX11/libX11-1.3.3.bep new file mode 100644 index 000000000..988adad67 --- /dev/null +++ b/x11-libs/libX11/libX11-1.3.3.bep @@ -0,0 +1,29 @@ +DESCRIPTION="libx11" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/lib/libX11-1.3.3.tar.gz" +CHECKSUM_MD5="f5669fa5843e54cb4cc7ebf8f7cc741e" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0 + x11-proto/xproto >= 7.0.16 + x11-libs/xtrans >= 1.2.5 + x11-proto/inputproto >= 2.0 + x11-proto/kbproto >= 1.0.4 + x11-proto/xcb-proto >= 1.6 + dev-libs/libxslt >= 1.1.26 + dev-libs/libpthread-stubs >= 0.3 + x11-libs/libxcb >= 1.6 + x11-libs/libxau >= 1.0.5 + x11-proto/xextproto >= 7.1.1" +BUILD { + cd libX11-1.3.3 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd libX11-1.3.3 + make install +} diff --git a/x11-libs/libX11/libX11.OptionalPackageDescription b/x11-libs/libX11/libX11.OptionalPackageDescription new file mode 100644 index 000000000..0c9217176 --- /dev/null +++ b/x11-libs/libX11/libX11.OptionalPackageDescription @@ -0,0 +1,65 @@ +Package: libx11 +Version: 1.3.3 +Copyright: 2009 X.Org Foundation +License: MIT +URL: http://www.x.org/releases/individual/lib/ + +Package: util-macros +Version: 1.7.0 +Copyright: 2005-2006 Sun Microsystems, Inc. 2009 X.Org Foundation. +License: MIT +URL: http://www.x.org/releases/individual/util/ + +Package: xproto +Version: 7.0.16 +Copyright: 2009 X.Org Foundation +License: MIT +URL: http://xorg.freedesktop.org/releases/individual/proto/ + +Package: inputproto +Version: 2.0 +Copyright: 2009 X.Org Foundation +License: MIT +URL: http://xorg.freedesktop.org/releases/individual/proto/ + +Package: kbproto +Version: 1.0.4 +Copyright: 2009 X.Org Foundation +License: MIT +URL: http://xorg.freedesktop.org/releases/individual/proto/ + +Package: xtrans +Version: 1.2.5 +Copyright: 2009 X.Org Foundation +License: MIT +URL: http://xorg.freedesktop.org/releases/individual/lib/ + +Package: libxcb +Version: 1.6 +Copyright: 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett. +License: MIT +URL: http://xcb.freedesktop.org + +Package: xcb-proto +Version: 1.6 +Copyright: 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett. +License: MIT +URL: http://xcb.freedesktop.org + +Package: libxslt +Version: 1.1.24 +Copyright: 2001-2002 Daniel Veillard. +License: MIT +URL: http://xmlsoft.org/XSLT/ + +Package: libptread-stubs +Version: 0.3 +Copyright: 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett. +License: MIT +URL: http://xcb.freedesktop.org + +Package: libxau +Version: 1.0.5 +Copyright: 2009 X.Org Foundation +License: MIT +URL: http://xorg.freedesktop.org/releases/individual/lib/ diff --git a/x11-libs/libX11/patches/libX11-1.3.3.patch b/x11-libs/libX11/patches/libX11-1.3.3.patch new file mode 100644 index 000000000..094c77f1f --- /dev/null +++ b/x11-libs/libX11/patches/libX11-1.3.3.patch @@ -0,0 +1,34 @@ +diff -Naur libX11-1.3.3/configure.ac libX11-1.3.3-haiku/configure.ac +--- libX11-1.3.3/configure.ac 2010-01-16 19:41:21.013369344 +0000 ++++ libX11-1.3.3-haiku/configure.ac 2010-04-26 23:39:22.398458880 +0000 +@@ -189,6 +189,9 @@ + # Checks for typedefs, structures, and compiler characteristics. + + # Checks for library functions. ++AC_SEARCH_LIBS(issetugid, [bsd]) ++AC_SEARCH_LIBS(getresuid, [bsd]) ++ + AC_CHECK_FUNCS([strtol]) + # Used in lcFile.c (see also --enable-xlocaledir settings below) + XLOCALEDIR_IS_SAFE="no" +@@ -229,6 +232,9 @@ + [xthreads=$enableval],[xthreads=yes]) + + AC_CHECK_LIB(c, getpwuid_r, [mtsafeapi="yes"], [mtsafeapi="no"]) ++if test "x$mtsafeapi" = xno; then ++ AC_CHECK_LIB(root, getpwuid_r, [mtsafeapi="yes"], [mtsafeapi="no"]) ++fi + + case x$xthreads in + xyes) +@@ -242,7 +248,9 @@ + ;; + esac + +-AC_CHECK_LIB(c, pthread_self, [thrstubs="no"], [thrstubs="yes"]) ++AC_CHECK_LIB(c, pthread_self, [thrstubs="no"], [ ++ AC_CHECK_LIB(root, pthread_self, [thrstubs="no"], [thrstubs="yes"]) ++]) + AM_CONDITIONAL(THRSTUBS, test x$thrstubs = xyes) + + dnl XXX incomplete, please fill this in diff --git a/x11-libs/libXau/libXau-1.0.5.bep b/x11-libs/libXau/libXau-1.0.5.bep new file mode 100644 index 000000000..ad41e327a --- /dev/null +++ b/x11-libs/libXau/libXau-1.0.5.bep @@ -0,0 +1,20 @@ +DESCRIPTION="libxau" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/lib/libXau-1.0.5.tar.gz" +CHECKSUM_MD5="1a421d9376f43596fe068ce209a70b84" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="pkgconfig >= 0.23 + x11-misc/util-macros >= 1.7.0" +BUILD { + cd libXau-1.0.5 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd libXau-1.0.5 + make install +} diff --git a/x11-libs/libXau/patches/libXau-1.0.5.patch b/x11-libs/libXau/patches/libXau-1.0.5.patch new file mode 100644 index 000000000..b131ea47e --- /dev/null +++ b/x11-libs/libXau/patches/libXau-1.0.5.patch @@ -0,0 +1,13 @@ +diff -Naur libXau-1.0.5/configure.ac libXau-1.0.5-haiku/configure.ac +--- libXau-1.0.5/configure.ac 2009-08-28 04:34:23.023855104 +0000 ++++ libXau-1.0.5-haiku/configure.ac 2010-04-26 23:21:53.573308928 +0000 +@@ -58,6 +58,9 @@ + if test "x$mtsafe" = "x" ; then + AC_CHECK_LIB(nsl, gethostbyname_r, [mtsafe=yes]) + fi ++ if test "x$mtsafe" = "x" ; then ++ AC_CHECK_LIB(network, gethostbyname_r, [mtsafe=yes]) ++ fi + if test "x$mtsafe" = "xyes" ; then + AC_DEFINE(XUSE_MTSAFE_API, 1, + [Whether libXau needs to use MT safe API's]) diff --git a/x11-libs/libxcb/libxcb-1.6.bep b/x11-libs/libxcb/libxcb-1.6.bep new file mode 100644 index 000000000..5903700fc --- /dev/null +++ b/x11-libs/libxcb/libxcb-1.6.bep @@ -0,0 +1,22 @@ +DESCRIPTION="libxcb" +HOMEPAGE="http://xcb.freedesktop.org/" +SRC_URI="http://xcb.freedesktop.org/dist/libxcb-1.6.tar.gz" +CHECKSUM_MD5="f824cc4cb4b43f5bbc84c0e17fbd80d0" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="pkgconfig >= 0.23 + x11-misc/util-macros >= 1.7.0 + dev-libs/libxslt >= 1.1.26 + x11-proto/xcb-proto >= 1.6" + +BUILD { + cd libxcb-1.6 + libtoolize --force --copy --install + ./autogen.sh + ./configure --prefix=/boot/common +} + +INSTALL { + cd libxcb-1.6 + make install +} diff --git a/x11-libs/libxcb/patches/libxcb-1.6.patch b/x11-libs/libxcb/patches/libxcb-1.6.patch new file mode 100644 index 000000000..0d2ed0a1b --- /dev/null +++ b/x11-libs/libxcb/patches/libxcb-1.6.patch @@ -0,0 +1,26 @@ +diff -Naur libxcb-1.6/configure.ac libxcb-1.6-haiku/configure.ac +--- libxcb-1.6/configure.ac 2010-04-09 14:55:28.066584576 +0000 ++++ libxcb-1.6-haiku/configure.ac 2010-05-03 01:14:47.611844096 +0000 +@@ -69,8 +69,8 @@ + AC_SUBST(XCBPROTO_XCBPYTHONDIR) + + AC_HEADER_STDC +-AC_SEARCH_LIBS(getaddrinfo, socket) +-AC_SEARCH_LIBS(connect, socket) ++AC_SEARCH_LIBS(getaddrinfo, [socket network]) ++AC_SEARCH_LIBS(connect, [socket network]) + + case $host_os in + linux*) +diff -Naur libxcb-1.6/src/xcb_util.c libxcb-1.6-haiku/src/xcb_util.c +--- libxcb-1.6/src/xcb_util.c 2010-04-09 14:54:58.006291456 +0000 ++++ libxcb-1.6-haiku/src/xcb_util.c 2010-05-03 01:16:27.084672512 +0000 +@@ -300,7 +300,7 @@ + strcpy(addr.sun_path, file); + addr.sun_family = AF_UNIX; + #ifdef HAVE_SOCKADDR_SUN_LEN +- addr.sun_len = SUN_LEN(&addr); ++ addr.sun_len = sizeof(&addr); + #endif + fd = _xcb_socket(AF_UNIX, SOCK_STREAM, 0); + if(fd == -1) diff --git a/x11-libs/xtrans/xtrans-1.2.5.bep b/x11-libs/xtrans/xtrans-1.2.5.bep new file mode 100644 index 000000000..7dc2fc7b4 --- /dev/null +++ b/x11-libs/xtrans/xtrans-1.2.5.bep @@ -0,0 +1,20 @@ +DESCRIPTION="xtrans" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/lib/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/lib/xtrans-1.2.5.tar.gz" +CHECKSUM_MD5="b2f47d49faf1f24e8294b624b21b9b93" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="pkgconfig >= 0.23 + x11-misc/util-macros >= 1.7.0" + +BUILD { + cd xtrans-1.2.5 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common +} + +INSTALL { + cd xtrans-1.2.5 + make install +} diff --git a/x11-misc/util-macros/util-macros-1.7.0.bep b/x11-misc/util-macros/util-macros-1.7.0.bep new file mode 100644 index 000000000..be4c04899 --- /dev/null +++ b/x11-misc/util-macros/util-macros-1.7.0.bep @@ -0,0 +1,17 @@ +DESCRIPTION="util-macros" +HOMEPAGE="http://xorg.freedesktop.org/archive/individual/util/" +SRC_URI="http://xorg.freedesktop.org/archive/individual/util/util-macros-1.7.0.tar.gz" +CHECKSUM_MD5="8a8d208f24672e7a37d1aa4d2ffcef8e" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd util-macros-1.7.0 + libtoolize --force --copy --install + ./configure --prefix=/boot/common +} + +INSTALL { + cd util-macros-1.7.0 + make install +} diff --git a/x11-proto/inputproto/inputproto-2.0.bep b/x11-proto/inputproto/inputproto-2.0.bep new file mode 100644 index 000000000..76620d5e9 --- /dev/null +++ b/x11-proto/inputproto/inputproto-2.0.bep @@ -0,0 +1,19 @@ +DESCRIPTION="inputproto" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/proto/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/proto/inputproto-2.0.tar.gz" +CHECKSUM_MD5="13d91739cf70a781f1db24d8d3677574" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" + +BUILD { + cd inputproto-2.0 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common +} + +INSTALL { + cd inputproto-2.0 + make install +} diff --git a/x11-proto/kbproto/kbproto-1.0.4.bep b/x11-proto/kbproto/kbproto-1.0.4.bep new file mode 100644 index 000000000..a7a601771 --- /dev/null +++ b/x11-proto/kbproto/kbproto-1.0.4.bep @@ -0,0 +1,19 @@ +DESCRIPTION="kbproto" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/proto/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/proto/kbproto-1.0.4.tar.gz" +CHECKSUM_MD5="4deef518a03bc94a7a25902bb7c98dd6" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" + +BUILD { + cd kbproto-1.0.4 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common +} + +INSTALL { + cd kbproto-1.0.4 + make install +} diff --git a/x11-proto/xcb-proto/xcb-proto-1.6.bep b/x11-proto/xcb-proto/xcb-proto-1.6.bep new file mode 100644 index 000000000..0798f940c --- /dev/null +++ b/x11-proto/xcb-proto/xcb-proto-1.6.bep @@ -0,0 +1,20 @@ +DESCRIPTION="xcb-proto" +HOMEPAGE="http://xcb.freedesktop.org/" +SRC_URI="http://xcb.freedesktop.org/dist/xcb-proto-1.6.tar.gz" +CHECKSUM_MD5="8d29695e8faf5fcdce568c66eaeaa5ee" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" + +BUILD { + cd xcb-proto-1.6 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd xcb-proto-1.6 + make install +} diff --git a/x11-proto/xextproto/xextproto-7.1.1.bep b/x11-proto/xextproto/xextproto-7.1.1.bep new file mode 100644 index 000000000..2f7b83e86 --- /dev/null +++ b/x11-proto/xextproto/xextproto-7.1.1.bep @@ -0,0 +1,19 @@ +DESCRIPTION="xextproto" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/proto/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/proto/xextproto-7.1.1.tar.gz" +CHECKSUM_MD5="6c55283718dbeb826bcf899b9e89faba" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" + +BUILD { + cd xextproto-7.1.1 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common +} + +INSTALL { + cd xextproto-7.1.1 + make install +} diff --git a/x11-proto/xproto/patches/xproto-7.0.16.patch b/x11-proto/xproto/patches/xproto-7.0.16.patch new file mode 100644 index 000000000..e93abcd1b --- /dev/null +++ b/x11-proto/xproto/patches/xproto-7.0.16.patch @@ -0,0 +1,46 @@ +diff -Naur xproto-7.0.16/Xos_r.h xproto-7.0.16-haiku/Xos_r.h +--- xproto-7.0.16/Xos_r.h 2009-09-23 23:51:43.007602176 +0000 ++++ xproto-7.0.16-haiku/Xos_r.h 2010-04-26 16:25:28.920649728 +0000 +@@ -88,6 +88,10 @@ + # endif + #endif /* _XOS_R_H */ + ++#ifdef __HAIKU__ ++#define _POSIX_THREAD_SAFE_FUNCTIONS ++#endif ++ + #ifndef WIN32 + + #ifdef __cplusplus +diff -Naur xproto-7.0.16/configure.ac xproto-7.0.16-haiku/configure.ac +--- xproto-7.0.16/configure.ac 2009-09-24 00:03:29.005505024 +0000 ++++ xproto-7.0.16-haiku/configure.ac 2010-04-26 16:25:11.543686656 +0000 +@@ -90,6 +90,28 @@ + 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 ++ #endif ++ #ifdef HAVE_SYS_TYPES_H ++ #include ++ #endif ++ #ifdef HAVE_SYS_TIME_H ++ #include ++ #endif ++ #ifdef HAVE_SYS_SELECT_H ++ #include ++ #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 diff --git a/x11-proto/xproto/xproto-7.0.16.bep b/x11-proto/xproto/xproto-7.0.16.bep new file mode 100644 index 000000000..5a13c71ed --- /dev/null +++ b/x11-proto/xproto/xproto-7.0.16.bep @@ -0,0 +1,18 @@ +DESCRIPTION="xproto" +HOMEPAGE="http://xorg.freedesktop.org/releases/individual/proto/" +SRC_URI="http://xorg.freedesktop.org/releases/individual/proto/xproto-7.0.16.tar.gz" +CHECKSUM_MD5="6e6b6510ccd568f82093ebd7ae58700b" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="x11-misc/util-macros >= 1.7.0" +BUILD { + cd xproto-7.0.16 + libtoolize --force --copy --install + autoreconf -i + ./configure --prefix=/boot/common +} + +INSTALL { + cd xproto-7.0.16 + make install +}