libmad: add compatibility with cmake 4.x
authorHannu Nyman <[email protected]>
Sun, 9 Nov 2025 06:42:47 +0000 (08:42 +0200)
committerHannu Nyman <[email protected]>
Sun, 9 Nov 2025 08:51:37 +0000 (10:51 +0200)
Backport upstream patch for cmake 4.x compatibility.

Signed-off-by: Hannu Nyman <[email protected]>
libs/libmad/Makefile
libs/libmad/patches/001-cmake4-support.patch [new file with mode: 0644]

index bdd536064b55487518fedfe9692fbc2a50966343..2de1abe07591b31c1830c3b9f25d79bc51871765 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmad
 PKG_VERSION:=0.16.4
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_VERSION:=$(PKG_VERSION)
diff --git a/libs/libmad/patches/001-cmake4-support.patch b/libs/libmad/patches/001-cmake4-support.patch
new file mode 100644 (file)
index 0000000..0ef2f2c
--- /dev/null
@@ -0,0 +1,25 @@
+From 326363f04e583b563f63941db3cf7f50e76aceb2 Mon Sep 17 00:00:00 2001
+From: Be <[email protected]>
+Date: Wed, 14 Feb 2024 18:18:49 -0600
+Subject: [PATCH] bump CMake minimum version to 3.5.0
+
+to fix warning
+
+CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
+  Compatibility with CMake < 3.5 will be removed from a future version of
+  CMake.
+
+  Update the VERSION argument <min> value or use a ...<max> suffix to tell
+  CMake that the project does not need compatibility with older versions.
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.1.0)
++cmake_minimum_required(VERSION 3.5.0)
+ project(mad VERSION 0.16.4)
+ option(BUILD_SHARED_LIBS "Build dynamic library" ON)