git: f459ac9cd5ac - main - graphics/dspdfviewer: Add compatibility for CMake 4

From: Santhosh Raju <fox_at_FreeBSD.org>
Date: Sun, 30 Aug 2026 19:24:05 UTC
The branch main has been updated by fox:

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

commit f459ac9cd5ac19323f66f8b9ce84df820fdd82cd
Author:     Santhosh Raju <fox@FreeBSD.org>
AuthorDate: 2026-08-30 19:21:35 +0000
Commit:     Santhosh Raju <fox@FreeBSD.org>
CommitDate: 2026-08-30 19:23:42 +0000

    graphics/dspdfviewer: Add compatibility for CMake 4
    
    PR:             297966
    Tested by:      Gleb Popov <arrowd@FreeBSD.org>
---
 graphics/dspdfviewer/Makefile                   |  2 +-
 graphics/dspdfviewer/files/patch-CMakeLists.txt | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/graphics/dspdfviewer/Makefile b/graphics/dspdfviewer/Makefile
index 75c356e997ea..279bc695a9b6 100644
--- a/graphics/dspdfviewer/Makefile
+++ b/graphics/dspdfviewer/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	dspdfviewer
 PORTVERSION=	1.15.1
 DISTVERSIONPREFIX=	v
-PORTREVISION=	77
+PORTREVISION=	78
 CATEGORIES=	graphics
 
 MAINTAINER=	fox@FreeBSD.org
diff --git a/graphics/dspdfviewer/files/patch-CMakeLists.txt b/graphics/dspdfviewer/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..72e06873bd45
--- /dev/null
+++ b/graphics/dspdfviewer/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+Add compatibility for CMake 4
+
+--- CMakeLists.txt.orig	2026-08-27 18:55:50 UTC
++++ CMakeLists.txt
+@@ -16,7 +16,7 @@
+ #     with this program; if not, write to the Free Software Foundation, Inc.,
+ #     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ # */
+-cmake_minimum_required(VERSION 2.8.4 FATAL_ERROR)
++cmake_minimum_required(VERSION 3.5.2 FATAL_ERROR)
+ if( NOT CMAKE_VERSION VERSION_LESS 2.8.11)
+ 	cmake_policy(SET CMP0020 NEW) # qtmain.lib linkage on windows
+ endif()