xenocara/xserver/Makefile.bsd-wrapper
matthieu 7d876864d7 Merge the build of Xephyr in the main xserver build.
Recent X server doesn't require to build the DIX with different
options for xfree86 and kdrive.

Tested for beeing a no-op on m88k by Kenji Aoyama. Thanks
2016-07-30 12:18:35 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile.bsd-wrapper,v 1.63 2016/07/30 12:18:35 matthieu Exp $
.include <bsd.xconf.mk>
DIST= ${.CURDIR}
# Machines for which we don't build the Xorg Xserver
NO_XORG_MACHINES= alpha landisk octeon
.for M in ${NO_XORG_MACHINES}
NO_XORG_${M} = --disable-xorg
.endfor
NO_XORG_OPTION=${NO_XORG_${MACHINE}}
.if ${XENOCARA_BUILD_GL:L} != "yes"
GLX_OPTION= --disable-glx
.else
GLX_OPTION= --enable-glamor
KDRIVE_OPTION= --enable-kdrive
.endif
.if ${XENOCARA_BUILD_DRI:L} == "yes"
DRI_OPTION= --enable-dri --enable-dri2
.else
DRI_OPTION= --disable-dri --disable-dri2 --disable-libdrm
.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 \
${KDRIVE_OPTION} \
--enable-xcsecurity \
--without-fop --without-xmlto --without-xsltproc \
--disable-dmx ${NO_XORG_OPTION} \
--disable-unit-tests \
${DRI_OPTION}
.include <bsd.xorg.mk>