d9b4438ce8173948f162868db869688ed1a4c4d3
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gstreamer1 / gst1-plugins-good / gst1-plugins-good.mk
1 ################################################################################
2 #
3 # gst1-plugins-good
4 #
5 ################################################################################
6
7 GST1_PLUGINS_GOOD_VERSION = 1.4.5
8 GST1_PLUGINS_GOOD_SOURCE = gst-plugins-good-$(GST1_PLUGINS_GOOD_VERSION).tar.xz
9 GST1_PLUGINS_GOOD_SITE = http://gstreamer.freedesktop.org/src/gst-plugins-good
10 GST1_PLUGINS_GOOD_LICENSE_FILES = COPYING
11 GST1_PLUGINS_GOOD_LICENSE = LGPLv2.1+
12
13 GST1_PLUGINS_GOOD_CONF_OPTS = \
14         --disable-valgrind \
15         --disable-examples \
16         --disable-directsound \
17         --disable-waveform \
18         --disable-sunaudio \
19         --disable-osx_audio \
20         --disable-osx_video \
21         --disable-aalib \
22         --disable-aalibtest \
23         --disable-libcaca \
24         --disable-esd \
25         --disable-esdtest
26
27
28 # Options which require currently unpackaged libraries
29 GST1_PLUGINS_GOOD_CONF_OPTS += \
30         --disable-jack \
31         --disable-libdv \
32         --disable-dv1394 \
33         --disable-shout2 \
34         --disable-taglib
35
36 GST1_PLUGINS_GOOD_DEPENDENCIES = gstreamer1 gst1-plugins-base
37
38 ifeq ($(BR2_PACKAGE_ORC),y)
39 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-orc
40 GST1_PLUGINS_GOOD_DEPENDENCIES += orc
41 endif
42
43 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_ALPHA),y)
44 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-alpha
45 else
46 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-alpha
47 endif
48
49 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_APETAG),y)
50 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-apetag
51 else
52 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-apetag
53 endif
54
55 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUDIOFX),y)
56 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-audiofx
57 else
58 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-audiofx
59 endif
60
61 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUDIOPARSERS),y)
62 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-audioparsers
63 else
64 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-audioparsers
65 endif
66
67 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUPARSE),y)
68 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-auparse
69 else
70 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-auparse
71 endif
72
73 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AUTODETECT),y)
74 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-autodetect
75 else
76 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-autodetect
77 endif
78
79 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_AVI),y)
80 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-avi
81 else
82 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-avi
83 endif
84
85 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_CUTTER),y)
86 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-cutter
87 else
88 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-cutter
89 endif
90
91 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_DEBUGUTILS),y)
92 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-debugutils
93 else
94 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-debugutils
95 endif
96
97 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_DEINTERLACE),y)
98 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-deinterlace
99 else
100 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-deinterlace
101 endif
102
103 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_DTMF),y)
104 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-dtmf
105 else
106 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-dtmf
107 endif
108
109 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_EFFECTV),y)
110 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-effectv
111 else
112 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-effectv
113 endif
114
115 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_EQUALIZER),y)
116 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-equalizer
117 else
118 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-equalizer
119 endif
120
121 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_FLV),y)
122 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-flv
123 else
124 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-flv
125 endif
126
127 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_FLX),y)
128 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-flx
129 else
130 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-flx
131 endif
132
133 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_GOOM),y)
134 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-goom
135 else
136 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-goom
137 endif
138
139 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_GOOM2K1),y)
140 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-goom2k1
141 else
142 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-goom2k1
143 endif
144
145 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_ICYDEMUX),y)
146 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-icydemux
147 else
148 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-icydemux
149 endif
150
151 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_ID3DEMUX),y)
152 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-id3demux
153 else
154 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-id3demux
155 endif
156
157 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_IMAGEFREEZE),y)
158 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-imagefreeze
159 else
160 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-imagefreeze
161 endif
162
163 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_INTERLEAVE),y)
164 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-interleave
165 else
166 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-interleave
167 endif
168
169 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_ISOMP4),y)
170 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-isomp4
171 else
172 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-isomp4
173 endif
174
175 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_LAW),y)
176 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-law
177 else
178 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-law
179 endif
180
181 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_LEVEL),y)
182 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-level
183 else
184 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-level
185 endif
186
187 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_MATROSKA),y)
188 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-matroska
189 else
190 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-matroska
191 endif
192
193 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_MONOSCOPE),y)
194 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-monoscope
195 else
196 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-monoscope
197 endif
198
199 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_MULTIFILE),y)
200 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-multifile
201 else
202 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-multifile
203 endif
204
205 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_MULTIPART),y)
206 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-multipart
207 else
208 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-multipart
209 endif
210
211 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_REPLAYGAIN),y)
212 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-replaygain
213 else
214 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-replaygain
215 endif
216
217 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTP),y)
218 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-rtp
219 else
220 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-rtp
221 endif
222
223 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTPMANAGER),y)
224 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-rtpmanager
225 else
226 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-rtpmanager
227 endif
228
229 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_RTSP),y)
230 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-rtsp
231 else
232 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-rtsp
233 endif
234
235 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SHAPEWIPE),y)
236 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-shapewipe
237 else
238 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-shapewipe
239 endif
240
241 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SMPTE),y)
242 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-smpte
243 else
244 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-smpte
245 endif
246
247 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SPECTRUM),y)
248 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-spectrum
249 else
250 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-spectrum
251 endif
252
253 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_UDP),y)
254 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-udp
255 else
256 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-udp
257 endif
258
259 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VIDEOBOX),y)
260 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-videobox
261 else
262 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-videobox
263 endif
264
265 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VIDEOCROP),y)
266 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-videocrop
267 else
268 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-videocrop
269 endif
270
271 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VIDEOFILTER),y)
272 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-videofilter
273 else
274 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-videofilter
275 endif
276
277 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VIDEOMIXER),y)
278 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-videomixer
279 else
280 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-videomixer
281 endif
282
283 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_WAVENC),y)
284 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-wavenc
285 else
286 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-wavenc
287 endif
288
289 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_WAVPARSE),y)
290 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-wavparse
291 else
292 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-wavparse
293 endif
294
295 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_Y4M),y)
296 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-y4m
297 else
298 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-y4m
299 endif
300
301 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_OSS),y)
302 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-oss
303 else
304 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-oss
305 endif
306
307 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_OSS4),y)
308 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-oss4
309 else
310 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-oss4
311 endif
312
313 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_V4L2),y)
314 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-gst_v4l2
315 else
316 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-gst_v4l2
317 endif
318
319 ifeq ($(BR2_PACKAGE_XORG7),y)
320 GST1_PLUGINS_GOOD_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXv
321 GST1_PLUGINS_GOOD_CONF_OPTS += \
322         --enable-x \
323         --enable-xshm \
324         $(if $(BR2_PACKAGE_XLIB_LIBXFIXES),xlib_libXfixes) \
325         $(if $(BR2_PACKAGE_XLIB_LIBXDAMAGE),xlib_libXdamage)
326 else
327 GST1_PLUGINS_GOOD_CONF_OPTS += \
328         --disable-x \
329         --disable-xshm
330 endif
331
332 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_CAIRO),y)
333 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-cairo
334 GST1_PLUGINS_GOOD_DEPENDENCIES += cairo
335 else
336 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-cairo
337 endif
338
339 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_FLAC),y)
340 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-flac
341 GST1_PLUGINS_GOOD_DEPENDENCIES += flac
342 else
343 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-flac
344 endif
345
346 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_GDKPIXBUF),y)
347 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-gdk_pixbuf
348 GST1_PLUGINS_GOOD_DEPENDENCIES += gdk-pixbuf
349 else
350 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-gdk_pixbuf
351 endif
352
353 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_JPEG),y)
354 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-jpeg
355 GST1_PLUGINS_GOOD_DEPENDENCIES += jpeg
356 else
357 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-jpeg
358 endif
359
360 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PNG),y)
361 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-libpng
362 GST1_PLUGINS_GOOD_DEPENDENCIES += libpng
363 else
364 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-libpng
365 endif
366
367 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_PULSE),y)
368 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-pulse
369 GST1_PLUGINS_GOOD_DEPENDENCIES += pulseaudio
370 else
371 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-pulse
372 endif
373
374 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SOUPHTTPSRC),y)
375 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-soup
376 GST1_PLUGINS_GOOD_DEPENDENCIES += libsoup
377 else
378 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-soup
379 endif
380
381 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_SPEEX),y)
382 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-speex
383 GST1_PLUGINS_GOOD_DEPENDENCIES += speex
384 else
385 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-speex
386 endif
387
388 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_TAGLIB),y)
389 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-taglib
390 GST1_PLUGINS_GOOD_DEPENDENCIES += taglib
391 else
392 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-taglib
393 endif
394
395 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_VPX),y)
396 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-vpx
397 GST1_PLUGINS_GOOD_DEPENDENCIES += libvpx
398 else
399 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-vpx
400 endif
401
402 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_PLUGIN_WAVPACK),y)
403 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-wavpack
404 GST1_PLUGINS_GOOD_DEPENDENCIES += wavpack
405 else
406 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-wavpack
407 endif
408
409 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_ZLIB),y)
410 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-zlib
411 GST1_PLUGINS_GOOD_DEPENDENCIES += zlib
412 else
413 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-zlib
414 endif
415
416 ifeq ($(BR2_PACKAGE_GST1_PLUGINS_GOOD_BZ2),y)
417 GST1_PLUGINS_GOOD_CONF_OPTS += --enable-bz2
418 GST1_PLUGINS_GOOD_DEPENDENCIES += bzip2
419 else
420 GST1_PLUGINS_GOOD_CONF_OPTS += --disable-bz2
421 endif
422
423 $(eval $(autotools-package))