summaryrefslogtreecommitdiff
path: root/xserver/Makefile.bsd-wrapper
blob: 1a5d755028e504ebc448968b223fc28fc675a35b (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $OpenBSD: Makefile.bsd-wrapper,v 1.49 2013/08/17 17:06:33 bcallah Exp $

.include <bsd.xconf.mk>

DIST= ${.CURDIR}

# Machines for which we don't build the Xorg Xserver
NO_XORG_MACHINES=	alpha aviion hppa64 landisk mac68k \
			mvme68k mvme88k mvmeppc octeon solbourne vax

NO_XF86UTIL_MACHINES=	hp300 landisk luna88k mac68k octeon sgi sparc vax

.for M in ${NO_XORG_MACHINES} 
NO_XORG_${M} = --disable-xorg
.endfor
NO_XORG_OPTION=${NO_XORG_${MACHINE}}

.for M in ${NO_XF86UTIL_MACHINES}
NO_XF86_UTIL_${M} = --disable-xfree86-utils
.endfor
NO_XF86_UTIL_OPTION=${NO_XF86_UTIL_${MACHINE}}

.if ${XENOCARA_BUILD_GL:L} != "yes"
GLX_OPTION=	--disable-glx
.endif

.if ${XENOCARA_BUILD_DRI:L} == "yes"
DRI_OPTION=	--enable-dri --enable-dri2
.else
DRI_OPTION=	--disable-dri --disable-dri2
.endif

XKB_PATH=	${X11BASE}/share/X11/xkb
XKB_RULES=	base

CONFIGURE_ARGS=	--localstatedir=/var --sysconfdir=/etc/X11 \
		--with-xkb-path=${XKB_PATH} \
		--with-xkb-output=/var/db/xkb \
		--with-default-xkb-rules=${XKB_RULES} \
		--with-module-dir=${LIBDIR}/modules ${GLX_OPTION} \
		--enable-install-setuid --enable-privsep \
		--enable-xcsecurity \
		--without-fop --without-xmlto --without-xsltproc \
		--disable-dmx ${NO_XORG_OPTION} ${NO_XF86_UTIL_OPTION} \
		--disable-unit-tests \
		${DRI_OPTION}

includes:
	@echo "Removing obsolete files"
	-rm -f ${DESTDIR}${X11BASE}/include/xorg/xaa.h \
	       ${DESTDIR}${X11BASE}/include/xorg/xaalocal.h \
	       ${DESTDIR}${X11BASE}/include/xorg/mibstore.h

.include <bsd.xorg.mk>