From fca1eff295c0a3272a1a8ac244ce8a2df52b1d2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig=20=28Debian/GNU=29?= Date: Thu, 16 Dec 2021 17:32:55 +0100 Subject: [PATCH] Refresh RtAudio patch --- debian/patches/03-system-rtaudio.patch | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/debian/patches/03-system-rtaudio.patch b/debian/patches/03-system-rtaudio.patch index b34f3cb..95f02ac 100644 --- a/debian/patches/03-system-rtaudio.patch +++ b/debian/patches/03-system-rtaudio.patch @@ -56,3 +56,36 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ #include #include #include +--- giada.orig/CMakeLists.txt ++++ giada/CMakeLists.txt +@@ -196,7 +196,6 @@ + src/utils/fs.cpp + src/utils/ver.cpp + src/utils/string.cpp +- src/deps/rtaudio/RtAudio.cpp + src/deps/mcl-audio-buffer/src/audioBuffer.cpp) + + list(APPEND PREPROCESSOR_DEFS) +@@ -286,6 +285,15 @@ + endif() + endif() + ++if (PkgConfig_FOUND) ++ pkg_check_modules(RtAudio IMPORTED_TARGET rtaudio) ++ if (RtAudio_FOUND) ++ list(APPEND LIBRARIES PkgConfig::RtAudio) ++ message("RtAudio library found") ++ endif() ++endif() ++ ++ + if (NOT RtMidi_FOUND) + # Fallback to find_library mode (in case rtmidi is too old). + find_library(LIBRARY_RTMIDI NAMES rtmidi) +@@ -581,4 +589,4 @@ + set_target_properties(giada PROPERTIES + XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES) + +-endif() +\ No newline at end of file ++endif() -- 2.30.2