summaryrefslogtreecommitdiff
path: root/packages/gstreamer-1.0-codecs-gpl.package
blob: 3c4f09462aa3d91d2b3317554c8e0e4282400b53 (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
# 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',
             'gst-plugins-ugly-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.uwp:
            self.files.remove('libass:libs')
            self.files.remove('libiconv:libs')