libmad: add patch from upstream for cmake compatibility

This commit is contained in:
Joachim Mairböck
2025-08-24 14:59:17 +02:00
parent a4a9048e41
commit f6fe3b7739
2 changed files with 28 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ REVISION="1"
SOURCE_URI="https://codeberg.org/tenacityteam/libmad/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="f4eb229452252600ce48f3c2704c9e6d97b789f81e31c37b0c67dd66f445ea35"
SOURCE_DIR="libmad"
PATCHES="libmad-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

View File

@@ -0,0 +1,27 @@
From b51044d77433c46046b004c922c006a67f00e215 Mon Sep 17 00:00:00 2001
From: Be <be@mixxx.org>
Date: Wed, 14 Feb 2024 18:18:49 -0600
Subject: 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.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb701cf..9d4b842 100644
--- 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.50.1