1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(custom.GStreamer):
name = 'gst-plugins-ugly-1.0'
config_sh = 'sh ./autogen.sh --noconfigure && ./configure'
configure_options = "--enable-static --disable-examples --disable-iec958 --disable-mpegstream --disable-cdio --disable-sidplay "
remotes = {'origin': 'https://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly'}
deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'a52dec', 'opencore-amr',
'libdvdread', 'libmpeg2', 'x264']
files_plugins_codecs_restricted = [
'lib/gstreamer-1.0/libgsta52dec%(mext)s',
'lib/gstreamer-1.0/libgstamrnb%(mext)s',
'lib/gstreamer-1.0/libgstamrwbdec%(mext)s',
'lib/gstreamer-1.0/libgstasf%(mext)s',
'lib/gstreamer-1.0/libgstdvdsub%(mext)s',
'lib/gstreamer-1.0/libgstdvdlpcmdec%(mext)s',
'lib/gstreamer-1.0/libgstmpeg2dec%(mext)s',
'lib/gstreamer-1.0/libgstxingmux%(mext)s',
'lib/gstreamer-1.0/libgstrealmedia%(mext)s',
'lib/gstreamer-1.0/libgstx264%(mext)s',
]
files_plugins_codecs_restricted_devel = [
'lib/gstreamer-1.0/libgsta52dec.a', 'lib/gstreamer-1.0/libgsta52dec.la',
'lib/gstreamer-1.0/libgstamrnb.a', 'lib/gstreamer-1.0/libgstamrnb.la',
'lib/gstreamer-1.0/libgstamrwbdec.a', 'lib/gstreamer-1.0/libgstamrwbdec.la',
'lib/gstreamer-1.0/libgstasf.a', 'lib/gstreamer-1.0/libgstasf.la',
'lib/gstreamer-1.0/libgstdvdsub.a', 'lib/gstreamer-1.0/libgstdvdsub.la',
'lib/gstreamer-1.0/libgstdvdlpcmdec.a', 'lib/gstreamer-1.0/libgstdvdlpcmdec.la',
'lib/gstreamer-1.0/libgstmpeg2dec.a', 'lib/gstreamer-1.0/libgstmpeg2dec.la',
'lib/gstreamer-1.0/libgstxingmux.a', 'lib/gstreamer-1.0/libgstxingmux.la',
'lib/gstreamer-1.0/libgstrealmedia.a', 'lib/gstreamer-1.0/libgstrealmedia.la',
'lib/gstreamer-1.0/libgstx264.a', 'lib/gstreamer-1.0/libgstx264.la',
]
files_plugins_dvd = [
'lib/gstreamer-1.0/libgstdvdread%(mext)s',
]
files_plugins_dvd_devel = [
'lib/gstreamer-1.0/libgstdvdread.a', 'lib/gstreamer-1.0/libgstdvdread.la',
]
files_lang = ['gst-plugins-ugly-1.0']
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 in [ Platform.ANDROID, Platform.IOS ]:
for d in ['libdvdread']:
self.deps.remove(d)
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')
if self.config.variants.nodebug:
self.append_env['CFLAGS'] += ' -DGST_LEVEL_MAX=GST_LEVEL_FIXME'
|