aboutsummaryrefslogtreecommitdiff
path: root/x11/libxcb
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-02-10 14:45:03 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-03-11 17:29:05 +0000
commita387409d2b1af8da566cd75d43105059138fae37 (patch)
tree0810cb66255ec94a81fcb7658dd671bb3c92f04e /x11/libxcb
parent72c813a629a10f75fd886d836f52acac625d6a48 (diff)
downloadports-a387409d2b1af8da566cd75d43105059138fae37.tar.gz
ports-a387409d2b1af8da566cd75d43105059138fae37.zip
x11/libxcb: drop libpthread-stubs dependency
Switch from libpthread to pthread stubs in libc. This is how libpthread-stubs was supposed to work before it became useless. PR: 269462 Exp-run by: antoine Approved by: manu
Diffstat (limited to 'x11/libxcb')
-rw-r--r--x11/libxcb/Makefile5
-rw-r--r--x11/libxcb/files/patch-configure13
2 files changed, 15 insertions, 3 deletions
diff --git a/x11/libxcb/Makefile b/x11/libxcb/Makefile
index a7b5bfb1b548..5adad7d69557 100644
--- a/x11/libxcb/Makefile
+++ b/x11/libxcb/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libxcb
PORTVERSION= 1.15
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= https://xcb.freedesktop.org/dist/
@@ -10,9 +11,7 @@ WWW= https://xcb.freedesktop.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= xcb-proto>=1.9:x11/xcb-proto \
- ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
-RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs
+BUILD_DEPENDS= xcb-proto>=1.9:x11/xcb-proto
CONFIGURE_ARGS= --disable-devel-docs --without-doxygen --enable-xinput --enable-xkb
diff --git a/x11/libxcb/files/patch-configure b/x11/libxcb/files/patch-configure
new file mode 100644
index 000000000000..681136eb0a7e
--- /dev/null
+++ b/x11/libxcb/files/patch-configure
@@ -0,0 +1,13 @@
+https://gitlab.freedesktop.org/xorg/lib/libxcb/-/commit/fd04ab24a5e9
+
+--- configure.orig 2022-05-03 22:15:58 UTC
++++ configure
+@@ -20662,7 +20662,7 @@ case $host_os in
+ fi
+ NEEDED="xau >= 0.99.2"
+ case $host_os in
+-linux*) ;;
++linux*|dragonfly*|freebsd*) ;;
+ *) NEEDED="$NEEDED pthread-stubs" ;;
+ esac
+