git: 7caf3b15e34e - main - graphics/qt6-lottie: Fix configure edge case

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Tue, 30 Dec 2025 12:00:13 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7caf3b15e34e95e0558e8ac13dffa2c35ad9c6d3

commit 7caf3b15e34e95e0558e8ac13dffa2c35ad9c6d3
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-30 00:45:05 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-30 12:00:04 +0000

    graphics/qt6-lottie: Fix configure edge case
    
    If Qt5 is installed, it possible for it to be found instead of Qt6,
    which causes configuration errors for the lottietoqml tool.
    
    Reported by:    Holm Tiffe <holm@freibergnet.de> via kde-freebsd ML
---
 .../files/patch-tools_lottietoqml_CMakeLists.txt          | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/graphics/qt6-lottie/files/patch-tools_lottietoqml_CMakeLists.txt b/graphics/qt6-lottie/files/patch-tools_lottietoqml_CMakeLists.txt
new file mode 100644
index 000000000000..7fd8cf935f16
--- /dev/null
+++ b/graphics/qt6-lottie/files/patch-tools_lottietoqml_CMakeLists.txt
@@ -0,0 +1,15 @@
+Remove unneeded find_package calls for Qt components. Oddly enough, Qt5
+could potentially be found and cause configuration errors.
+
+--- tools/lottietoqml/CMakeLists.txt.orig	2025-11-13 20:37:09 UTC
++++ tools/lottietoqml/CMakeLists.txt
+@@ -5,9 +5,6 @@
+ ## lottietoqml Tool:
+ #####################################################################
+ 
+-find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS QuickVectorImageGeneratorPrivate)
+-find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS QuickVectorImageGeneratorPrivate)
+-
+ qt_get_tool_target_name(target_name lottietoqml)
+ qt_internal_add_tool(${target_name}
+     TARGET_DESCRIPTION "Lottie to QML Converter"