Build against system's libsamplerate
authorIOhannes m zmölnig <umlaeute@debian.org>
Sun, 9 Feb 2025 21:10:08 +0000 (22:10 +0100)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Sun, 9 Feb 2025 21:10:08 +0000 (22:10 +0100)
Origin: Debian
Forwarded: no
Last-Update: 2025-01-26

Last-Update: 2025-01-26
Gbp-Pq: Name libsamplerate.patch

meson.build

index d685681cd5aa23ca180bcb5fa49068900abc66b1..c43c22abe86f96e6983ec08b249b083bd2e069db 100644 (file)
@@ -354,8 +354,9 @@ if get_option('libsamplerate').allowed()
                opt_var.add_cmake_defines({'CMAKE_BUILD_TYPE': 'Debug'})
        endif
        opt_var.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'})
-       libsamplerate_subproject = cmake.subproject('libsamplerate', options: opt_var)
-       libsamplerate_dep = libsamplerate_subproject.dependency('samplerate')
+       #libsamplerate_subproject = cmake.subproject('libsamplerate', options: opt_var)
+       #libsamplerate_dep = libsamplerate_subproject.dependency('samplerate')
+       libsamplerate_dep = dependency('samplerate', required: get_option('libsamplerate'))
        found_libsamplerate = libsamplerate_dep.found()
        if not found_libsamplerate and not get_option('libsamplerate').auto()
                error('failed to configure libsamplerate')