xenocara/xserver/Makefile.bsd-wrapper
shadchin 89a8ad0171 If you do not have XkbOptions in xorg.conf, it is automatically set to
"terminate: ctrl_alt_bksp" (only if XENOCARA_USE_XKEYBOARD_CONFIG=Yes)

tested ajacoutot@, ok matthieu@
2011-05-30 10:52:57 +00:00

57 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile.bsd-wrapper,v 1.37 2011/05/30 10:52:58 shadchin Exp $
.include <bsd.xconf.mk>
DIST= ${.CURDIR}
# Machines for which we don't build the Xorg Xserver
NO_XORG_MACHINES= alpha aviion hppa64 landisk \
mvme68k mvme88k mvmeppc solbourne vax
NO_XF86UTIL_MACHINES= hp300 landisk mac68k 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 \
--with-dri-driver-path=${X11BASE}/lib/modules/dri
.else
DRI_OPTION= --disable-dri --disable-dri2
.endif
.if ${XENOCARA_USE_XKEYBOARD_CONFIG:L} == "yes"
XKB_PATH= ${X11BASE}/share/X11/xkb
XKB_RULES= base
XKB_OPTIONS= terminate:ctrl_alt_bksp
.else
XKB_PATH= /etc/X11/xkb
XKB_RULES= xorg
XKB_OPTIONS=
.endif
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-default-xkb-options=${XKB_OPTIONS} \
--with-module-dir=${LIBDIR}/modules ${GLX_OPTION} \
--enable-install-setuid --enable-privsep \
--enable-xcsecurity \
--disable-dmx ${NO_XORG_OPTION} ${NO_XF86_UTIL_OPTION} \
--disable-unit-tests \
${DRI_OPTION}
.include <bsd.xorg.mk>