diff options
Diffstat (limited to 'devel/qt6-tools/Makefile')
-rw-r--r-- | devel/qt6-tools/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/devel/qt6-tools/Makefile b/devel/qt6-tools/Makefile index f698e7729c97..63b3deb3d8df 100644 --- a/devel/qt6-tools/Makefile +++ b/devel/qt6-tools/Makefile @@ -10,14 +10,22 @@ BUILD_DEPENDS= ${LOCALBASE}/include/vulkan/vulkan.h:graphics/vulkan-headers LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \ libzstd.so:archivers/zstd -USES= cmake compiler:c++17-lang gl llvm:min=17,lib,noexport python:build \ - qt-dist:6 +USES= cmake compiler:c++17-lang gl llvm:min=17,max=20,lib,noexport \ + python:build qt-dist:6 USE_GL= opengl USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL} USE_QT= base declarative sqldriver-sqlite:run -CMAKE_ARGS+= -DClang_DIR:PATH="${LLVM_PREFIX}/lib/cmake/clang" \ - -DLLVM_DIR:PATH="${LLVM_PREFIX}/lib/cmake/llvm" +# QDOC_USER_CLANG_VERSION is an unofficial CMake variable intended to override +# the list of supported LLVM versions, i.e., QDOC_SUPPORTED_CLANG_VERSIONS in +# .cmake.conf with the chosen version of LLVM. We must be careful here and adjust +# llvm min/max in USES to align with the versions of LLVM that future releases +# support. LLVM_VERSION only provides the major version, but at least the minor +# version must also be passed, hence the use of "black magic" to determine this +# value, which does not respect relative paths. +CMAKE_ARGS= -DClang_DIR:PATH="${LLVM_PREFIX}/lib/cmake/clang" \ + -DLLVM_DIR:PATH="${LLVM_PREFIX}/lib/cmake/llvm" \ + -DQDOC_USER_CLANG_VERSION:STRING="`${MAKE} -C ${PORTSDIR}/devel/llvm${LLVM_VERSION} -VDISTVERSION:R`" post-install: # Install symlinks for user-facing tools |