summaryrefslogtreecommitdiff
path: root/packages/gstreamer-1.0-codecs-restricted.package
blob: 58556ff8f04defb70f0568d9323b7f5fe11b3853 (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
# vi:si:et:sw=4:sts=4:ts=4:syntax=python
# -*- Mode: Python -*-


class Package(custom.GStreamer, package.Package):

    name = 'gstreamer-1.0-codecs-restricted'
    shortdesc = 'GStreamer 1.0 restricted codecs with potential patent issues in some countries'
    longdesc = 'GStreamer 1.0 restricted codecs with potential patent issues in some countries'
    uuid = '0a4e77e8-3c8c-4e7d-890b-1538d36f1816'
    deps = ['gstreamer-1.0-core']

    files = ['a52dec:libs', 'opencore-amr:libs',
             'libdca:libs', 'vo-aacenc:libs', 'x264:libs',
             'gst-plugins-ugly-1.0:plugins_codecs_restricted',
             'gst-plugins-bad-1.0:plugins_codecs_restricted']
    files_devel = ['gst-plugins-ugly-1.0:plugins_codecs_restricted_devel',
                   'gst-plugins-bad-1.0:plugins_codecs_restricted_devel']

    def prepare(self):
        # Recipes that need autoreconf hang on the Windows CI
        if self.config.platform == Platform.WINDOWS:
            self.files.remove('a52dec:libs')

        if self.config.variants.rust:
            self.files.append('gst-plugins-rs:plugins_codecs_restricted')
            self.files_devel.append('gst-plugins-rs:plugins_restricted_devel')

        if self.config.variants.uwp:
            self.files = [
                'gst-plugins-ugly-1.0:plugins_codecs_restricted',
                'gst-plugins-bad-1.0:plugins_codecs_restricted',
            ]