portaudio: adjust for cmake 4.0 compatibility
authorHannu Nyman <[email protected]>
Sun, 9 Nov 2025 16:55:46 +0000 (18:55 +0200)
committerHannu Nyman <[email protected]>
Sun, 9 Nov 2025 20:09:58 +0000 (22:09 +0200)
Adjust CMakeLists.txt for compatibility with cmake 4.x

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

index 2e1144664a98f3df329b94b05fb14513fcc4a94b..1f1239c94fdf904f1fb488381cec3ba8b8eec356 100644 (file)
@@ -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 (file)
index 0000000..da7069f
--- /dev/null
@@ -0,0 +1,23 @@
+From f4cecb1e26a97f2b5b0405a316e1d05a907baf37 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <[email protected]>
+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