libnatpmp: adjust for cmake 4.x compatibility
authorAndy Chiang <[email protected]>
Mon, 10 Nov 2025 01:26:56 +0000 (08:26 +0700)
committerHannu Nyman <[email protected]>
Mon, 10 Nov 2025 08:35:35 +0000 (10:35 +0200)
Adjust for cmake 4.x compatibility

fixes: #27816

Signed-off-by: Andy Chiang <[email protected]>
libs/libnatpmp/Makefile
libs/libnatpmp/patches/001-cmake4.patch [new file with mode: 0644]

index 008f21b1e91bfae6ce262af0050439bab761d5e7..cb6da13fccf7d724c90bd7fa18844a201ff51603 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libnatpmp
 PKG_VERSION:=20230423
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
diff --git a/libs/libnatpmp/patches/001-cmake4.patch b/libs/libnatpmp/patches/001-cmake4.patch
new file mode 100644 (file)
index 0000000..16b3317
--- /dev/null
@@ -0,0 +1,20 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Andy Chiang <[email protected]>
+Date: Mon, 10 Nov 2025 08:40:56 +0700
+Subject: [PATCH] cmake: adjust for cmake 4.x compatibility
+
+Adjust for cmake 4.x compatibility
+
+Signed-off-by: Andy Chiang <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 2.8.12)
++cmake_minimum_required(VERSION 3.10)
+ if(POLICY CMP0048)
+       cmake_policy(SET CMP0048 NEW)