commit: 344ee7452c0efcf5eb96510d6e2a080f9f3c3ed5 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Sun Jul 4 07:13:52 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jul 10 17:28:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=344ee745
gstreamer-meson.eclass: Add special detection for opencv and hls - opencv is described as a library but builds & works like a plugin - hls is a regular plugin but it's option is separated into another block Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/21513 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/gstreamer-meson.eclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/eclass/gstreamer-meson.eclass b/eclass/gstreamer-meson.eclass index 421227f412f..ee97de9a050 100644 --- a/eclass/gstreamer-meson.eclass +++ b/eclass/gstreamer-meson.eclass @@ -77,6 +77,16 @@ gstreamer_get_plugins() { "/^# Feature options for plugins (with|that need) external deps$/,/^#.*$/s;^option\('([^']*)'.*;\1;p" \ "${S}/meson_options.txt" || die "Failed to extract options for plugins with external deps" ) + + # opencv and hls in gst-plugins-bad are split, can't be properly detected + if grep -q "option('opencv'" "${EMESON_SOURCE}"/meson_options.txt ; then + GST_PLUGINS_EXT_DEPS="${GST_PLUGINS_EXT_DEPS} +opencv" + fi + if grep -q "option('hls'" "${EMESON_SOURCE}"/meson_options.txt ; then + GST_PLUGINS_EXT_DEPS="${GST_PLUGINS_EXT_DEPS} +hls" + fi } # @FUNCTION: gstreamer_system_package