mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 05:16:12 +02:00
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.
45 lines
1.5 KiB
Diff
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'
|