From 3fadf4807c4d1eea366f1c3d25097e56468e12d9 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 4 Oct 2024 05:55:54 +0530 Subject: [PATCH] lame: Disable tools when using the fallback subproject This saves time when building, since we don't use the tools. Particularly on macOS, due to a macOS bug, Meson picks up an invalid ncurses-config binary and incorrectly detects the presence of ncurses, causing a build failure. This is fixed in the latest meson: https://github.com/mesonbuild/meson/pull/13715 Part-of: --- subprojects/gst-plugins-good/ext/lame/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/lame/meson.build b/subprojects/gst-plugins-good/ext/lame/meson.build index 7820a801d8..60fa2c9108 100644 --- a/subprojects/gst-plugins-good/ext/lame/meson.build +++ b/subprojects/gst-plugins-good/ext/lame/meson.build @@ -16,7 +16,8 @@ if have_lame lame_extra_c_args += ['-DGSTLAME_PRESET'] endif else - lame_dep = dependency('mp3lame', fallback: ['lame', 'lame_dep'], required: lame_option) + lame_dep = dependency('mp3lame', allow_fallback: true, required: lame_option, + default_options: ['tools=disabled']) have_lame = lame_dep.found() lame_extra_c_args += ['-DHAVE_LAME_SET_VBR_QUALITY', '-DGSTLAME_PRESET', '-DLAME_SUBPROJECT'] endif