summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-07-04 09:13:52 +0200
committerSam James <sam@gentoo.org>2021-07-10 18:28:37 +0100
commit344ee7452c0efcf5eb96510d6e2a080f9f3c3ed5 (patch)
treee475d29d978b09a26fdbbbed08dfc48cacf4ca37 /eclass
parentmedia-plugins/gst-plugins-opencv: Bump opencv version limit on 1.18.4 (diff)
downloadgentoo-344ee7452c0efcf5eb96510d6e2a080f9f3c3ed5.tar.gz
gentoo-344ee7452c0efcf5eb96510d6e2a080f9f3c3ed5.tar.bz2
gentoo-344ee7452c0efcf5eb96510d6e2a080f9f3c3ed5.zip
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@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/21513 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gstreamer-meson.eclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/eclass/gstreamer-meson.eclass b/eclass/gstreamer-meson.eclass
index 421227f412fb..ee97de9a050c 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