summaryrefslogtreecommitdiff
path: root/recipes/gst-plugins-ugly-1.0.recipe
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-02-12 10:56:23 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2019-02-12 10:56:23 +0530
commit45f7988953df20f5e39aa0e6c23c6b8c77fdd2df (patch)
treec023bd1c1db435c622136f99ca6ec5c6b645f71c /recipes/gst-plugins-ugly-1.0.recipe
parent90beb928bae2291d7f2b758505f244d2ef1253eb (diff)
gstreamer recipes: Add a helper for disabling plugins
Also stop disabling dvb on Debian Squeeze and Wheezy, they're 6+ years old and no one is testing this anymore.
Diffstat (limited to 'recipes/gst-plugins-ugly-1.0.recipe')
-rw-r--r--recipes/gst-plugins-ugly-1.0.recipe8
1 files changed, 2 insertions, 6 deletions
diff --git a/recipes/gst-plugins-ugly-1.0.recipe b/recipes/gst-plugins-ugly-1.0.recipe
index d535ab94..b9c3ba12 100644
--- a/recipes/gst-plugins-ugly-1.0.recipe
+++ b/recipes/gst-plugins-ugly-1.0.recipe
@@ -48,12 +48,8 @@ class Recipe(custom.GStreamer):
files_lang = ['gst-plugins-ugly-1.0']
def prepare(self):
- if self.config.target_platform in [ Platform.ANDROID, Platform.IOS ]:
- self.deps.remove('libdvdread')
- self.files_plugins_dvd.remove('lib/gstreamer-1.0/libgstdvdread%(mext)s')
- self.files_plugins_dvd_devel.remove('lib/gstreamer-1.0/libgstdvdread.la')
- self.files_plugins_dvd_devel.remove('lib/gstreamer-1.0/libgstdvdread.a')
- self.meson_options['dvdread'] = 'disabled'
+ if self.config.target_platform in (Platform.ANDROID, Platform.IOS):
+ self.disable_plugin('dvdread', 'dvd', dep='libdvdread')
if self.config.variants.nodebug:
self.append_env('CFLAGS', '-DGST_LEVEL_MAX=GST_LEVEL_FIXME')