From 77bc056233036e1c819fee41c10e5efe0ea737da Mon Sep 17 00:00:00 2001 From: tnn Date: Wed, 29 Apr 2015 14:31:42 +0000 Subject: 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. --- x11/libxshmfence/DESCR | 12 ++++++++++++ x11/libxshmfence/Makefile | 26 ++++++++++++++++++++++++++ x11/libxshmfence/PLIST | 4 ++++ x11/libxshmfence/buildlink3.mk | 14 ++++++++++++++ x11/libxshmfence/distinfo | 5 +++++ 5 files changed, 61 insertions(+) create mode 100644 x11/libxshmfence/DESCR create mode 100644 x11/libxshmfence/Makefile create mode 100644 x11/libxshmfence/PLIST create mode 100644 x11/libxshmfence/buildlink3.mk create mode 100644 x11/libxshmfence/distinfo (limited to 'x11') 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 -- cgit v1.2.3