summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortron <tron>2008-06-03 11:06:17 +0000
committertron <tron>2008-06-03 11:06:17 +0000
commit2b91caa34a601387c79709a64f80ae01a34dd4d6 (patch)
treeb651c7aa532781e001dd7e07729b815f92c44605 /graphics
parente711e7dd973d1ae2be93335ef374460c5f99af2c (diff)
downloadpkgsrc-2b91caa34a601387c79709a64f80ae01a34dd4d6.tar.gz
Don't offer "dri" as an option on systems which use XFree86 because it
breaks the build. This fixes PR pkg/38676 by Roland Sieker.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/MesaLib/options.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/graphics/MesaLib/options.mk b/graphics/MesaLib/options.mk
index 18aa11cf6e7..d739b19127f 100644
--- a/graphics/MesaLib/options.mk
+++ b/graphics/MesaLib/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.8 2008/06/03 06:59:12 dsainty Exp $
+# $NetBSD: options.mk,v 1.9 2008/06/03 11:06:17 tron Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib
PKG_SUPPORTED_OPTIONS= mesa-execmem-mmap
@@ -46,8 +46,9 @@ PKG_SUGGESTED_OPTIONS= mesa-execmem-mmap
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "sparc64") && \
- (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
- ${OPSYS} == "OpenBSD" || ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux")
+ ((${OPSYS} == "NetBSD" && ${X11_TYPE} == "modular") || \
+ ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
+ ${OPSYS} == "DragonFly" || ${OPSYS} == "Linux")
PKG_SUPPORTED_OPTIONS+= dri
.endif
###
@@ -57,7 +58,7 @@ PKG_SUPPORTED_OPTIONS+= dri
### is advised given that it's glx/glcore modules are built from
### Mesa 6.5.3 (a development release).
###
-.if !empty(MACHINE_PLATFORM:MNetBSD-[4-9]*-*86*)
+.if !empty(MACHINE_PLATFORM:MNetBSD-[4-9]*-*86*) && ${X11_TYPE} == "modular"
PKG_SUGGESTED_OPTIONS+= dri
.endif