head	1.23;
access;
symbols
	netbsd-11-0-RC4:1.23
	netbsd-11-0-RC3:1.23
	netbsd-11-0-RC2:1.23
	netbsd-11-0-RC1:1.23
	perseant-exfatfs-base-20250801:1.23
	netbsd-11:1.23.0.6
	netbsd-11-base:1.23
	netbsd-10-1-RELEASE:1.23
	perseant-exfatfs-base-20240630:1.23
	perseant-exfatfs:1.23.0.4
	perseant-exfatfs-base:1.23
	netbsd-8-3-RELEASE:1.17
	netbsd-9-4-RELEASE:1.18
	netbsd-10-0-RELEASE:1.23
	netbsd-10-0-RC6:1.23
	netbsd-10-0-RC5:1.23
	netbsd-10-0-RC4:1.23
	netbsd-10-0-RC3:1.23
	netbsd-10-0-RC2:1.23
	netbsd-10-0-RC1:1.23
	netbsd-10:1.23.0.2
	netbsd-10-base:1.23
	netbsd-9-3-RELEASE:1.18
	cjep_sun2x-base1:1.20
	cjep_sun2x:1.20.0.4
	cjep_sun2x-base:1.20
	cjep_staticlib_x-base1:1.20
	netbsd-9-2-RELEASE:1.18
	cjep_staticlib_x:1.20.0.2
	cjep_staticlib_x-base:1.20
	netbsd-9-1-RELEASE:1.18
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	is-mlppp:1.18.0.4
	is-mlppp-base:1.18
	phil-wifi-20200406:1.18
	netbsd-8-2-RELEASE:1.17
	netbsd-9-0-RELEASE:1.18
	netbsd-9-0-RC2:1.18
	netbsd-9-0-RC1:1.18
	phil-wifi-20191119:1.18
	netbsd-9:1.18.0.2
	netbsd-9-base:1.18
	phil-wifi-20190609:1.18
	netbsd-8-1-RELEASE:1.17
	netbsd-8-1-RC1:1.17
	pgoyette-compat-merge-20190127:1.17.8.1
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	netbsd-7-2-RELEASE:1.11
	pgoyette-compat-0728:1.17
	netbsd-8-0-RELEASE:1.17
	phil-wifi:1.17.0.10
	phil-wifi-base:1.17
	pgoyette-compat-0625:1.17
	netbsd-8-0-RC2:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	netbsd-8-0-RC1:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	netbsd-7-1-2-RELEASE:1.11
	pgoyette-compat:1.17.0.8
	pgoyette-compat-base:1.17
	netbsd-7-1-1-RELEASE:1.11
	matt-nb8-mediatek:1.17.0.6
	matt-nb8-mediatek-base:1.17
	perseant-stdc-iso10646:1.17.0.4
	perseant-stdc-iso10646-base:1.17
	netbsd-8:1.17.0.2
	netbsd-8-base:1.17
	prg-localcount2-base3:1.16
	prg-localcount2-base2:1.16
	prg-localcount2-base1:1.16
	prg-localcount2:1.16.0.4
	prg-localcount2-base:1.16
	pgoyette-localcount-20170426:1.16
	bouyer-socketcan-base1:1.16
	pgoyette-localcount-20170320:1.16
	netbsd-7-1:1.11.0.26
	netbsd-7-1-RELEASE:1.11
	netbsd-7-1-RC2:1.11
	netbsd-7-nhusb-base-20170116:1.11
	bouyer-socketcan:1.16.0.2
	bouyer-socketcan-base:1.16
	pgoyette-localcount-20170107:1.16
	netbsd-7-1-RC1:1.11
	pgoyette-localcount-20161104:1.16
	netbsd-7-0-2-RELEASE:1.11
	localcount-20160914:1.15
	netbsd-7-nhusb:1.11.0.24
	netbsd-7-nhusb-base:1.11
	pgoyette-localcount-20160806:1.12
	pgoyette-localcount-20160726:1.12
	pgoyette-localcount:1.12.0.2
	pgoyette-localcount-base:1.12
	netbsd-7-0-1-RELEASE:1.11
	netbsd-7-0:1.11.0.22
	netbsd-7-0-RELEASE:1.11
	netbsd-7-0-RC3:1.11
	netbsd-7-0-RC2:1.11
	netbsd-7-0-RC1:1.11
	netbsd-5-2-3-RELEASE:1.4.4.2
	netbsd-5-1-5-RELEASE:1.4.4.2
	netbsd-6-0-6-RELEASE:1.11
	netbsd-6-1-5-RELEASE:1.11
	netbsd-7:1.11.0.20
	netbsd-7-base:1.11
	yamt-pagecache-base9:1.11
	yamt-pagecache-tag8:1.11
	netbsd-6-1-4-RELEASE:1.11
	netbsd-6-0-5-RELEASE:1.11
	tls-earlyentropy:1.11.0.18
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11
	riastradh-drm2-base3:1.11
	netbsd-6-1-3-RELEASE:1.11
	netbsd-6-0-4-RELEASE:1.11
	netbsd-5-2-2-RELEASE:1.4.4.2
	netbsd-5-1-4-RELEASE:1.4.4.2
	netbsd-6-1-2-RELEASE:1.11
	netbsd-6-0-3-RELEASE:1.11
	netbsd-5-2-1-RELEASE:1.4.4.2
	netbsd-5-1-3-RELEASE:1.4.4.2
	netbsd-6-1-1-RELEASE:1.11
	riastradh-drm2-base2:1.11
	riastradh-drm2-base1:1.11
	riastradh-drm2:1.11.0.12
	riastradh-drm2-base:1.11
	netbsd-6-1:1.11.0.16
	netbsd-6-0-2-RELEASE:1.11
	netbsd-6-1-RELEASE:1.11
	netbsd-6-1-RC4:1.11
	netbsd-6-1-RC3:1.11
	agc-symver:1.11.0.14
	agc-symver-base:1.11
	netbsd-6-1-RC2:1.11
	netbsd-6-1-RC1:1.11
	yamt-pagecache-base8:1.11
	netbsd-5-2:1.4.4.2.0.6
	netbsd-6-0-1-RELEASE:1.11
	yamt-pagecache-base7:1.11
	netbsd-5-2-RELEASE:1.4.4.2
	netbsd-5-2-RC1:1.4.4.2
	matt-nb6-plus-nbase:1.11
	yamt-pagecache-base6:1.11
	netbsd-6-0:1.11.0.10
	netbsd-6-0-RELEASE:1.11
	netbsd-6-0-RC2:1.11
	tls-maxphys:1.11.0.8
	tls-maxphys-base:1.11
	matt-nb6-plus:1.11.0.6
	matt-nb6-plus-base:1.11
	netbsd-6-0-RC1:1.11
	yamt-pagecache-base5:1.11
	yamt-pagecache-base4:1.11
	netbsd-6:1.11.0.4
	netbsd-6-base:1.11
	netbsd-5-1-2-RELEASE:1.4.4.2
	netbsd-5-1-1-RELEASE:1.4.4.2
	yamt-pagecache-base3:1.11
	yamt-pagecache-base2:1.11
	yamt-pagecache:1.11.0.2
	yamt-pagecache-base:1.11
	cherry-xenmp:1.9.0.4
	cherry-xenmp-base:1.9
	bouyer-quota2-nbase:1.9
	bouyer-quota2:1.9.0.2
	bouyer-quota2-base:1.9
	matt-mips64-premerge-20101231:1.9
	matt-nb5-mips64-premerge-20101231:1.4.4.1.4.1
	matt-nb5-pq3:1.4.4.2.0.4
	matt-nb5-pq3-base:1.4.4.2
	pre-xorg-192:1.9
	netbsd-5-1:1.4.4.2.0.2
	netbsd-5-1-RELEASE:1.4.4.2
	netbsd-5-1-RC4:1.4.4.2
	matt-nb5-mips64-k15:1.4.4.1.4.1
	netbsd-5-1-RC3:1.4.4.2
	netbsd-5-1-RC2:1.4.4.2
	netbsd-5-1-RC1:1.4.4.2
	netbsd-5-0-2-RELEASE:1.4.4.1
	matt-nb5-mips64-premerge-20091211:1.4.4.1
	matt-premerge-20091211:1.8
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.4.4.1
	matt-nb4-mips64-k7-u2a-k9b:1.4.4.1
	matt-nb5-mips64-u1-k1-k5:1.4.4.1
	matt-nb5-mips64:1.4.4.1.0.4
	netbsd-5-0-1-RELEASE:1.4.4.1
	jym-xensuspend-nbase:1.6
	netbsd-5-0:1.4.4.1.0.2
	netbsd-5-0-RELEASE:1.4.4.1
	netbsd-5-0-RC4:1.4.4.1
	netbsd-5-0-RC3:1.4.4.1
	netbsd-5-0-RC2:1.4.4.1
	jym-xensuspend:1.6.0.2
	jym-xensuspend-base:1.6
	netbsd-5-0-RC1:1.4.4.1
	haad-dm-base:1.4
	haad-dm-base2:1.4
	haad-nbase2:1.4
	netbsd-5:1.4.0.4
	netbsd-5-base:1.4
	matt-mips64-base2:1.4
	haad-dm:1.4.0.2
	haad-dm-base1:1.4
	wrstuden-revivesa-base-3:1.3
	wrstuden-revivesa:1.3.0.2
	wrstuden-revivesa-base-2:1.3;
locks; strict;
comment	@# @;


1.23
date	2022.10.28.09.43.59;	author wiz;	state Exp;
branches;
next	1.22;
commitid	R4wMU7jTgxDL4tZD;

1.22
date	2022.07.15.19.12.39;	author mrg;	state Exp;
branches;
next	1.21;
commitid	HH3hErZ95dIfB1MD;

1.21
date	2021.08.19.11.03.04;	author mrg;	state Exp;
branches;
next	1.20;
commitid	qjeCdkK2f23fvz5D;

1.20
date	2020.09.13.23.01.02;	author mrg;	state Exp;
branches;
next	1.19;
commitid	bkQ0SYuozYKUoWnC;

1.19
date	2020.08.05.15.48.09;	author tsutsui;	state Exp;
branches;
next	1.18;
commitid	B4wyPZt6HZ9IfTiC;

1.18
date	2018.12.31.11.14.04;	author mrg;	state Exp;
branches;
next	1.17;
commitid	TUVjjF1MdjrmtW5B;

1.17
date	2017.05.21.15.28.40;	author riastradh;	state Exp;
branches
	1.17.8.1
	1.17.10.1;
next	1.16;
commitid	qFvwLLy2KgFGNgSz;

1.16
date	2016.10.08.20.03.04;	author mrg;	state Exp;
branches;
next	1.15;
commitid	jClPbOIwx9RYznpz;

1.15
date	2016.08.14.03.43.04;	author mrg;	state Exp;
branches;
next	1.14;
commitid	J271e7p9sa4wUdiz;

1.14
date	2016.08.14.00.03.58;	author mrg;	state Exp;
branches;
next	1.13;
commitid	GTnYSwjk1lG4Iciz;

1.13
date	2016.08.12.01.15.49;	author mrg;	state Exp;
branches;
next	1.12;
commitid	5GiziC5fk8bIaXhz;

1.12
date	2016.06.29.19.36.56;	author christos;	state Exp;
branches
	1.12.2.1;
next	1.11;
commitid	s2upAomcNCxhGocz;

1.11
date	2011.08.02.09.11.38;	author mrg;	state Exp;
branches;
next	1.10;

1.10
date	2011.08.02.07.41.01;	author mrg;	state Exp;
branches;
next	1.9;

1.9
date	2010.05.22.05.45.01;	author mrg;	state Exp;
branches;
next	1.8;

1.8
date	2009.06.12.01.59.04;	author mrg;	state Exp;
branches;
next	1.7;

1.7
date	2009.06.11.05.43.16;	author mrg;	state Exp;
branches;
next	1.6;

1.6
date	2009.01.24.17.24.52;	author bouyer;	state Exp;
branches;
next	1.5;

1.5
date	2008.12.22.01.04.27;	author jmcneill;	state Exp;
branches;
next	1.4;

1.4
date	2008.10.14.23.37.19;	author cube;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;

1.3
date	2008.08.15.15.55.05;	author rtr;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2008.08.06.07.37.38;	author mrg;	state Exp;
branches;
next	1.1;

1.1
date	2008.08.06.04.14.35;	author mrg;	state Exp;
branches;
next	;

1.17.8.1
date	2019.01.18.08.49.06;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.17.10.1
date	2019.06.10.22.02.46;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.12.2.1
date	2016.11.04.14.48.49;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.4.2.1
date	2008.10.14.23.37.19;	author haad;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2008.10.19.22.41.18;	author haad;	state Exp;
branches;
next	;

1.4.4.1
date	2008.12.24.16.48.25;	author snj;	state Exp;
branches
	1.4.4.1.4.1;
next	1.4.4.2;

1.4.4.2
date	2009.09.17.04.24.38;	author snj;	state Exp;
branches;
next	;

1.4.4.1.4.1
date	2010.04.21.05.24.44;	author matt;	state Exp;
branches;
next	;

1.3.2.1
date	2008.08.15.15.55.05;	author wrstuden;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2008.09.18.05.18.44;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.23
log
@put reallocarray() in the public namespace

reallocarray() will be part of the next POSIX release, see
https://austingroupbugs.net/view.php?id=1218

adapt an errno value to match POSIX expectations

As discussed on tech-userlevel
@
text
@#	$NetBSD: Makefile,v 1.22 2022/07/15 19:12:39 mrg Exp $

.include <bsd.own.mk>

.include "../../Makefile.Xserver"

PROG=		Xvfb

.PATH:		${X11SRCDIR.xorg-server}/hw/vfb
.PATH:		${X11SRCDIR.xorg-server}/hw/vfb/man
.PATH:		${X11SRCDIR.xorg-server}/Xext
.PATH:		${X11SRCDIR.xorg-server}/Xi
.PATH:		${X11SRCDIR.xorg-server}/mi
SRCS=		InitInput.c InitOutput.c miinitext.c stubs.c

CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 \
		-I${X11SRCDIR.xorg-server}/fb \
		-I${X11SRCDIR.xorg-server}/mfb \
		-I${X11SRCDIR.xorg-server}/mi \
		-I${X11SRCDIR.xorg-server}/include \
		-I${X11SRCDIR.xorg-server}/os \
		-I${X11SRCDIR.xorg-server}/Xext \
		-I${X11SRCDIR.xorg-server}/hw/xfree86/common \
		-I${DESTDIR}${X11INCDIR}/X11/extensions \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${DESTDIR}${X11INCDIR}/xorg \
		-I${X11SRCDIR.xorg-server}/render \
		-UGLXEXT

CPPFLAGS+=	${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
		-DHAS_SHM -DHAS_MMAP -UXFree86LOADER

.include "../../Makefile.common"

.if ${XSERVER_XFREE86} == "no"
CPPFLAGS+=	-UDDXTIME
.endif

CPPFLAGS.InitInput.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT
CPPFLAGS.miinitext.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT

COPTS.InitInput.c=	-Wno-error
COPTS.InitOutput.c=	-Wno-error

LDADD+=	${LDADD.dix} \
	${LDADD.fb} \
	${LDADD.mi} \
	${LDADD.xfixes} \
	${LDADD.Xext} \
	${LDADD.config} \
	${LDADD.dbe} \
	${LDADD.record} \
	${LDADD.randr} \
	${LDADD.damageext} \
	${LDADD.miext/damage} \
	${LDADD.miext/shadow} \
	${LDADD.miext/sync} \
	${LDADD.render} \
	${LDADD.Xi} \
	${LDADD.xkb} \
	${LDADD.xkbstubs} \
	${LDADD.composite} \
	${LDADD.os} \
	${LDADD.glx} \
	${LDADD.present} \
	${LDADD.dri3} \
	-lXfont2 \
	-lfreetype \
	-lXau \
	-lfontenc \
	${LIBCWRAPPER} \
	-lpixman-1 \
	-lXdmcp \
	-lz \
	-lm \
	-lGL

DPADD+=	${DPADD.dix} \
	${DPADD.fb} \
	${DPADD.mi} \
	${DPADD.xfixes} \
	${DPADD.Xext} \
	${DPADD.config} \
	${DPADD.dbe} \
	${DPADD.record} \
	${DPADD.render} \
	${DPADD.randr} \
	${DPADD.damageext} \
	${DPADD.miext/damage} \
	${DPADD.miext/shadow} \
	${DPADD.miext/sync} \
	${DPADD.Xi} \
	${DPADD.xkb} \
	${DPADD.xkbstubs} \
	${DPADD.composite} \
	${DPADD.os} \
	${DPADD.glx} \
	${DPADD.present} \
	${DPADD.dri3} \
	${LIBXFONT2} \
	${LIBFREETYPE} \
	${LIBXAU} \
	${LIBFONTENC} \
	${LIBPIXMAN1} \
	${LIBXDMCP} \
	${LIBZ} \
	${LIBM} \
	${LIBGL}

LDADD+=	-lcrypto
DPADD+=	${LIBCRYPTO}

.if ${MACHINE_ARCH} == "i386"
LDADD+=	-li386
DPADD+=	${LIBI386}
.endif

.if ${MACHINE_ARCH} == "x86_64"
LDADD+=	-lx86_64
DPADD+=	${LIBX86_64}
.endif

.if ${MACHINE_ARCH} == "alpha"
LDADD+=	-lalpha
DPADD+=	${LIBALPHA}
.endif

COPTS.miinitext.c+=	-Wno-error	# XXX xf86bigfstr.h

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


1.22
log
@fix driver list for sgimips, make Xsun and Xvfb build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2021/08/19 11:03:04 mrg Exp $
d31 1
a31 2
		-DHAS_SHM -DHAS_MMAP -UXFree86LOADER \
		-D_OPENBSD_SOURCE
@


1.21
log
@fix dri3 extension building and build it.

needed for amdgpu.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2020/09/13 23:01:02 mrg Exp $
d31 2
a32 1
		-DHAS_SHM -DHAS_MMAP -UXFree86LOADER
@


1.20
log
@remove additional -DHAVE_DIX_CONFIG_H.

add ${X11FLAGS.DIX} ${X11INCS.DIX} to record.  fixes build on riscv64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2020/08/05 15:48:09 tsutsui Exp $
d68 1
d101 1
@


1.19
log
@No need to build fbcmap_mi.c in each DDX server.

Per upstream commit:
 https://cgit.freedesktop.org/xorg/xserver/commit/?id=432fc37e2ca833f1ec3cb614cbdc3a7ae13f22b7
> Build fbcmap_mi.c once, rather than once for each DDX, and make it part of libfb
> or libwfb convenience library.

Tested on sun3 and x68k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2018/12/31 11:14:04 mrg Exp $
a27 1
		-DHAVE_DIX_CONFIG_H \
@


1.18
log
@build updates for xorg-server 1.20.3:
- moved/removed/new files
- don't define HAVE_XORG_CONFIG_H or HAVE_DIX_CONFIG_H if using
  ${X11FLAGS.DIX} -- already included.

put glxvnd into glx itself for now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2017/05/21 15:28:40 riastradh Exp $
a15 4
# XXX should not be needed now
#.PATH:		${X11SRCDIR.xorg-server}/fb
#SRCS+=		fbcmap_mi.c

@


1.17
log
@Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2016/10/08 20:03:04 mrg Exp $
d14 1
a14 1
SRCS=		InitInput.c InitOutput.c dpmsstubs.c miinitext.c stubs.c
a47 2
CPPFLAGS.dpmsstubs.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT
a60 1
	${LDADD.render} \
d65 1
d73 1
a73 1
	-lXfont \
d105 1
a105 1
	${LIBXFONT} \
@


1.17.10.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2018/12/31 11:14:04 mrg Exp $
d14 1
a14 1
SRCS=		InitInput.c InitOutput.c miinitext.c stubs.c
d48 2
d63 1
a67 1
	${LDADD.render} \
d75 1
a75 1
	-lXfont2 \
d107 1
a107 1
	${LIBXFONT2} \
@


1.17.8.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2017/05/21 15:28:40 riastradh Exp $
d14 1
a14 1
SRCS=		InitInput.c InitOutput.c miinitext.c stubs.c
d48 2
d63 1
a67 1
	${LDADD.render} \
d75 1
a75 1
	-lXfont2 \
d107 1
a107 1
	${LIBXFONT2} \
@


1.16
log
@don't undefine XFree86LOADER twice.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2016/08/14 03:43:04 mrg Exp $
a116 1
.if ${MKCRYPTO:Uno} != "no"
a118 1
.endif
@


1.15
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.14 2016/08/14 00:03:58 mrg Exp $
a46 1
			-UXFree86LOADER \
@


1.14
log
@various build updates for xorg-server 1.18.  with this and some other
uncommited work, Xvfb and Xnest both link.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2016/08/12 01:15:49 mrg Exp $
d75 1
d107 1
@


1.13
log
@round do of reach over updates for xorg-server 1.18.  again, untested,
but this should be much closer to complete for the necessary changes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2016/06/29 19:36:56 christos Exp $
d27 1
d83 2
a84 1
	-lm
d113 2
a114 1
	${LIBM}
@


1.12
log
@Fix MKCRYPTO=no build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2011/08/02 09:11:38 mrg Exp $
d16 3
a18 2
.PATH:		${X11SRCDIR.xorg-server}/fb
SRCS+=		fbcmap_mi.c
a31 2
		-DNO_HW_ONLY_EXTS \
		-DNO_MODULE_EXTS \
a45 1
			-DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS \
@


1.12.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2016/10/08 20:03:04 mrg Exp $
d47 2
@


1.11
log
@various updates for xorg-server 1.10.3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2011/08/02 07:41:01 mrg Exp $
d84 1
a84 2
	-lm \
	-lcrypto
d113 6
a118 2
	${LIBM} \
	${LIBCRYPTO}
@


1.10
log
@build updates and fixes for xorg-server 1.10.3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2010/05/22 05:45:01 mrg Exp $
d69 1
d87 28
a114 7
DPADD+=	${DPADD.dix} ${DPADD.fb} ${DPADD.mi} ${DPADD.xfixes} \
	${DPADD.Xext} ${DPADD.config} ${DPADD.dbe} \
	${DPADD.record} ${DPADD.render} ${DPADD.randr} ${DPADD.damageext} \
	${DPADD.miext/damage} ${DPADD.miext/shadow} ${DPADD.Xi} \
	${DPADD.xkb} ${DPADD.composite} ${DPADD.os} ${DPADD.glx} \
	${LIBXFONT} ${LIBFREETYPE} ${LIBXAU} ${LIBFONTENC} \
	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM} \
@


1.9
log
@XXX: use -Wno-error for files that use old foostr.h includes that now have
XXX: #warning's in them.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2009/06/12 01:59:04 mrg Exp $
d10 1
@


1.8
log
@build updates for xorg-server 1.6.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2009/06/11 05:43:16 mrg Exp $
d109 2
@


1.7
log
@upgrade the build framework for xorg-server 1.6.

this doesn't quite work yet.  Xvfb and Xnest attempt to link but
have missing symbols.  Xorg doesn't build all its components yet.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2009/01/24 17:24:52 bouyer Exp $
d73 1
d89 1
a89 2
	${DPADD.xkb} ${DPADD.composite} ${DPADD.os} \
	${LIBCWRAPPER} \
@


1.6
log
@Add support for X11FLAVOUR=xorg to NetBSD/alpha. Tested on PWS500
(ev56, handled as non-BWX by Xorg) and XP1000 (ev6, BWX). Also
tested by Rafael Ruiz on a AlphaStation 255 (thanks !).
non-PCI adapters are not supported; someone should make these work
as a wsfb device.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2008/12/22 01:04:27 jmcneill Exp $
a61 1
	${LDADD.XTrap} \
d63 1
a64 1
	${LDADD.randr} \
a71 1
	${LDADD.dix/xpstubs} \
d81 2
a82 1
	-lm
d85 1
a85 1
	${DPADD.Xext} ${DPADD.config} ${DPADD.dbe} ${DPADD.XTrap} \
d88 1
a88 1
	${DPADD.xkb} ${DPADD.composite} ${DPADD.dix/xpstubs} ${DPADD.os} \
d91 2
a92 1
	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM}
@


1.5
log
@PR# xsrc/40150: unable to use Ctr-Alt-Fx to switch out of X server

Break libxkb into two separate libraries (libxkb and libxbkstubs). Pull
in libxkbstubs for Xvfb and Xnest, and for Xorg use dixmods/libxorgxkb.
Now Xorg no longer uses the stub XkbDDXSwitchScreen from xkb/ddxVT.c so
display switching works again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2008/10/14 23:37:19 cube Exp $
d104 5
@


1.4
log
@- Adapt to changes on bsd.x11.mk
- Remove unnecessary targets that handled .man.pre files
- Add transformations for package-specific patterns in man page templates.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2008/08/15 15:55:05 rtr Exp $
d71 1
@


1.4.4.1
log
@Pull up following revision(s) (requested by jmcneill in ticket #200):
	external/mit/xorg/server/xorg-server/Makefile: revision 1.18
	external/mit/xorg/server/xorg-server/Makefile.Xserver: revision 1.8
	external/mit/xorg/server/xorg-server/hw/vfb/Makefile: revision 1.5
	external/mit/xorg/server/xorg-server/hw/xfree86/Makefile: revision 1.23
	external/mit/xorg/server/xorg-server/hw/xnest/Makefile: revision 1.7
	external/mit/xorg/server/xorg-server/xkb/Makefile: revision 1.4
	external/mit/xorg/server/xorg-server/xkbstubs/Makefile: revision 1.1
PR# xsrc/40150: unable to use Ctr-Alt-Fx to switch out of X server
Break libxkb into two separate libraries (libxkb and libxbkstubs). Pull
in libxkbstubs for Xvfb and Xnest, and for Xorg use dixmods/libxorgxkb.
Now Xorg no longer uses the stub XkbDDXSwitchScreen from xkb/ddxVT.c so
display switching works again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2008/10/14 23:37:19 cube Exp $
a70 1
	${LDADD.xkbstubs} \
@


1.4.4.1.4.1
log
@sync to netbsd-5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.4.2 2009/09/17 04:24:38 snj Exp $
d62 1
d64 1
a65 1
	${LDADD.render} \
d73 1
a74 1
	${LDADD.glx} \
d83 1
a83 2
	-lm \
	-lcrypto
d86 1
a86 1
	${DPADD.Xext} ${DPADD.config} ${DPADD.dbe} \
d89 2
a90 1
	${DPADD.xkb} ${DPADD.composite} ${DPADD.os} ${DPADD.glx} \
d92 1
a92 2
	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM} \
	${LIBCRYPTO}
a103 5
.if ${MACHINE_ARCH} == "alpha"
LDADD+=	-lalpha
DPADD+=	${LIBALPHA}
.endif

@


1.4.4.2
log
@Apply patch (requested by mrg in ticket #958):
Sync X.Org reachover build framework and setlists with the new X.Org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2009/06/12 01:59:04 mrg Exp $
d62 1
d64 1
a65 1
	${LDADD.render} \
d73 1
a74 1
	${LDADD.glx} \
d83 1
a83 2
	-lm \
	-lcrypto
d86 1
a86 1
	${DPADD.Xext} ${DPADD.config} ${DPADD.dbe} \
d89 2
a90 1
	${DPADD.xkb} ${DPADD.composite} ${DPADD.os} ${DPADD.glx} \
d92 1
a92 2
	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM} \
	${LIBCRYPTO}
a103 5
.if ${MACHINE_ARCH} == "alpha"
LDADD+=	-lalpha
DPADD+=	${LIBALPHA}
.endif

@


1.4.2.1
log
@file Makefile was added on branch haad-dm on 2008-10-19 22:41:18 +0000
@
text
@d1 104
@


1.4.2.2
log
@Sync with HEAD.
@
text
@a0 104
#	$NetBSD: Makefile,v 1.4 2008/10/14 23:37:19 cube Exp $

.include <bsd.own.mk>

.include "../../Makefile.Xserver"

PROG=		Xvfb

.PATH:		${X11SRCDIR.xorg-server}/hw/vfb
.PATH:		${X11SRCDIR.xorg-server}/Xext
.PATH:		${X11SRCDIR.xorg-server}/Xi
.PATH:		${X11SRCDIR.xorg-server}/mi
SRCS=		InitInput.c InitOutput.c dpmsstubs.c miinitext.c stubs.c

.PATH:		${X11SRCDIR.xorg-server}/fb
SRCS+=		fbcmap_mi.c

CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 \
		-I${X11SRCDIR.xorg-server}/fb \
		-I${X11SRCDIR.xorg-server}/mfb \
		-I${X11SRCDIR.xorg-server}/mi \
		-I${X11SRCDIR.xorg-server}/include \
		-I${X11SRCDIR.xorg-server}/os \
		-I${X11SRCDIR.xorg-server}/Xext \
		-I${DESTDIR}${X11INCDIR}/X11/extensions \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${DESTDIR}${X11INCDIR}/xorg \
		-I${X11SRCDIR.xorg-server}/render \
		-DHAVE_DIX_CONFIG_H \
		-DNO_HW_ONLY_EXTS \
		-DNO_MODULE_EXTS \
		-UGLXEXT

CPPFLAGS+=	${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
		-DHAS_SHM -DHAS_MMAP -UXFree86LOADER

.include "../../Makefile.common"

.if ${XSERVER_XFREE86} == "no"
CPPFLAGS+=	-UDDXTIME
.endif

CPPFLAGS.InitInput.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT
CPPFLAGS.miinitext.c=	${X11FLAGS.EXTENSION} \
			-DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS \
			-UXFree86LOADER \
			-UGLXEXT
CPPFLAGS.dpmsstubs.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT

COPTS.InitInput.c=	-Wno-error
COPTS.InitOutput.c=	-Wno-error

LDADD+=	${LDADD.dix} \
	${LDADD.fb} \
	${LDADD.mi} \
	${LDADD.xfixes} \
	${LDADD.Xext} \
	${LDADD.config} \
	${LDADD.dbe} \
	${LDADD.XTrap} \
	${LDADD.record} \
	${LDADD.render} \
	${LDADD.randr} \
	${LDADD.damageext} \
	${LDADD.miext/damage} \
	${LDADD.miext/shadow} \
	${LDADD.Xi} \
	${LDADD.xkb} \
	${LDADD.composite} \
	${LDADD.dix/xpstubs} \
	${LDADD.os} \
	-lXfont \
	-lfreetype \
	-lXau \
	-lfontenc \
	${LIBCWRAPPER} \
	-lpixman-1 \
	-lXdmcp \
	-lz \
	-lm

DPADD+=	${DPADD.dix} ${DPADD.fb} ${DPADD.mi} ${DPADD.xfixes} \
	${DPADD.Xext} ${DPADD.config} ${DPADD.dbe} ${DPADD.XTrap} \
	${DPADD.record} ${DPADD.render} ${DPADD.randr} ${DPADD.damageext} \
	${DPADD.miext/damage} ${DPADD.miext/shadow} ${DPADD.Xi} \
	${DPADD.xkb} ${DPADD.composite} ${DPADD.dix/xpstubs} ${DPADD.os} \
	${LIBCWRAPPER} \
	${LIBXFONT} ${LIBFREETYPE} ${LIBXAU} ${LIBFONTENC} \
	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM}

.if ${MACHINE_ARCH} == "i386"
LDADD+=	-li386
DPADD+=	${LIBI386}
.endif

.if ${MACHINE_ARCH} == "x86_64"
LDADD+=	-lx86_64
DPADD+=	${LIBX86_64}
.endif

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


1.3
log
@stop using XSERVERINCDIR since it was referencing src/x11 reachover
this is not correct for xorg reachover
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/08/06 07:37:38 mrg Exp $
a102 4
# XXX
Xvfb.1: Xvfb.man.pre
	cp ${.ALLSRC} ${.TARGET}

@


1.3.2.1
log
@file Makefile was added on branch wrstuden-revivesa on 2008-09-18 05:18:44 +0000
@
text
@d1 108
@


1.3.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 108
#	$NetBSD: Makefile,v 1.3 2008/08/15 15:55:05 rtr Exp $

.include <bsd.own.mk>

.include "../../Makefile.Xserver"

PROG=		Xvfb

.PATH:		${X11SRCDIR.xorg-server}/hw/vfb
.PATH:		${X11SRCDIR.xorg-server}/Xext
.PATH:		${X11SRCDIR.xorg-server}/Xi
.PATH:		${X11SRCDIR.xorg-server}/mi
SRCS=		InitInput.c InitOutput.c dpmsstubs.c miinitext.c stubs.c

.PATH:		${X11SRCDIR.xorg-server}/fb
SRCS+=		fbcmap_mi.c

CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 \
		-I${X11SRCDIR.xorg-server}/fb \
		-I${X11SRCDIR.xorg-server}/mfb \
		-I${X11SRCDIR.xorg-server}/mi \
		-I${X11SRCDIR.xorg-server}/include \
		-I${X11SRCDIR.xorg-server}/os \
		-I${X11SRCDIR.xorg-server}/Xext \
		-I${DESTDIR}${X11INCDIR}/X11/extensions \
		-I${DESTDIR}${X11INCDIR}/pixman-1 \
		-I${DESTDIR}${X11INCDIR}/xorg \
		-I${X11SRCDIR.xorg-server}/render \
		-DHAVE_DIX_CONFIG_H \
		-DNO_HW_ONLY_EXTS \
		-DNO_MODULE_EXTS \
		-UGLXEXT

CPPFLAGS+=	${X11FLAGS.OS_DEFINES} ${X11FLAGS.DIX} \
		-DHAS_SHM -DHAS_MMAP -UXFree86LOADER

.include "../../Makefile.common"

.if ${XSERVER_XFREE86} == "no"
CPPFLAGS+=	-UDDXTIME
.endif

CPPFLAGS.InitInput.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT
CPPFLAGS.miinitext.c=	${X11FLAGS.EXTENSION} \
			-DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS \
			-UXFree86LOADER \
			-UGLXEXT
CPPFLAGS.dpmsstubs.c=	${X11FLAGS.EXTENSION} \
			-UGLXEXT

COPTS.InitInput.c=	-Wno-error
COPTS.InitOutput.c=	-Wno-error

LDADD+=	${LDADD.dix} \
	${LDADD.fb} \
	${LDADD.mi} \
	${LDADD.xfixes} \
	${LDADD.Xext} \
	${LDADD.config} \
	${LDADD.dbe} \
	${LDADD.XTrap} \
	${LDADD.record} \
	${LDADD.render} \
	${LDADD.randr} \
	${LDADD.damageext} \
	${LDADD.miext/damage} \
	${LDADD.miext/shadow} \
	${LDADD.Xi} \
	${LDADD.xkb} \
	${LDADD.composite} \
	${LDADD.dix/xpstubs} \
	${LDADD.os} \
	-lXfont \
	-lfreetype \
	-lXau \
	-lfontenc \
	${LIBCWRAPPER} \
	-lpixman-1 \
	-lXdmcp \
	-lz \
	-lm

DPADD+=	${DPADD.dix} ${DPADD.fb} ${DPADD.mi} ${DPADD.xfixes} \
	${DPADD.Xext} ${DPADD.config} ${DPADD.dbe} ${DPADD.XTrap} \
	${DPADD.record} ${DPADD.render} ${DPADD.randr} ${DPADD.damageext} \
	${DPADD.miext/damage} ${DPADD.miext/shadow} ${DPADD.Xi} \
	${DPADD.xkb} ${DPADD.composite} ${DPADD.dix/xpstubs} ${DPADD.os} \
	${LIBCWRAPPER} \
	${LIBXFONT} ${LIBFREETYPE} ${LIBXAU} ${LIBFONTENC} \
	${LIBPIXMAN1} ${LIBXDMCP} ${LIBZ} ${LIBM}

.if ${MACHINE_ARCH} == "i386"
LDADD+=	-li386
DPADD+=	${LIBI386}
.endif

.if ${MACHINE_ARCH} == "x86_64"
LDADD+=	-lx86_64
DPADD+=	${LIBX86_64}
.endif

# XXX
Xvfb.1: Xvfb.man.pre
	cp ${.ALLSRC} ${.TARGET}

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


1.2
log
@remove a non-existant include path
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/08/06 04:14:35 mrg Exp $
a22 1
		-I${XSERVERINCDIR} \
@


1.1
log
@build hw/Xvfb.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6.4.1 2004/11/21 10:01:26 rtr Exp $
a18 1
		-I${X11SRCDIR.xc}/include/fonts \
@
