2018-11-03 08:05:28 -06:00
|
|
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.68 2018/11/03 14:05:28 matthieu Exp $
|
2008-02-02 10:19:57 -07:00
|
|
|
|
2008-03-25 17:41:50 -06:00
|
|
|
.include <bsd.xconf.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
|
2016-05-12 01:19:50 -06:00
|
|
|
NO_XORG_MACHINES= alpha landisk octeon
|
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}}
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
.if ${XENOCARA_BUILD_GL:L} != "yes"
|
2018-03-15 04:02:36 -06:00
|
|
|
GLX_OPTION= --disable-glx --disable-glamor
|
2015-12-01 14:20:21 -07:00
|
|
|
.else
|
|
|
|
GLX_OPTION= --enable-glamor
|
2016-07-30 06:18:35 -06:00
|
|
|
KDRIVE_OPTION= --enable-kdrive
|
2007-05-12 08:24:59 -06:00
|
|
|
.endif
|
|
|
|
|
2008-03-25 17:41:50 -06:00
|
|
|
.if ${XENOCARA_BUILD_DRI:L} == "yes"
|
2011-11-05 07:32:40 -06:00
|
|
|
DRI_OPTION= --enable-dri --enable-dri2
|
2008-11-02 08:26:08 -07:00
|
|
|
.else
|
2015-11-17 03:49:57 -07:00
|
|
|
DRI_OPTION= --disable-dri --disable-dri2 --disable-libdrm
|
2008-02-02 10:19:57 -07:00
|
|
|
.endif
|
|
|
|
|
2011-03-08 00:59:23 -07:00
|
|
|
XKB_PATH= ${X11BASE}/share/X11/xkb
|
|
|
|
XKB_RULES= base
|
|
|
|
|
2006-11-26 12:03:36 -07:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \
|
2011-03-08 00:59:23 -07:00
|
|
|
--with-xkb-path=${XKB_PATH} \
|
2006-12-31 02:47:13 -07:00
|
|
|
--with-xkb-output=/var/db/xkb \
|
2011-03-08 00:59:23 -07:00
|
|
|
--with-default-xkb-rules=${XKB_RULES} \
|
2008-11-02 08:26:08 -07:00
|
|
|
--with-module-dir=${LIBDIR}/modules ${GLX_OPTION} \
|
2018-10-25 15:55:18 -06:00
|
|
|
--disable-install-setuid --enable-privsep \
|
2016-07-30 06:18:35 -06:00
|
|
|
${KDRIVE_OPTION} \
|
2018-11-03 08:05:28 -06:00
|
|
|
--enable-xcsecurity --disable-xdm-auth-1 \
|
2012-03-10 11:35:56 -07:00
|
|
|
--without-fop --without-xmlto --without-xsltproc \
|
2015-06-27 15:50:55 -06:00
|
|
|
--disable-dmx ${NO_XORG_OPTION} \
|
2011-04-27 14:46:31 -06:00
|
|
|
--disable-unit-tests \
|
2009-09-11 00:17:29 -06:00
|
|
|
${DRI_OPTION}
|
2008-10-07 20:24:28 -06:00
|
|
|
|
2016-10-02 11:21:29 -06:00
|
|
|
afterinstall:
|
2016-10-04 13:48:48 -06:00
|
|
|
-chown -h ${BINOWN}:${BINGRP} ${DESTDIR}${BINDIR}/X
|
2016-10-02 11:21:29 -06:00
|
|
|
|
2006-11-26 12:03:36 -07:00
|
|
|
.include <bsd.xorg.mk>
|