From 031906a2ce5cce9e13745dfb1881845aa7c9b428 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 9 Nov 2025 08:42:47 +0200 Subject: [PATCH] libmad: add compatibility with cmake 4.x Backport upstream patch for cmake 4.x compatibility. Signed-off-by: Hannu Nyman --- libs/libmad/Makefile | 2 +- libs/libmad/patches/001-cmake4-support.patch | 25 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 libs/libmad/patches/001-cmake4-support.patch diff --git a/libs/libmad/Makefile b/libs/libmad/Makefile index bdd536064b..2de1abe075 100644 --- a/libs/libmad/Makefile +++ b/libs/libmad/Makefile @@ -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 index 0000000000..0ef2f2cec1 --- /dev/null +++ b/libs/libmad/patches/001-cmake4-support.patch @@ -0,0 +1,25 @@ +From 326363f04e583b563f63941db3cf7f50e76aceb2 Mon Sep 17 00:00:00 2001 +From: Be +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 value or use a ... 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) -- 2.30.2