2008-02-13 14:34:15 -07:00
|
|
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.20 2008/02/13 21:34:15 miod Exp $
|
2008-02-02 10:19:57 -07:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
2006-11-26 12:03:36 -07:00
|
|
|
|
|
|
|
DIST= ${.CURDIR}
|
|
|
|
|
2007-03-02 13:26:20 -07:00
|
|
|
# Machines for which we don't build the Xorg Xserver
|
2007-03-28 14:44:34 -06:00
|
|
|
NO_XORG_MACHINES= aviion hppa hppa64 landisk \
|
2008-01-04 06:44:23 -07:00
|
|
|
mvme68k mvme88k mvmeppc solbourne vax
|
2007-03-02 13:26:20 -07:00
|
|
|
|
2008-01-04 06:44:23 -07:00
|
|
|
NO_XF86UTIL_MACHINES= hp300 landisk mac68k sgi sparc vax
|
2007-05-12 08:24:59 -06:00
|
|
|
|
|
|
|
NO_XPRINT_MACHINES= landisk vax
|
2007-04-15 11:42:08 -06:00
|
|
|
|
2007-03-02 13:26:20 -07:00
|
|
|
.for M in ${NO_XORG_MACHINES}
|
|
|
|
NO_XORG_${M} = --disable-xorg
|
|
|
|
.endfor
|
|
|
|
NO_XORG_OPTION=${NO_XORG_${MACHINE}}
|
|
|
|
|
2007-05-12 08:24:59 -06:00
|
|
|
.for M in ${NO_XPRINT_MACHINES}
|
2007-05-25 10:15:41 -06:00
|
|
|
NO_XPRINT_${M}= --disable-xprint
|
2007-05-12 08:24:59 -06:00
|
|
|
.endfor
|
2007-05-25 10:15:41 -06:00
|
|
|
NO_XPRINT_OPTION=${NO_XPRINT_${MACHINE}}
|
2007-05-12 08:24:59 -06:00
|
|
|
|
2007-04-15 11:42:08 -06:00
|
|
|
.for M in ${NO_XF86UTIL_MACHINES}
|
|
|
|
NO_XF86_UTIL_${M} = --disable-xfree86-utils
|
|
|
|
.endfor
|
|
|
|
NO_XF86_UTIL_OPTION=${NO_XF86_UTIL_${MACHINE}}
|
|
|
|
|
2008-02-13 14:34:15 -07:00
|
|
|
.if ${MACHINE} != "landisk" && ${MACHINE} != "sgi" && ${MACHINE} != "vax" && \
|
|
|
|
${MACHINE_ARCH} != "m68k"
|
2007-05-12 08:24:59 -06:00
|
|
|
MESA_SOURCE= --with-mesa-source=${XSRCDIR}/dist/Mesa
|
|
|
|
.endif
|
|
|
|
|
2008-02-02 10:19:57 -07:00
|
|
|
.if defined(XENOCARA_BUILD_DRI) && ${XENOCARA_BUILD_DRI:L} == "yes"
|
|
|
|
DRI_OPTION= --enable-dri --with-dri-driver-path=${X11BASE}/lib/modules/dri
|
|
|
|
.endif
|
|
|
|
|
2007-05-25 10:30:11 -06:00
|
|
|
.if !defined(KDRIVE)
|
2006-11-26 12:03:36 -07:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \
|
2006-12-31 02:47:13 -07:00
|
|
|
--with-xkb-path=/etc/X11/xkb \
|
|
|
|
--with-xkb-output=/var/db/xkb \
|
2007-05-12 08:24:59 -06:00
|
|
|
--with-module-dir=${LIBDIR}/modules ${MESA_SOURCE} \
|
2006-11-28 13:29:31 -07:00
|
|
|
--enable-install-setuid --enable-privsep \
|
2007-05-12 08:24:59 -06:00
|
|
|
--disable-dmx ${NO_XORG_OPTION} ${NO_XF86_UTIL_OPTION} \
|
2008-02-02 10:19:57 -07:00
|
|
|
${NO_XPRINT_OPTION} ${DRI_OPTION}
|
2007-05-25 10:30:11 -06:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \
|
|
|
|
--disable-xorg \
|
2007-05-26 23:56:03 -06:00
|
|
|
--disable-xinput \
|
2007-05-25 10:30:11 -06:00
|
|
|
--enable-kdrive \
|
|
|
|
--disable-dmx \
|
|
|
|
--disable-xprint \
|
|
|
|
--disable-xnest \
|
|
|
|
--disable-xvfb
|
|
|
|
.endif
|
2006-11-26 12:03:36 -07:00
|
|
|
.include <bsd.xorg.mk>
|