summaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-03-25 23:41:51 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-03-25 23:41:51 +0000
commit28a817eb7db2b6e503c2664c7d3683be0e3ce5f3 (patch)
tree6ce16dcf1a00f9d4a692ea93e91d6258a79c3316 /share/mk
parentd0296cb2dca77008ac87984bf5fff52ca809195d (diff)
Introduce bsd.xconf.mk to set default config variables used
at several places in the Xenocara build in a central place instead of duplicating the checks all over the place. ok oga@.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/Makefile4
-rw-r--r--share/mk/bsd.xconf.mk22
2 files changed, 24 insertions, 2 deletions
diff --git a/share/mk/Makefile b/share/mk/Makefile
index 5816e063a..fafc20807 100644
--- a/share/mk/Makefile
+++ b/share/mk/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.2 2007/03/18 10:26:58 matthieu Exp $
+# $OpenBSD: Makefile,v 1.3 2008/03/25 23:41:50 matthieu Exp $
.include <bsd.own.mk>
-FILES= automake.dep bsd.xorg.mk
+FILES= automake.dep bsd.xconf.mk bsd.xorg.mk
all:
diff --git a/share/mk/bsd.xconf.mk b/share/mk/bsd.xconf.mk
new file mode 100644
index 000000000..8a5a90dd2
--- /dev/null
+++ b/share/mk/bsd.xconf.mk
@@ -0,0 +1,22 @@
+# $OpenBSD: bsd.xconf.mk,v 1.1 2008/03/25 23:41:50 matthieu Exp $
+
+# Shared libs?
+.if ${MACHINE} == landisk || ${MACHINE} == "mvme88k" || ${MACHINE} == "vax"
+XENOCARA_HAVE_SHARED_LIBS?=no
+.else
+XENOCARA_HAVE_SHARED_LIBS?=yes
+.endif
+
+# Build DRI?
+.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
+XENOCARA_BUILD_DRI?=yes
+.else
+XENOCARA_BUILD_DRI?=no
+.endif
+
+# Build GL libs and apps
+.if ${MACHINE} == "landisk" || ${MACHINE_ARCH} == "m88k" || ${MACHINE} == "sgi" || ${MACHINE} == vax
+XENOCARA_BUILD_GL?=no
+.else
+XENOCARA_BUILD_GL?=yes
+.endif