Makefile.bsd-wrapper 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # $OpenBSD: Makefile.bsd-wrapper,v 1.55 2015/06/27 21:50:55 miod Exp $
  2. .include <bsd.xconf.mk>
  3. DIST= ${.CURDIR}
  4. # Machines for which we don't build the Xorg Xserver
  5. NO_XORG_MACHINES= alpha aviion hppa64 landisk \
  6. octeon solbourne vax
  7. .for M in ${NO_XORG_MACHINES}
  8. NO_XORG_${M} = --disable-xorg
  9. .endfor
  10. NO_XORG_OPTION=${NO_XORG_${MACHINE}}
  11. .if ${XENOCARA_BUILD_GL:L} != "yes"
  12. GLX_OPTION= --disable-glx
  13. .endif
  14. .if ${XENOCARA_BUILD_DRI:L} == "yes"
  15. DRI_OPTION= --enable-dri --enable-dri2
  16. .else
  17. DRI_OPTION= --disable-dri --disable-dri2
  18. .endif
  19. XKB_PATH= ${X11BASE}/share/X11/xkb
  20. XKB_RULES= base
  21. CONFIGURE_ARGS= --localstatedir=/var --sysconfdir=/etc/X11 \
  22. --with-xkb-path=${XKB_PATH} \
  23. --with-xkb-output=/var/db/xkb \
  24. --with-default-xkb-rules=${XKB_RULES} \
  25. --with-module-dir=${LIBDIR}/modules ${GLX_OPTION} \
  26. --enable-install-setuid --enable-privsep \
  27. --enable-xcsecurity \
  28. --without-fop --without-xmlto --without-xsltproc \
  29. --disable-dmx ${NO_XORG_OPTION} \
  30. --disable-unit-tests \
  31. ${DRI_OPTION}
  32. .if ${MACHINE_CPU} == "mips64"
  33. # disable cache file, because the compiler flags will not match
  34. CONFIGURE_ARGS+= --cache-file=/dev/null
  35. CFLAGS+= -Wa,-xgot
  36. .endif
  37. .include <bsd.xorg.mk>