aports/testing/jacktrip/805a3965c164201e501350fbdb32685984e73eb8.patch
Hugo Osvaldo Barrera 80d097b146 testing/jacktrip: new aport
Server and client for audio-video calls focused on sound quality and low
latency. It is intended for music practice sessions (or lessons) over
the Internet.
2025-04-17 22:50:55 +00:00

45 lines
1.5 KiB
Diff

From 805a3965c164201e501350fbdb32685984e73eb8 Mon Sep 17 00:00:00 2001
From: Nils Tonnaett <ntonnatt@ccrma.stanford.edu>
Date: Thu, 16 Jan 2025 22:09:20 -0800
Subject: [PATCH] meson: support libsamplerate as system dependency
See: https://github.com/jacktrip/jacktrip/pull/1375
Patch-Source: https://github.com/jacktrip/jacktrip/commit/805a3965c164201e501350fbdb32685984e73eb8.patch
---
meson.build | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/meson.build b/meson.build
index 8625f4f4f..48ef30b00 100644
--- a/meson.build
+++ b/meson.build
@@ -343,9 +343,10 @@ if rtaudio_dep.found() == false and jack_dep.found() == false
configure.''')
endif
-libsamplerate_dep = []
-found_libsamplerate = false
-if get_option('libsamplerate').allowed()
+libsamplerate_dep = dependency('samplerate', required: get_option('libsamplerate'))
+found_libsamplerate = libsamplerate_dep.found()
+
+if get_option('libsamplerate').allowed() and found_libsamplerate == false
opt_var = cmake.subproject_options()
if get_option('buildtype') == 'release'
opt_var.add_cmake_defines({'CMAKE_BUILD_TYPE': 'Release'})
@@ -359,10 +360,11 @@ if get_option('libsamplerate').allowed()
if not found_libsamplerate and not get_option('libsamplerate').auto()
error('failed to configure libsamplerate')
endif
- if found_libsamplerate
- defines += '-DHAVE_LIBSAMPLERATE'
- deps += libsamplerate_dep
- endif
+endif
+
+if found_libsamplerate
+ defines += '-DHAVE_LIBSAMPLERATE'
+ deps += libsamplerate_dep
endif
if host_machine.system() == 'darwin'