From 1593a823eff50cf8ae1ce34593c71ee11d910994 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 9 Nov 2025 18:55:46 +0200 Subject: [PATCH] portaudio: adjust for cmake 4.0 compatibility Adjust CMakeLists.txt for compatibility with cmake 4.x Signed-off-by: Hannu Nyman --- sound/portaudio/Makefile | 2 +- sound/portaudio/patches/001-cmake4.patch | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 sound/portaudio/patches/001-cmake4.patch diff --git a/sound/portaudio/Makefile b/sound/portaudio/Makefile index 2e1144664a..1f1239c94f 100644 --- a/sound/portaudio/Makefile +++ b/sound/portaudio/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=portaudio PKG_VERSION:=19.7.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/PortAudio/portaudio diff --git a/sound/portaudio/patches/001-cmake4.patch b/sound/portaudio/patches/001-cmake4.patch new file mode 100644 index 0000000000..da7069ff95 --- /dev/null +++ b/sound/portaudio/patches/001-cmake4.patch @@ -0,0 +1,23 @@ +From f4cecb1e26a97f2b5b0405a316e1d05a907baf37 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= +Date: Fri, 17 Oct 2025 01:29:46 +0200 +Subject: [PATCH] [cmake] Increase minimum required version of CMake to 3.10 + (#1013) + +CMake 3.31 and newer warn that versions older than 3.10 are deprecated. +[context modified] +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -4,7 +4,7 @@ + # http://www.portaudio.com/trac/wiki/TutorialDir/Compile/CMake + # + +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8) ++cmake_minimum_required(VERSION 3.10) + + # Check if the user is building PortAudio stand-alone or as part of a larger + # project. If this is part of a larger project (i.e. the CMakeLists.txt has -- 2.30.2