Module Name: pkgsrc
Committed By: ryoon
Date: Sun Feb 1 08:52:26 UTC 2026
Modified Files:
pkgsrc/graphics/libgdiplus: Makefile distinfo
Added Files:
pkgsrc/graphics/libgdiplus/patches:
patch-external_googletest_CMakeLists.txt
patch-external_googletest_googlemock_CMakeLists.txt
patch-external_googletest_googletest_CMakeLists.txt
Log Message:
graphics/libgdiplus: Add cmake as tools and fix build with CMake 4
* Bump PKGREVISION by tools change.
To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 pkgsrc/graphics/libgdiplus/Makefile
cvs rdiff -u -r1.46 -r1.47 pkgsrc/graphics/libgdiplus/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_CMakeLists.txt \
pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googlemock_CMakeLists.txt \
pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googletest_CMakeLists.txt
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/libgdiplus/Makefile
diff -u pkgsrc/graphics/libgdiplus/Makefile:1.99 pkgsrc/graphics/libgdiplus/Makefile:1.100
--- pkgsrc/graphics/libgdiplus/Makefile:1.99 Tue Jan 27 08:39:44 2026
+++ pkgsrc/graphics/libgdiplus/Makefile Sun Feb 1 08:52:26 2026
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.99 2026/01/27 08:39:44 wiz Exp $
+# $NetBSD: Makefile,v 1.100 2026/02/01 08:52:26 ryoon Exp $
DISTNAME= libgdiplus-6.1
-PKGREVISION= 12
+PKGREVISION= 13
CATEGORIES= graphics
MASTER_SITES= https://download.mono-project.com/sources/libgdiplus/
@@ -11,7 +11,7 @@ COMMENT= Implementation of the GDI+ API
LICENSE= mit
USE_PKGLOCALEDIR= yes
-USE_TOOLS+= autoconf gmake pkg-config
+USE_TOOLS+= autoconf cmake gmake pkg-config
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
PKGCONFIG_OVERRIDE+= libgdiplus.pc.in
Index: pkgsrc/graphics/libgdiplus/distinfo
diff -u pkgsrc/graphics/libgdiplus/distinfo:1.46 pkgsrc/graphics/libgdiplus/distinfo:1.47
--- pkgsrc/graphics/libgdiplus/distinfo:1.46 Sun Nov 7 12:11:32 2021
+++ pkgsrc/graphics/libgdiplus/distinfo Sun Feb 1 08:52:26 2026
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.46 2021/11/07 12:11:32 wiz Exp $
+$NetBSD: distinfo,v 1.47 2026/02/01 08:52:26 ryoon Exp $
BLAKE2s (libgdiplus-6.1.tar.gz) = 83286c2d7dd80caa242837b3707d78c156841d5a751bd582893366229265be25
SHA512 (libgdiplus-6.1.tar.gz) = 7f176d38024d5bde4a825ad00b907006f7dd3ff174e12aba6e91df0b624431cc9b536f1bcf206998bad11f6d03e6fe5122710591f58877de0f2c08e8cb4e46cd
Size (libgdiplus-6.1.tar.gz) = 2336123 bytes
+SHA1 (patch-external_googletest_CMakeLists.txt) = e6da6d21447cf7e361fab0ce5857a65f07503bef
+SHA1 (patch-external_googletest_googlemock_CMakeLists.txt) = 4c5f35382229aa525988e734fa7f2aadba6e9758
+SHA1 (patch-external_googletest_googletest_CMakeLists.txt) = 66991f2814ebd3fc3cd73c5ee52d714f8bd31e43
Added files:
Index: pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_CMakeLists.txt
diff -u /dev/null pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_CMakeLists.txt:1.1
--- /dev/null Sun Feb 1 08:52:26 2026
+++ pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_CMakeLists.txt Sun Feb 1 08:52:26 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-external_googletest_CMakeLists.txt,v 1.1 2026/02/01 08:52:26 ryoon Exp $
+
+--- external/googletest/CMakeLists.txt.orig 2025-08-29 07:54:28.617709662 +0000
++++ external/googletest/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ # Note: CMake support is community-based. The maintainers do not use CMake
+ # internally.
+
+-cmake_minimum_required(VERSION 2.8.8)
++cmake_minimum_required(VERSION 3.5)
+
+ if (POLICY CMP0048)
+ cmake_policy(SET CMP0048 NEW)
Index: pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googlemock_CMakeLists.txt
diff -u /dev/null pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googlemock_CMakeLists.txt:1.1
--- /dev/null Sun Feb 1 08:52:26 2026
+++ pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googlemock_CMakeLists.txt Sun Feb 1 08:52:26 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-external_googletest_googlemock_CMakeLists.txt,v 1.1 2026/02/01 08:52:26 ryoon Exp $
+
+--- external/googletest/googlemock/CMakeLists.txt.orig 2025-08-29 07:56:10.837281547 +0000
++++ external/googletest/googlemock/CMakeLists.txt
+@@ -42,7 +42,7 @@ else()
+ cmake_policy(SET CMP0048 NEW)
+ project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
+ endif()
+-cmake_minimum_required(VERSION 2.6.4)
++cmake_minimum_required(VERSION 3.5)
+
+ if (COMMAND set_up_hermetic_build)
+ set_up_hermetic_build()
Index: pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googletest_CMakeLists.txt
diff -u /dev/null pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googletest_CMakeLists.txt:1.1
--- /dev/null Sun Feb 1 08:52:26 2026
+++ pkgsrc/graphics/libgdiplus/patches/patch-external_googletest_googletest_CMakeLists.txt Sun Feb 1 08:52:26 2026
@@ -0,0 +1,13 @@
+$NetBSD: patch-external_googletest_googletest_CMakeLists.txt,v 1.1 2026/02/01 08:52:26 ryoon Exp $
+
+--- external/googletest/googletest/CMakeLists.txt.orig 2025-08-29 07:56:36.370210898 +0000
++++ external/googletest/googletest/CMakeLists.txt
+@@ -53,7 +53,7 @@ else()
+ cmake_policy(SET CMP0048 NEW)
+ project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
+ endif()
+-cmake_minimum_required(VERSION 2.6.4)
++cmake_minimum_required(VERSION 3.5)
+
+ if (POLICY CMP0063) # Visibility
+ cmake_policy(SET CMP0063 NEW)