summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-04-29 14:31:42 +0000
committertnn <tnn@pkgsrc.org>2015-04-29 14:31:42 +0000
commit77bc056233036e1c819fee41c10e5efe0ea737da (patch)
tree962093231a76f11efb2e08313ca69be42313a5fe /x11
parente6c0076e9874e3bef93930c8c4a8568b6279b3d5 (diff)
downloadpkgsrc-77bc056233036e1c819fee41c10e5efe0ea737da.tar.gz
Import libxshmfence-1.2 from pkgsrc-wip as x11/libxshmfence.
(needed to build DRI3 support in MesaLib and modular-xorg-server on Linux) This library offers a CPU-based synchronization primitive compatible with the X SyncFence objects that can be shared between processes using file descriptor passing. There are three underlying implementations: 1) On Linux, the library uses futexes 2) On FreeBSD, the library uses umtx 3) On other systems, the library uses posix mutexes and condition variables.
Diffstat (limited to 'x11')
-rw-r--r--x11/libxshmfence/DESCR12
-rw-r--r--x11/libxshmfence/Makefile26
-rw-r--r--x11/libxshmfence/PLIST4
-rw-r--r--x11/libxshmfence/buildlink3.mk14
-rw-r--r--x11/libxshmfence/distinfo5
5 files changed, 61 insertions, 0 deletions
diff --git a/x11/libxshmfence/DESCR b/x11/libxshmfence/DESCR
new file mode 100644
index 00000000000..beb0029e337
--- /dev/null
+++ b/x11/libxshmfence/DESCR
@@ -0,0 +1,12 @@
+This library offers a CPU-based synchronization primitive compatible
+with the X SyncFence objects that can be shared between processes
+using file descriptor passing.
+
+There are three underlying implementations:
+
+ 1) On Linux, the library uses futexes
+
+ 2) On FreeBSD, the library uses umtx
+
+ 3) On other systems, the library uses posix mutexes and condition
+ variables.
diff --git a/x11/libxshmfence/Makefile b/x11/libxshmfence/Makefile
new file mode 100644
index 00000000000..5937ea9df6d
--- /dev/null
+++ b/x11/libxshmfence/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2015/04/29 14:31:42 tnn Exp $
+
+DISTNAME= libxshmfence-1.2
+CATEGORIES= x11
+MASTER_SITES= http://xorg.freedesktop.org/archive/individual/lib/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://xorg.freedesktop.org/
+COMMENT= Shared memory 'SyncFence' synchronization primitive
+LICENSE= mit
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= xshmfence.pc.in
+
+# Needs additional pthread functions or alternative synchronization
+# implementation on NetBSD. See PR lib/49529.
+# (On FreeBSD, umtx is used.)
+
+ONLY_FOR_PLATFORM+= Linux-*-* FreeBSD-*-*
+
+.include "../../x11/xproto/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/libxshmfence/PLIST b/x11/libxshmfence/PLIST
new file mode 100644
index 00000000000..9b257d6d2e8
--- /dev/null
+++ b/x11/libxshmfence/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2015/04/29 14:31:42 tnn Exp $
+include/X11/xshmfence.h
+lib/libxshmfence.la
+lib/pkgconfig/xshmfence.pc
diff --git a/x11/libxshmfence/buildlink3.mk b/x11/libxshmfence/buildlink3.mk
new file mode 100644
index 00000000000..ad777409e43
--- /dev/null
+++ b/x11/libxshmfence/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/04/29 14:31:42 tnn Exp $
+
+BUILDLINK_TREE+= libxshmfence
+
+.if !defined(LIBXSHMFENCE_BUILDLINK3_MK)
+LIBXSHMFENCE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libxshmfence+= libxshmfence>=1.2
+BUILDLINK_PKGSRCDIR.libxshmfence?= ../../x11/libxshmfence
+
+#.include "../../x11/xproto/buildlink3.mk"
+.endif # LIBXSHMFENCE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libxshmfence
diff --git a/x11/libxshmfence/distinfo b/x11/libxshmfence/distinfo
new file mode 100644
index 00000000000..8c4bea7ccc9
--- /dev/null
+++ b/x11/libxshmfence/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/04/29 14:31:42 tnn Exp $
+
+SHA1 (libxshmfence-1.2.tar.bz2) = a2ebe90e5595afca4db93a4359732af43b2b8c69
+RMD160 (libxshmfence-1.2.tar.bz2) = fe4b42d4ee01a993cd653d8f10334069bcc4791c
+Size (libxshmfence-1.2.tar.bz2) = 267170 bytes