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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(custom.GStreamerStatic):
name = 'gst-plugins-bad-1.0-static'
version = '1.2'
gstreamer_version = '1.0'
licenses = [License.LGPLv2Plus]
extra_configure_options = "--enable-static --disable-gsm --disable-examples --disable-camerabin --disable-festival --disable-freeze --disable-h264parse --disable-inter --disable-legacyresample --disable-mpegvideoparse --disable-videomaxrate --disable-bz2 --disable-decklink --disable-linsys --disable-fbdev --disable-apexsink --disable-celt --disable-curl --disable-dc1394 --disable-directfb --disable-dirac --disable-divx --disable-faac --disable-flite --disable-gme --disable-ladspa --disable-lv2 --disable-mimic --disable-modplug --disable-mpeg2enc --disable-mplex --disable-musepack --disable-musicbrainz --disable-mythtv --disable-nas --disable-neon --disable-ofa --disable-openal --disable-opencv --disable-pvr --disable-sdl --disable-sndfile --disable-soundtouch --disable-spandsp --disable-swfdec --disable-teletextdec --disable-timidity --disable-vdpau --disable-voamrwbenc --disable-wildmidi --disable-xvid --disable-zbar --disable-sdi --disable-cog "
commit = 'origin/1.2'
deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'bzip2', 'libass',
'faad2', 'libkate', 'zlib', 'opus', 'gnutls',
'schroedinger', 'libdca', 'libmms', 'libdvdnav', 'soundtouch',
'vo-aacenc']
files_plugins_effects_devel = [
'libgstaccurip',
'libgstaiff',
'libgstaudiofxbad',
'libgstautoconvert',
'libgstbayer',
'libgstcoloreffects',
'libgstdebugutilsbad',
'libgstfieldanalysis',
'libgstfreeverb',
'libgstfrei0r',
'libgstgaudieffects',
'libgstgeometrictransform',
'libgstinterlace',
'libgstivtc',
'libgstliveadder',
'libgstrawparse',
'libgstremovesilence',
'libgstsegmentclip',
'libgstsmooth',
'libgstspeed',
'libgstvideofiltersbad',
]
files_plugins_codecs_devel = [
'libgstadpcmdec',
'libgstadpcmenc',
'libgstdashdemux',
'libgstdvbsuboverlay',
'libgstdvdspu',
'libgstfragmented',
'libgstid3tag',
'libgstkate',
'libgstmidi',
'libgstmxf',
'libgstopus',
'libgstpcapparse',
'libgstpnm',
'libgstrfbsrc',
'libgstschro',
'libgstsiren',
'libgstsmoothstreaming',
'libgstsubenc',
'libgstvideoparsersbad',
'libgsty4mdec',
'libgstjpegformat',
]
platform_files_plugins_codecs_devel = {
Platform.ANDROID: [
'libgstandroidmedia',
]
}
files_plugins_codecs_gpl_devel = [
'libgstassrender',
]
files_plugins_codecs_restricted_devel = [
'libgstasfmux',
'libgstdtsdec',
'libgstfaad',
'libgstmpegpsdemux',
'libgstmpegpsmux',
'libgstmpegtsdemux',
'libgstmpegtsmux',
'libgstvoaacenc'
]
files_plugins_dvd_devel = [
'libgstresindvd',
]
files_plugins_net_devel = [
'libgstdataurisrc',
'libgstrtmp',
'libgstsdpelem',
]
files_plugins_net_restricted_devel = [
'libgstmms',
]
files_plugins_capture_devel = [
'libgstcamerabin2',
]
platform_files_plugins_capture_devel = {
Platform.LINUX: [
'libgstdvb',
],
Platform.WINDOWS: [
'libgstwinscreencap',
'libgstdirectsoundsrc',
]
}
files_plugins_vis_devel = [
'libgstaudiovisualizers',
]
platform_files_plugins_sys_devel = {
Platform.LINUX: [
'libgstshm',
],
Platform.WINDOWS: [
'libgstd3dvideosink',
'libgstwasapi',
],
Platform.DARWIN: [
'libgstapplemedia',
'libgstapplemedia_nonpublic',
'libgstshm',
],
Platform.IOS: [
'libgstapplemedia',
#'libgstapplemedia_nonpublic',
'libgsteglglessink',
'libgstshm',
],
Platform.ANDROID: [
'libgstopensles',
'libgsteglglessink',
]
}
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 '
if self.config.target_platform == Platform.WINDOWS:
self.configure_options += \
' --disable-cog --disable-sdl '\
'--disable-cdaudio'
if self.config.target_platform in [ Platform.ANDROID, Platform.IOS ]:
for d in ['libdvdnav']:
self.deps.remove(d)
self.files_plugins_dvd_devel.remove('libgstresindvd')
if self.config.variants.nodebug:
self.configure_options += ' --disable-gst-debug'
super(Recipe, self).prepare()
self.remotes['origin'] = ('%s/%s' % ('git://anongit.freedesktop.org/gstreamer', 'gst-plugins-bad'))
self.remotes['upstream'] = self.remotes['origin']
self.files_plugins_codecs_devel += [
'lib/libgstcodecparsers-1.0.la',
'lib/libgstcodecparsers-1.0.a',
'lib/libgstmpegts-1.0.la',
'lib/libgstmpegts-1.0.a',
'lib/libgsturidownloader-1.0.la',
'lib/libgsturidownloader-1.0.a']
self.files_plugins_codecs_restricted_devel += [
'lib/libgstmpegts-1.0.la',
'lib/libgstmpegts-1.0.a']
self.files_plugins_capture_devel += [
'lib/libgstbasecamerabinsrc-1.0.la',
'lib/libgstbasecamerabinsrc-1.0.a',
'lib/libgstmpegts-1.0.la',
'lib/libgstmpegts-1.0.a',
'lib/libgstphotography-1.0.la',
'lib/libgstphotography-1.0.a']
self.platform_files_plugins_sys_devel[Platform.ANDROID] += [
'lib/libgstegl-1.0.la',
'lib/libgstegl-1.0.a']
|