diff options
Diffstat (limited to 'devel/qt6-tools/Makefile')
-rw-r--r-- | devel/qt6-tools/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/devel/qt6-tools/Makefile b/devel/qt6-tools/Makefile index 63b3deb3d8df..706786478908 100644 --- a/devel/qt6-tools/Makefile +++ b/devel/qt6-tools/Makefile @@ -10,22 +10,24 @@ 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,max=20,lib,noexport \ +USES= cmake compiler:c++17-lang gl llvm:min=17,max=21,lib,noexport \ python:build qt-dist:6 USE_GL= opengl USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL} USE_QT= base declarative sqldriver-sqlite:run -# 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`" + -DLLVM_DIR:PATH="${LLVM_PREFIX}/lib/cmake/llvm" +# QDOC_USER_CLANG_VERSION is a custom CMake variable intended to override the +# list of supported LLVM versions, i.e., QDOC_SUPPORTED_CLANG_VERSIONS in +# src/qdoc/cmake/QDocConfiguration.cmake with the chosen version of LLVM. +# Otherwise, the numerically greatest version found would be used. We must be +# careful here and adjust llvm min/max in USES to align with the versions +# of LLVM that future releases support. We also need to supply at least a +# major.minor version of llvm for this variable. Since LLVM_VERSION only provides +# the major version, we pass the full version via a command and let CMake process +# it during the configure stage. +CMAKE_ARGS+= -DQDOC_USER_CLANG_VERSION:STRING="`${LLVM_CONFIG} --version`" post-install: # Install symlinks for user-facing tools |