summaryrefslogtreecommitdiff
path: root/recipes/gst-plugins-good-1.0-static.recipe
blob: fa24369a62a7bb0f11a3b79613d9f8dcd7464791 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(custom.GStreamerStatic):
    name = 'gst-plugins-good-1.0-static'
    version = '1.7'
    gstreamer_version = '1.0'
    licenses = [License.LGPLv2Plus]
    extra_configure_options = '--enable-static --disable-oss4 --disable-oss --disable-dv1394 --disable-aalib --disable-libcaca --disable-jack --disable-shout2'
    remotes = {'origin': 'git://anongit.freedesktop.org/gstreamer/gst-plugins-good'}
    commit = '1.7.1'
    deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'libjpeg-turbo', 'libpng',
            'speex', 'gdk-pixbuf', 'libsoup',
            'orc', 'wavpack', 'flac', 'taglib', 'bzip2', 'zlib',
            'libvpx', 'libdv', 'cairo']


    files_plugins_core_devel = [
             'libgstautodetect',
             'libgstvideofilter',
    ]

    files_plugins_effects_devel = [
             'libgstalpha',
             'libgstalphacolor',
             'libgstaudiofx',
             'libgstcairo',
             'libgstcutter',
             'libgstdebug',
             'libgstdeinterlace',
             'libgstdtmf',
             'libgsteffectv',
             'libgstequalizer',
             'libgstgdkpixbuf',
             'libgstimagefreeze',
             'libgstinterleave',
             'libgstlevel',
             'libgstmultifile',
             'libgstreplaygain',
             'libgstshapewipe',
             'libgstsmpte',
             'libgstspectrum',
             'libgstvideobox',
             'libgstvideocrop',
             'libgstvideomixer',
    ]

    files_plugins_codecs_devel = [
             'libgstalaw',
             'libgstapetag',
             'libgstaudioparsers',
             'libgstauparse',
             'libgstavi',
             'libgstdv',
             'libgstflac',
             'libgstflv',
             'libgstflxdec',
             'libgsticydemux',
             'libgstid3demux',
             'libgstisomp4',
             'libgstjpeg',
             'libgstmatroska',
             'libgstmulaw',
             'libgstmultipart',
             'libgstpng',
             'libgstspeex',
             'libgsttaglib',
             'libgstvpx',
             'libgstwavenc',
             'libgstwavpack',
             'libgstwavparse',
             'libgsty4menc',
    ]

    files_plugins_net_devel = [
             'libgstrtsp',
             'libgstrtp',
             'libgstrtpmanager',
             'libgstsouphttpsrc',
             'libgstudp',
    ]

    files_plugins_vis_devel = [
             'libgstgoom',
             'libgstgoom2k1',
            ]

    files_plugins_capture_devel = []

    files_plugins_sys_devel = []

    platform_files_plugins_sys_devel = {
        Platform.WINDOWS: [
             'libgstdirectsoundsink',
            ],
        Platform.DARWIN: [
             'libgstosxaudio',
             'libgstosxvideosink',
            ],
        Platform.IOS: [
             'libgstosxaudio'
        ]
    }

    def prepare(self):
        # The second detail is to work around use of deprecated NSOpenGLPFAFullScreen on OS X 10.10
        self.append_env['CFLAGS'] = " -Wno-error -Wno-error=deprecated-declarations -DGSTREAMER_GLIB_COCOA_NSAPPLICATION=1 -DLIBSOUP_DOES_NOT_STEAL_OUR_CONTEXT=1 "
        self.append_env['OBJCFLAGS'] = " -Wno-error -DGSTREAMER_GLIB_COCOA_NSAPPLICATION=1 "
        self.append_env['CXXFLAGS'] = " -Wno-error -Wno-error=deprecated-declarations "
        self.append_env['CPPFLAGS'] = " -Wno-error -Wno-error=deprecated-declarations "
        if self.config.target_platform != Platform.LINUX:
            self.configure_options += '  --disable-gtk-doc'
        if self.config.target_platform == Platform.WINDOWS:
            self.configure_options += '  --disable-aalib --disable-esd'
        if self.config.target_platform == Platform.LINUX:
            self.use_system_libs = True
        if self.config.variants.v4l2:
            self.files_plugins_capture_devel += ['libgstvideo4linux2']
        else:
            self.configure_options += ' --disable-gst_v4l2'
        if self.config.variants.x11:
            self.files_plugins_capture_devel += ['libgstximagesrc']
        else:
            self.configure_options += '  --disable-x'
        if self.config.variants.pulse:
            self.files_plugins_sys_devel += ['libgstpulse']
        else:
            self.configure_options += '  --disable-pulse'

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

        custom.GStreamerStatic.prepare(self)