summaryrefslogtreecommitdiff
path: root/xserver/Makefile.bsd-wrapper
blob: 283a7c6cb4f3b4790f10f95b3ce187be70ba4bbf (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
55
56
# $OpenBSD: Makefile.bsd-wrapper,v 1.21 2008/03/25 23:41:50 matthieu Exp $

.include <bsd.xconf.mk>

DIST= ${.CURDIR}

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

NO_XF86UTIL_MACHINES=	hp300 landisk mac68k sgi sparc vax

NO_XPRINT_MACHINES=     landisk vax

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

.for M in ${NO_XPRINT_MACHINES}
NO_XPRINT_${M}= --disable-xprint
.endfor
NO_XPRINT_OPTION=${NO_XPRINT_${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"
MESA_SOURCE=	--with-mesa-source=${XSRCDIR}/dist/Mesa
.endif

.if ${XENOCARA_BUILD_DRI:L} == "yes"
DRI_OPTION=	--enable-dri --with-dri-driver-path=${X11BASE}/lib/modules/dri
.endif

.if !defined(KDRIVE)
CONFIGURE_ARGS=	--localstatedir=/var --sysconfdir=/etc/X11 \
		--with-xkb-path=/etc/X11/xkb \
		--with-xkb-output=/var/db/xkb \
		--with-module-dir=${LIBDIR}/modules ${MESA_SOURCE} \
		--enable-install-setuid --enable-privsep \
		--disable-dmx ${NO_XORG_OPTION} ${NO_XF86_UTIL_OPTION} \
		${NO_XPRINT_OPTION} ${DRI_OPTION}
.else
CONFIGURE_ARGS=	--localstatedir=/var --sysconfdir=/etc/X11 \
		--disable-xorg \
		--disable-xinput \
		--enable-kdrive \
		--disable-dmx \
		--disable-xprint \
		--disable-xnest \
		--disable-xvfb
.endif
.include <bsd.xorg.mk>