git: 9643d381cc76 - main - science/paraview: really fix with CMake 4.5.0

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Thu, 08 Oct 2026 10:34:07 UTC
The branch main has been updated by thierry:

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

commit 9643d381cc763601c927d65b10463b6513201936
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2026-10-08 10:31:23 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2026-10-08 10:34:01 +0000

    science/paraview: really fix with CMake 4.5.0
    
    PR:             299184
---
 science/paraview/Makefile                                     |  1 +
 science/paraview/files/patch-CMake_CheckFortran.cmake         | 11 +++++++++++
 .../paraview/files/patch-Qt_Core_pqServerConfiguration.cxx    |  4 ++--
 .../files/patch-VTK_ThirdParty_fast__float_CMakeLists.txt     |  4 ++--
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/science/paraview/Makefile b/science/paraview/Makefile
index ba621e9198b5..65d87460e389 100644
--- a/science/paraview/Makefile
+++ b/science/paraview/Makefile
@@ -107,6 +107,7 @@ CMAKE_ARGS+=	-DCMAKE_CXX_STANDARD=17 \
 		-DVTK_USE_X:BOOL=ON \
 		-DExternalData_OBJECT_STORES="${WRKDIR}/VTK/ExternalData/MD5" \
 		-DFREETYPE_INCLUDE_DIRS="${LOCALBASE}/include/freetype2"
+CMAKE_ARGS+=	-DCMAKE_POLICY_VERSION_MINIMUM:STRING=3.5	# CMake 4.5 compatibility
 CONFIGURE_ENV=	ANARI_LIBRARY=helide
 # TODO: port Viskores - https://viskores.org/
 CMAKE_ARGS+=	-DPARAVIEW_USE_VISKORES:BOOL=OFF
diff --git a/science/paraview/files/patch-CMake_CheckFortran.cmake b/science/paraview/files/patch-CMake_CheckFortran.cmake
new file mode 100644
index 000000000000..67b42f27a9ba
--- /dev/null
+++ b/science/paraview/files/patch-CMake_CheckFortran.cmake
@@ -0,0 +1,11 @@
+--- CMake/CheckFortran.cmake.orig	2026-09-29 17:25:09 UTC
++++ CMake/CheckFortran.cmake
+@@ -9,7 +9,7 @@ function (check_fortran_support)
+   message(STATUS "${_desc}")
+   file(REMOVE_RECURSE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CheckFortran")
+   file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CheckFortran/CMakeLists.txt"
+-    "cmake_minimum_required(VERSION 3.3)
++    "cmake_minimum_required(VERSION 3.5)
+ project(CheckFortran Fortran)
+ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
+ \"set(CMAKE_Fortran_COMPILER \\\"\${CMAKE_Fortran_COMPILER}\\\")\\n\"
diff --git a/science/paraview/files/patch-Qt_Core_pqServerConfiguration.cxx b/science/paraview/files/patch-Qt_Core_pqServerConfiguration.cxx
index c442846adb98..83bc3204ad6e 100644
--- a/science/paraview/files/patch-Qt_Core_pqServerConfiguration.cxx
+++ b/science/paraview/files/patch-Qt_Core_pqServerConfiguration.cxx
@@ -1,6 +1,6 @@
---- Qt/Core/pqServerConfiguration.cxx.orig	2025-09-25 09:24:50 UTC
+--- Qt/Core/pqServerConfiguration.cxx.orig	2026-09-29 17:25:09 UTC
 +++ Qt/Core/pqServerConfiguration.cxx
-@@ -214,7 +214,7 @@ QString pqServerConfiguration::termCommand()
+@@ -201,7 +201,7 @@ QString pqServerConfiguration::termCommand()
  //-----------------------------------------------------------------------------
  QString pqServerConfiguration::termCommand()
  {
diff --git a/science/paraview/files/patch-VTK_ThirdParty_fast__float_CMakeLists.txt b/science/paraview/files/patch-VTK_ThirdParty_fast__float_CMakeLists.txt
index a8035342529d..fe5b13459484 100644
--- a/science/paraview/files/patch-VTK_ThirdParty_fast__float_CMakeLists.txt
+++ b/science/paraview/files/patch-VTK_ThirdParty_fast__float_CMakeLists.txt
@@ -1,6 +1,6 @@
---- VTK/ThirdParty/fast_float/CMakeLists.txt.orig	2026-05-22 16:18:17 UTC
+--- VTK/ThirdParty/fast_float/CMakeLists.txt.orig	2026-09-29 17:25:09 UTC
 +++ VTK/ThirdParty/fast_float/CMakeLists.txt
-@@ -13,7 +13,6 @@ vtk_module_third_party(
+@@ -21,7 +21,6 @@ vtk_module_third_party(
      STANDARD_INCLUDE_DIRS
      HEADER_ONLY
    EXTERNAL