summaryrefslogtreecommitdiff
path: root/recipes/gst-plugins-ugly-1.0-static.recipe
blob: 9942aa71736aec8bed3671931f58a1e104c23e73 (plain)
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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(custom.GStreamerStatic):
    name = 'gst-plugins-ugly-1.0-static'
    version = '1.6'
    gstreamer_version = '1.0'
    licenses = [License.LGPLv2Plus]
    extra_configure_options = "--enable-static --disable-iec958 --disable-mpegstream --disable-cdio --disable-sidplay --disable-twolame"
    remotes = {'origin': 'git://anongit.freedesktop.org/gstreamer/gst-plugins-ugly'}
    commit = 'origin/1.6'
    deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'a52dec', 'opencore-amr',
            'libdvdread', 'libmpeg2', 'libmad', 'x264', 'lame']

    files_plugins_codecs_restricted_devel = [
             'libgsta52dec',
             'libgstamrnb',
             'libgstamrwbdec',
             'libgstasf',
             'libgstdvdsub',
             'libgstdvdlpcmdec',
             'libgstmad',
             'libgstmpeg2dec',
             'libgstxingmux',
             'libgstrmdemux',
             'libgstx264',
             'libgstlame',
    ]

    files_plugins_dvd_devel = [
             'libgstdvdread',
    ]

    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.variants.nodebug:
            self.append_env['CFLAGS'] += ' -DGST_LEVEL_MAX=GST_LEVEL_FIXME'

        if self.config.target_platform in [ Platform.ANDROID, Platform.IOS ]:
            for d in ['libdvdread']:
                self.deps.remove(d)
            self.files_plugins_dvd_devel.remove('libgstdvdread')

        custom.GStreamerStatic.prepare(self)