summaryrefslogtreecommitdiff
path: root/recipes/gstreamer-1.0-static.recipe
blob: a4c3e6b0f2ad4a458898cc17ebc9130bdc0c0df2 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(custom.GStreamerStatic):
    name = 'gstreamer-1.0-static'
    version = '1.0'
    gstreamer_version = '1.0'
    licenses = [License.LGPLv2_1Plus]
    extra_configure_options = '--enable-static'
    commit = 'upstream/master'
    deps = ['glib', 'gtk-doc-lite']
    # Static build will always fail on make check
    make_check = None

    files_plugins_core_devel = ['libgstcoreelements']

    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 --disable-docbook'

        if self.config.target_platform == Platform.IOS:
            # iOS only supports static builds so plugins must be linked
            # and registered statically.
            self.configure_options += ' --disable-registry '

        if self.config.variants.nodebug:
            self.configure_options += ' --disable-gst-debug'

        custom.GStreamerStatic.prepare(self)

        self.remotes['origin'] = ('%s/%s' % ('git://anongit.freedesktop.org/gstreamer', 'gstreamer'))
        self.remotes['upstream'] = self.remotes['origin']