git: f8aebfbacefc - main - graphics/nvidia-texture-tools: fix compatibility with CMake 4

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 22 Sep 2026 16:59:12 UTC
The branch main has been updated by amdmi3:

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

commit f8aebfbacefca46e69f32a38ee3fb4fda55cc188
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2026-09-22 16:57:35 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2026-09-22 16:59:04 +0000

    graphics/nvidia-texture-tools: fix compatibility with CMake 4
    
    PR:             298744
    Reported by:    arrowd
---
 graphics/nvidia-texture-tools/files/patch-CMakeLists.txt | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/graphics/nvidia-texture-tools/files/patch-CMakeLists.txt b/graphics/nvidia-texture-tools/files/patch-CMakeLists.txt
index 2fe1e849840b..b06985bddc6c 100644
--- a/graphics/nvidia-texture-tools/files/patch-CMakeLists.txt
+++ b/graphics/nvidia-texture-tools/files/patch-CMakeLists.txt
@@ -1,15 +1,21 @@
 --- CMakeLists.txt.orig	2020-08-24 06:27:21 UTC
 +++ CMakeLists.txt
-@@ -28,12 +28,6 @@ ADD_SUBDIRECTORY(extern)
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.31.12)
+ PROJECT(NV)
+ ENABLE_TESTING()
  
- ADD_SUBDIRECTORY(src)
+@@ -27,12 +27,6 @@ ADD_SUBDIRECTORY(src)
+ ADD_SUBDIRECTORY(extern)
  
+ ADD_SUBDIRECTORY(src)
+-
 -# These files should only be installed when creating packages.
 -INSTALL(FILES 
 -	LICENSE
 -	README.md
 -	DESTINATION share/doc/nvtt)
--
+ 
  # Add packaging support
  INCLUDE(InstallRequiredSystemLibraries)
-