summaryrefslogtreecommitdiff
path: root/packages/gstreamer-1.0-codecs-gpl.package
blob: 48c1205862b0a9f6a0bd5211095cf4ebb9da06bd (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-gpl'
    shortdesc = 'GStreamer 1.0 codecs under the GPL license and/or with patents issues'
    longdesc = 'GStreamer 1.0 codecs under the GPL license and/or with patents issues'
    uuid = 'f685219b-7ee8-46b9-af3c-338e3cbb4f94'
    deps = ['gstreamer-1.0-core']

    files = ['libass:libs',
             'gst-plugins-base-1.0:plugins_codecs_gpl',
             'gst-plugins-good-1.0:plugins_codecs_gpl',
             'gst-plugins-bad-1.0:plugins_codecs_gpl',
             'gst-plugins-ugly-1.0:plugins_codecs_gpl']
    files_devel = ['gst-plugins-base-1.0:plugins_codecs_gpl_devel',
             'gst-plugins-good-1.0:plugins_codecs_gpl_devel',
             'gst-plugins-bad-1.0:plugins_codecs_gpl_devel']

    def prepare(self):
        if self.config.target_platform in (Platform.WINDOWS, Platform.ANDROID):
            # Needed by libass
            self.files.append('libiconv:libs')

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

        if self.config.variants.uwp:
            self.files.remove('libass:libs')
            self.files.remove('libiconv:libs')