blob: 3444ade58427d9b1349565ca327a1a7281b5a449 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.13 2020/01/18 23:35:54 rillig Exp $
DISTNAME= libxshmfence-1.3
PKGREVISION= 1
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"
|