diff --git a/graphics/mesa-devel/Makefile b/graphics/mesa-devel/Makefile index 10e1b7cd8a354..1c4afab5d440b 100644 --- a/graphics/mesa-devel/Makefile +++ b/graphics/mesa-devel/Makefile @@ -94,7 +94,6 @@ anv_DESC= Haswell and newer radv_DESC= Southern Islands and newer (implies LLVM) COINST_DESC= Allow co-installation with another Mesa port -COINST_VARS= LLVM_DEFAULT=11 # chase intel-compute-runtime COINST_MESON_ON= -Degl-lib-suffix=${PKGNAMESUFFIX} COINST_PLIST_SUB= SUFFIX=${PKGNAMESUFFIX} COINST_SUB_FILES= libmap.conf @@ -146,6 +145,13 @@ ZSTD_DESC= Use ZSTD for shader cache ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd ZSTD_MESON_ENABLED= zstd +.include + +# Ignore Mk/bsd.default-versions.mk but respect make.conf(5) +.if !defined(DEFAULT_VERSIONS) || ! ${DEFAULT_VERSIONS:Mllvm*} +LLVM_DEFAULT= 11 # chase intel-compute-runtime +.endif + post-extract: # Work around Meson lookup order e.g., llvm-config .if defined(BINARY_ALIAS)