ccdc9fc5fb
It used more locking that necessary. We only need two semaphores. One to tell waiters to wake up and one to let the last waiter that wakes up notify xshmfence_trigger() it may now return.
39 lines
1,002 B
Makefile
39 lines
1,002 B
Makefile
# $NetBSD: Makefile,v 1.14 2020/02/23 22:47:47 tnn Exp $
|
|
|
|
DISTNAME= libxshmfence-1.3
|
|
PKGREVISION= 2
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ${MASTER_SITE_XORG:=lib/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://xorg.freedesktop.org/
|
|
COMMENT= Shared memory 'SyncFence' synchronization primitive
|
|
LICENSE= mit
|
|
|
|
GNU_CONFIGURE= yes
|
|
TEST_TARGET= check
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= pkg-config autoconf automake autoreconf
|
|
|
|
PKGCONFIG_OVERRIDE+= xshmfence.pc.in
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
CONFIGURE_ARGS+= --disable-futex
|
|
CONFIGURE_ARGS+= --enable-semaphore
|
|
LIBXSHM_PAGESIZE!= /sbin/sysctl -n hw.pagesize
|
|
CPPFLAGS+= -DLIBXSHM_PAGESIZE=${LIBXSHM_PAGESIZE}
|
|
.endif
|
|
|
|
post-extract:
|
|
cp ${FILESDIR}/xshmfence_semaphore.[ch] ${WRKSRC}/src
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoreconf -vif
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../devel/xorg-util-macros/buildlink3.mk"
|
|
.include "../../x11/xorgproto/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|