Refresh RtAudio patch
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 16 Dec 2021 16:32:55 +0000 (17:32 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 16 Dec 2021 16:32:55 +0000 (17:32 +0100)
debian/patches/03-system-rtaudio.patch

index b34f3cb0dff4d82203656625214b6a2e0cf31099..95f02acfba2bf6b777cae1fe3fdfc3849d3ed018 100644 (file)
@@ -56,3 +56,36 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  #include <functional>
  #include <memory>
  #include <string>
+--- 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()