head	1.7;
access;
symbols
	netbsd-11-0-RELEASE:1.7
	netbsd-11-0-RC7:1.7
	netbsd-11-0-RC6:1.7
	netbsd-11-0-RC5:1.7
	netbsd-11-0-RC4:1.7
	netbsd-11-0-RC3:1.7
	netbsd-11-0-RC2:1.7
	netbsd-11-0-RC1:1.7
	perseant-exfatfs-base-20250801:1.7
	netbsd-11:1.7.0.2
	netbsd-11-base:1.7
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.24
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.22
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.20
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.6.0.18
	cjep_staticlib_x-base:1.6
	netbsd-9-1-RELEASE:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.16
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.14
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.6.0.12
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	pgoyette-compat:1.6.0.10
	pgoyette-compat-base:1.6
	matt-nb8-mediatek:1.6.0.8
	matt-nb8-mediatek-base:1.6
	perseant-stdc-iso10646:1.6.0.6
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.4
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.2
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	bouyer-socketcan:1.5.0.2
	bouyer-socketcan-base:1.5
	pgoyette-localcount-20170107:1.5
	pgoyette-localcount-20161104:1.5
	pgoyette-localcount:1.4.0.2
	localcount-20160914:1.4;
locks; strict;
comment	@# @;


1.7
date	2025.03.09.06.03.51;	author mrg;	state Exp;
branches;
next	1.6;
commitid	beQslg8pzPpq7mMF;

1.6
date	2017.03.05.11.52.39;	author mrg;	state Exp;
branches
	1.6.24.1;
next	1.5;
commitid	99ZeIOr4f6DC6mIz;

1.5
date	2016.09.27.19.18.42;	author joerg;	state Exp;
branches
	1.5.2.1;
next	1.4;
commitid	WJUMHLGJ6DyCGXnz;

1.4
date	2016.08.31.14.29.13;	author christos;	state Exp;
branches
	1.4.2.1;
next	1.3;
commitid	E5ToNymp0boaXskz;

1.3
date	2016.08.18.18.11.03;	author mrg;	state Exp;
branches;
next	1.2;
commitid	6XQ4s52LTAVbBOiz;

1.2
date	2016.08.14.03.43.03;	author mrg;	state Exp;
branches;
next	1.1;
commitid	J271e7p9sa4wUdiz;

1.1
date	2016.08.14.00.02.19;	author mrg;	state Exp;
branches;
next	;
commitid	kiiMdDSaieTBHciz;

1.6.24.1
date	2025.08.02.05.50.44;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.5.2.1
date	2017.04.21.16.52.59;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.4.2.1
date	2016.08.31.14.29.13;	author pgoyette;	state dead;
branches;
next	1.4.2.2;
commitid	0FvUzdNwg07UHcmz;

1.4.2.2
date	2016.09.14.03.04.16;	author pgoyette;	state Exp;
branches;
next	1.4.2.3;
commitid	0FvUzdNwg07UHcmz;

1.4.2.3
date	2016.11.04.14.48.48;	author pgoyette;	state Exp;
branches;
next	1.4.2.4;
commitid	2m1JRwYmpwPkOOsz;

1.4.2.4
date	2017.03.20.06.56.48;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;


desc
@@


1.7
log
@variously define DHAVE_GETADDRINFO, HAVE_INET_NTOP,
HAVE_STRUCT_SOCKADDR_STORAGE, HAVE_EXPLICIT_MEMSET, HAVE_PATHCONF,
and HAVE_UNISTD_H.
comment define for HAVE_MEMFD_CREATE in libxshmfence, needs testing.
@
text
@#	$NetBSD: Makefile,v 1.6 2017/03/05 11:52:39 mrg Exp $

.include <bsd.own.mk>

LIB=	xshmfence

XSHMFENCEDIR=	${X11SRCDIR.${LIB}}
.PATH:		${XSHMFENCEDIR}/src
SRCS=	 	xshmfence_alloc.c xshmfence_semaphore.c

INCS=	xshmfence.h
INCSDIR=${X11INCDIR}/X11

CPPFLAGS+=	-DSHMDIR=\"/var/shm\"
CPPFLAGS+=	-DHAVE_SEMAPHORE
# XXX
CPPFLAGS+=	-DLIBXSHM_PAGESIZE=4096
# XXX needs testing
#CPPFLAGS+=	-DHAVE_MEMFD_CREATE

LDADD+=	-lrt
DPADD+=	${LIBRT}

NOMAN=	# defined

PKGDIST=	${LIB}
# XXX PTHREAD_LIBS really should be -pthread for more general
# XXX but the package doesn't really do this.
PKGCONFIG_SED_FLAGS= \
        -e "s,@@XPROTO_CFLAGS@@,-I${X11INCDIR},; \
	    s,@@PTHREAD_LIBS@@,-lpthread,"

COPTS.xshmfence_semaphore.c += -Wno-stack-protector

.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
COPTS.xshmfence_semaphore.c+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
.endif

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.6
log
@add some missing @@foo@@ cases for libepoxy, libxshmfence and xorg-server.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2016/09/27 19:18:42 joerg Exp $
d18 2
@


1.6.24.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2025/03/09 06:03:51 mrg Exp $
a17 2
# XXX needs testing
#CPPFLAGS+=	-DHAVE_MEMFD_CREATE
@


1.5
log
@Allow clang to generate SPARCv8+ assembly for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2016/08/31 14:29:13 christos Exp $
d25 5
@


1.5.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2017/03/05 11:52:39 mrg Exp $
a24 5
# XXX PTHREAD_LIBS really should be -pthread for more general
# XXX but the package doesn't really do this.
PKGCONFIG_SED_FLAGS= \
        -e "s,@@XPROTO_CFLAGS@@,-I${X11INCDIR},; \
	    s,@@PTHREAD_LIBS@@,-lpthread,"
@


1.4
log
@no stack protector for evbarm
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/08/18 18:11:03 mrg Exp $
d28 4
@


1.4.2.1
log
@file Makefile was added on branch pgoyette-localcount on 2016-09-14 03:04:16 +0000
@
text
@d1 29
@


1.4.2.2
log
@Sync with HEAD
@
text
@a0 29
#	$NetBSD: Makefile,v 1.4 2016/08/31 14:29:13 christos Exp $

.include <bsd.own.mk>

LIB=	xshmfence

XSHMFENCEDIR=	${X11SRCDIR.${LIB}}
.PATH:		${XSHMFENCEDIR}/src
SRCS=	 	xshmfence_alloc.c xshmfence_semaphore.c

INCS=	xshmfence.h
INCSDIR=${X11INCDIR}/X11

CPPFLAGS+=	-DSHMDIR=\"/var/shm\"
CPPFLAGS+=	-DHAVE_SEMAPHORE
# XXX
CPPFLAGS+=	-DLIBXSHM_PAGESIZE=4096

LDADD+=	-lrt
DPADD+=	${LIBRT}

NOMAN=	# defined

PKGDIST=	${LIB}

COPTS.xshmfence_semaphore.c += -Wno-stack-protector

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.4.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2016/09/27 19:18:42 joerg Exp $
a27 4
.if ${MACHINE_ARCH} == "sparc" || ${COMMON_MACHINE_ARCH:U} == "sparc"
COPTS.xshmfence_semaphore.c+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
.endif

@


1.4.2.4
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2017/03/05 11:52:39 mrg Exp $
a24 5
# XXX PTHREAD_LIBS really should be -pthread for more general
# XXX but the package doesn't really do this.
PKGCONFIG_SED_FLAGS= \
        -e "s,@@XPROTO_CFLAGS@@,-I${X11INCDIR},; \
	    s,@@PTHREAD_LIBS@@,-lpthread,"
@


1.3
log
@this depends upon librt
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2016/08/14 03:43:03 mrg Exp $
d26 2
@


1.2
log
@various updates:
- port pkgsrc libxshmfence patches
- Xextbuiltin/module is no longer a thing, make it normal
- always need xorg-config.h/xorg-server.h for server components now
- add present, damage, render, Xi, dri, pixman,  extension where needed
- fix various CPPFLAGS issues
- deal with moved sdksyms.sh
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2016/08/14 00:02:19 mrg Exp $
d19 3
@


1.1
log
@build glue for libxshmfence.  not yet plugged into the build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2013/05/31 00:47:53 mrg Exp $
d9 1
a9 1
SRCS=		xshmfence_pthread.c xshmfence_alloc.c
a13 2
#CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11
CPPFLAGS+=	-DHAVE_PTHREAD
d15 1
d17 1
a17 1
CPPFLAGS+=	-D_PTHREAD_PSHARED
a20 2
#LIBDPLIBS=	X11	${.CURDIR}/../libX11/dynamic

@

