summaryrefslogtreecommitdiff
path: root/recipes/gst-plugins-base-1.0-static.recipe
blob: 3ffcf2a0754ae594d32a3fe9767245060e87b16e (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(custom.GStreamerStatic):
    name = 'gst-plugins-base-1.0-static'
    version = '1.7'
    gstreamer_version = '1.0'
    licenses = [License.LGPLv2Plus]
    extra_configure_options = "--enable-static"
    remotes = {'origin': 'git://anongit.freedesktop.org/gstreamer/gst-plugins-base'}
    commit = 'origin/master'
    deps = ['glib', 'gstreamer-1.0', 'libxml2', 'libogg', 'pango', 'libtheora',
            'libvisual', 'libvorbis', 'zlib', 'orc', 'opus']
    platform_deps = {Platform.ANDROID: [ 'tremor' ], Platform.IOS: [ 'tremor' ] }
    use_system_libs = True

    files_plugins_core_devel = [
             'libgstadder',
             'libgstapp',
             'libgstaudioconvert',
             'libgstaudiorate',
             'libgstaudioresample',
             'libgstaudiotestsrc',
             'libgstgio',
             'libgstpango',
             'libgsttypefindfunctions',
             'libgstvideoconvert',
             'libgstvideorate',
             'libgstvideoscale',
             'libgstvideotestsrc',
             'libgstvolume',
    ]

    files_plugins_playback_devel = [
             'libgstplayback',
            ]

    # Not used currently
    files_plugins_encoding_devel = [
             'libgstencodebin',
            ]

    files_plugins_codecs_devel = [
             'libgstsubparse',
             'libgstogg',
             'libgsttheora',
             'libgstvorbis',
             'libgstopus',
            ]

    files_plugins_vis_devel = [
             'libgstlibvisual',
            ]

    files_plugins_net_devel = [
            'libgsttcp',
    ]

    files_plugins_sys_devel = []

    platform_files_plugins_codecs_devel = {
        Platform.ANDROID: [
             'libgstivorbisdec',
            ],
        Platform.IOS: [
             'libgstivorbisdec',
            ]
    }

    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.cdparanoia:
            self.deps.append('cdparanoia')
            self.files_plugins_sys_devel += ['libgstcdparanoia']
        else:
            self.configure_options += ' --disable-cdparanoia'

        if self.config.variants.x11:
            self.files_plugins_sys_devel += [
                 'libgstximagesink',
                 'libgstxvimagesink',
                ]
        else:
            self.configure_options += ' --disable-x --disable-xvideo'

        if self.config.variants.alsa:
            self.files_plugins_sys_devel += ['libgstalsa']
        else:
            self.configure_options += ' --disable-alsa'

        if self.config.variants.nodebug:
            self.append_env['CFLAGS'] += ' -DGST_LEVEL_MAX=GST_LEVEL_FIXME'

        custom.GStreamerStatic.prepare(self)