# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(custom.GStreamer): name = 'gst-plugins-ugly-1.0' btype = BuildType.MESON tarball_checksum = '5dfdbb2978ab282e637255cd875cf5b7b93fc83db62f8a0b1af02c85c84a75c4' meson_options = {'gpl': 'enabled', # enabled plugins 'a52dec': 'enabled', 'dvdread': 'enabled', 'x264': 'enabled'} deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'a52dec', 'libdvdread', 'x264'] files_plugins_codecs_restricted = [ '%(libdir)s/gstreamer-1.0/libgsta52dec%(mext)s', '%(libdir)s/gstreamer-1.0/libgstasf%(mext)s', '%(libdir)s/gstreamer-1.0/libgstdvdsub%(mext)s', '%(libdir)s/gstreamer-1.0/libgstdvdlpcmdec%(mext)s', '%(libdir)s/gstreamer-1.0/libgstrealmedia%(mext)s', '%(libdir)s/gstreamer-1.0/libgstx264%(mext)s', ] files_plugins_codecs_restricted_devel = [ '%(libdir)s/gstreamer-1.0/libgsta52dec.a', '%(libdir)s/gstreamer-1.0/libgsta52dec.la', '%(libdir)s/gstreamer-1.0/libgstasf.a', '%(libdir)s/gstreamer-1.0/libgstasf.la', '%(libdir)s/gstreamer-1.0/libgstdvdsub.a', '%(libdir)s/gstreamer-1.0/libgstdvdsub.la', '%(libdir)s/gstreamer-1.0/libgstdvdlpcmdec.a', '%(libdir)s/gstreamer-1.0/libgstdvdlpcmdec.la', '%(libdir)s/gstreamer-1.0/libgstrealmedia.a', '%(libdir)s/gstreamer-1.0/libgstrealmedia.la', '%(libdir)s/gstreamer-1.0/libgstx264.a', '%(libdir)s/gstreamer-1.0/libgstx264.la', ] files_plugins_dvd = [ '%(libdir)s/gstreamer-1.0/libgstdvdread%(mext)s', ] files_plugins_dvd_devel = [ '%(libdir)s/gstreamer-1.0/libgstdvdread.a', '%(libdir)s/gstreamer-1.0/libgstdvdread.la', ] files_lang = ['gst-plugins-ugly-1.0'] def prepare(self): if self.config.target_platform in (Platform.ANDROID, Platform.IOS): self.disable_plugin('dvdread', 'dvd', dep='libdvdread') # Recipes that need autoreconf hang on the Windows CI if self.config.platform == Platform.WINDOWS: self.disable_plugin('dvdread', 'dvd', dep='libdvdread') self.disable_plugin('a52dec', 'codecs_restricted', dep='a52dec') if self.using_uwp(): self.disable_plugin('x264', 'codecs_restricted', dep='x264') if self.config.variants.nodebug: self.append_env('CFLAGS', '-DGST_LEVEL_MAX=GST_LEVEL_FIXME')