git: ef8d58bfe7db - main - emulators/pcsx2: Prepare for Qt 6.10

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Fri, 05 Dec 2025 01:04:25 UTC
The branch main has been updated by jhale:

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

commit ef8d58bfe7dbb7981107829403ee25e4330b3e03
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-04 23:44:58 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-05 01:03:38 +0000

    emulators/pcsx2: Prepare for Qt 6.10
    
    Backport upstream patch to fix build with Qt 6.10.
    
    With hat:       kde@
---
 emulators/pcsx2/files/patch-cmake-SearchForStuff.cmake | 17 ++++++++++++++++-
 emulators/pcsx2/files/patch-pcsx2-qt_CMakeLists.txt    | 14 ++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/emulators/pcsx2/files/patch-cmake-SearchForStuff.cmake b/emulators/pcsx2/files/patch-cmake-SearchForStuff.cmake
index e67cb027fb7f..78085c60ee3c 100644
--- a/emulators/pcsx2/files/patch-cmake-SearchForStuff.cmake
+++ b/emulators/pcsx2/files/patch-cmake-SearchForStuff.cmake
@@ -1,4 +1,8 @@
---- cmake/SearchForStuff.cmake.orig	2025-06-23 10:47:03 UTC
+Backport [1] to fix build with Qt 6.10.
+
+[1] https://github.com/PCSX2/pcsx2/commit/8dffc857079e942ca77b091486c20c3c6530e4ed
+
+--- cmake/SearchForStuff.cmake.orig	2025-06-29 19:47:12 UTC
 +++ cmake/SearchForStuff.cmake
 @@ -1,6 +1,8 @@
  #-------------------------------------------------------------------------------
@@ -9,3 +13,14 @@
  find_package(Git)
  
  # Require threads on all OSes.
+@@ -108,6 +110,10 @@ find_package(Qt6 6.7.3 COMPONENTS CoreTools Core GuiTo
+ 
+ # Find the Qt components that we need.
+ find_package(Qt6 6.7.3 COMPONENTS CoreTools Core GuiTools Gui WidgetsTools Widgets LinguistTools REQUIRED)
++
++if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
++	find_package(Qt6 COMPONENTS GuiPrivate REQUIRED)
++endif()
+ 
+ if(WIN32)
+   add_subdirectory(3rdparty/rainterface EXCLUDE_FROM_ALL)
diff --git a/emulators/pcsx2/files/patch-pcsx2-qt_CMakeLists.txt b/emulators/pcsx2/files/patch-pcsx2-qt_CMakeLists.txt
new file mode 100644
index 000000000000..859962dfd714
--- /dev/null
+++ b/emulators/pcsx2/files/patch-pcsx2-qt_CMakeLists.txt
@@ -0,0 +1,14 @@
+Back port [1] to fix build with Qt 6.10.
+
+[1] https://github.com/PCSX2/pcsx2/commit/8dffc857079e942ca77b091486c20c3c6530e4ed
+
+--- pcsx2-qt/CMakeLists.txt.orig	2025-06-29 19:47:12 UTC
++++ pcsx2-qt/CMakeLists.txt
+@@ -265,6 +265,7 @@ target_link_libraries(pcsx2-qt PRIVATE
+ 	PCSX2
+ 	Qt6::Core
+ 	Qt6::Gui
++	Qt6::GuiPrivate
+ 	Qt6::Widgets
+ 	KDAB::kddockwidgets
+ )