xenocara/xserver/Makefile.bsd-wrapper

48 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile.bsd-wrapper,v 1.55 2015/06/27 21:50:55 miod Exp $
.include <bsd.xconf.mk>
2006-11-26 12:03:36 -07:00
DIST= ${.CURDIR}
# Machines for which we don't build the Xorg Xserver
NO_XORG_MACHINES= alpha aviion hppa64 landisk \
2014-03-18 16:37:28 -06:00
octeon solbourne vax
.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
.endif
.if ${XENOCARA_BUILD_DRI:L} == "yes"
2011-11-05 07:32:40 -06:00
DRI_OPTION= --enable-dri --enable-dri2
.else
DRI_OPTION= --disable-dri --disable-dri2
.endif
XKB_PATH= ${X11BASE}/share/X11/xkb
XKB_RULES= base
2006-11-26 12:03:36 -07:00
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} \
--disable-unit-tests \
${DRI_OPTION}
.if ${MACHINE_CPU} == "mips64"
# disable cache file, because the compiler flags will not match
CONFIGURE_ARGS+= --cache-file=/dev/null
CFLAGS+= -Wa,-xgot
.endif
2006-11-26 12:03:36 -07:00
.include <bsd.xorg.mk>