# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python class Recipe(custom.GStreamerStatic): name = 'gst-plugins-bad-1.0-static' version = '1.0' gstreamer_version = '1.0' licenses = [License.LGPLv2Plus] extra_configure_options = "--enable-static --disable-gsm --disable-examples --disable-camerabin --disable-festival --disable-freeze --disable-h264parse --disable-inter --disable-legacyresample --disable-mpegvideoparse --disable-videomaxrate --disable-bz2 --disable-decklink --disable-linsys --disable-fbdev --disable-apexsink --disable-celt --disable-curl --disable-dc1394 --disable-directfb --disable-dirac --disable-divx --disable-faac --disable-flite --disable-gme --disable-ladspa --disable-lv2 --disable-mimic --disable-modplug --disable-mpeg2enc --disable-mplex --disable-musepack --disable-musicbrainz --disable-mythtv --disable-nas --disable-neon --disable-ofa --disable-openal --disable-opencv --disable-pvr --disable-sdl --disable-sndfile --disable-soundtouch --disable-spandsp --disable-swfdec --disable-teletextdec --disable-timidity --disable-vdpau --disable-voaacenc --disable-voamrwbenc --disable-wildmidi --disable-xvid --disable-zbar --disable-sdi --disable-cog" commit = 'upstream/master' deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'bzip2', 'libass', 'faad2', 'libkate', 'zlib', 'opus', 'schroedinger', 'libdca', 'libmms', 'libdvdnav', 'soundtouch' ] files_plugins_effects_devel = [ 'libgstautoconvert', 'libgstbayer', 'libgstcoloreffects', 'libgstfieldanalysis', 'libgstfrei0r', 'libgstgaudieffects', 'libgstgeometrictransform', 'libgstinterlace', 'libgstliveadder', 'libgstrawparse', 'libgstremovesilence', 'libgstscaletempoplugin', 'libgstsegmentclip', 'libgstsmooth', 'libgstspeed', ] files_plugins_codecs_devel = [ 'libgstadpcmdec', 'libgstadpcmenc', 'libgstdtmf', 'libgstdvbsuboverlay', 'libgstdvdspu', 'libgstfragmented', 'libgstid3tag', 'libgstopus', 'libgstpcapparse', 'libgstpnm', 'libgstschro', 'libgstsiren', 'libgstsubenc', 'libgstvideoparsersbad', 'libgsty4mdec', ] platform_files_plugins_codecs_devel = { Platform.ANDROID: [ 'libgstandroidmedia', ] } files_plugins_codecs_gpl_devel = [ 'libgstassrender', ] files_plugins_codecs_restricted_devel = [ 'libgstasfmux', 'libgstdtsdec', 'libgstfaad', 'libgstmpegpsdemux', 'libgstmpegpsmux', 'libgstmpegtsdemux', 'libgstmpegtsmux', ] files_plugins_dvd_devel = [ 'libgstresindvd', ] files_plugins_net_devel = [ 'libgstdataurisrc', 'libgstsdpelem', ] files_plugins_net_restricted_devel = [ 'libgstmms', ] files_plugins_capture_devel = [ 'libgstcamerabin2', ] platform_files_plugins_capture_devel = { Platform.LINUX: [ 'libgstdvb', ], Platform.WINDOWS: [ ] } files_plugins_vis_devel = [ 'libgstaudiovisualizers', ] platform_files_plugins_sys_devel = { Platform.LINUX: [ ], Platform.WINDOWS: [ 'libgstd3dvideosink', ], Platform.DARWIN: [ 'libgstapplemedia', 'libgstapplemedia_nonpublic', ], Platform.IOS: [ 'libgsteglglessink', 'libgstapplemedia', 'libgstapplemedia_nonpublic', ], Platform.ANDROID: [ 'libgsteglglessink', 'libgstopensles', ] } def prepare(self): self.append_env['CFLAGS'] = " -Wno-error " self.append_env['CXXFLAGS'] = " -Wno-error " self.append_env['CPPFLAGS'] = " -Wno-error " if self.config.target_platform != Platform.LINUX: self.configure_options += '--disable-gtk-doc ' if self.config.target_platform == Platform.WINDOWS: self.configure_options += \ ' --disable-cog --disable-sdl '\ '--disable-cdaudio' if self.config.target_platform == Platform.ANDROID: for d in ['libdvdnav']: self.deps.remove(d) self.files_plugins_dvd_devel.remove('libgstresindvd') if self.config.variants.nodebug: self.configure_options += ' --disable-gst-debug' super(Recipe, self).prepare() self.remotes['origin'] = ('%s/%s' % ('git://anongit.freedesktop.org/gstreamer', 'gst-plugins-bad')) self.remotes['upstream'] = self.remotes['origin'] self.files_plugins_codecs_devel += [ 'lib/libgstcodecparsers-1.0.la', 'lib/libgstcodecparsers-1.0.a', 'lib/libgstbasecamerabinsrc-1.0.la', 'lib/libgstbasecamerabinsrc-1.0.a', 'lib/libgstphotography-1.0.la', 'lib/libgstphotography-1.0.a']