xref: /OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-bad/gst1-plugins-bad.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# gst1-plugins-bad
4#
5################################################################################
6
7GST1_PLUGINS_BAD_VERSION = 1.22.0
8GST1_PLUGINS_BAD_SOURCE = gst-plugins-bad-$(GST1_PLUGINS_BAD_VERSION).tar.xz
9GST1_PLUGINS_BAD_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-bad
10GST1_PLUGINS_BAD_INSTALL_STAGING = YES
11# Additional plugin licenses will be appended to GST1_PLUGINS_BAD_LICENSE and
12# GST1_PLUGINS_BAD_LICENSE_FILES if enabled.
13GST1_PLUGINS_BAD_LICENSE_FILES = COPYING
14GST1_PLUGINS_BAD_LICENSE = LGPL-2.0+
15GST1_PLUGINS_BAD_CPE_ID_VENDOR = freedesktop
16GST1_PLUGINS_BAD_CPE_ID_PRODUCT = gst-plugins-bad
17
18GST1_PLUGINS_BAD_CFLAGS = $(TARGET_CFLAGS) -std=c99 -D_GNU_SOURCE
19GST1_PLUGINS_BAD_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
20
21GST1_PLUGINS_BAD_CONF_OPTS = \
22	-Dexamples=disabled \
23	-Dtests=disabled \
24	-Ddirectsound=disabled \
25	-Dd3dvideosink=disabled \
26	-Dwinks=disabled \
27	-Dandroidmedia=disabled \
28	-Dapplemedia=disabled \
29	-Dgobject-cast-checks=disabled \
30	-Dglib-asserts=disabled \
31	-Dglib-checks=disabled \
32	-Dextra-checks=disabled \
33	-Ddoc=disabled
34
35# Options which require currently unpackaged libraries
36GST1_PLUGINS_BAD_CONF_OPTS += \
37	-Dasio=disabled \
38	-Davtp=disabled \
39	-Dopensles=disabled \
40	-Dmsdk=disabled \
41	-Dvoamrwbenc=disabled \
42	-Dbs2b=disabled \
43	-Dchromaprint=disabled \
44	-Dd3d11=disabled \
45	-Ddc1394=disabled \
46	-Ddts=disabled \
47	-Dresindvd=disabled \
48	-Dfaac=disabled \
49	-Dflite=disabled \
50	-Dgs=disabled \
51	-Dgsm=disabled \
52	-Dkate=disabled \
53	-Dladspa=disabled \
54	-Dldac=disabled \
55	-Dlv2=disabled \
56	-Dmediafoundation=disabled \
57	-Dmicrodns=disabled \
58	-Dlibde265=disabled \
59	-Dmodplug=disabled \
60	-Dmplex=disabled \
61	-Donnx=disabled \
62	-Dopenexr=disabled \
63	-Dopenni2=disabled \
64	-Dteletext=disabled \
65	-Dwildmidi=disabled \
66	-Dsmoothstreaming=disabled \
67	-Dsoundtouch=disabled \
68	-Dgme=disabled \
69	-Dspandsp=disabled \
70	-Dsvthevcenc=disabled \
71	-Dtranscode=disabled \
72	-Dwasapi2=disabled \
73	-Dmagicleap=disabled \
74	-Disac=disabled \
75	-Diqa=disabled \
76	-Dopencv=disabled
77
78GST1_PLUGINS_BAD_DEPENDENCIES = gst1-plugins-base gstreamer1
79
80ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
81GST1_PLUGINS_BAD_CONF_OPTS += -Dintrospection=enabled
82GST1_PLUGINS_BAD_DEPENDENCIES += gobject-introspection
83else
84GST1_PLUGINS_BAD_CONF_OPTS += -Dintrospection=disabled
85endif
86
87ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND),y)
88GST1_PLUGINS_BAD_CONF_OPTS += -Dwayland=enabled
89GST1_PLUGINS_BAD_DEPENDENCIES += libdrm wayland wayland-protocols
90else
91GST1_PLUGINS_BAD_CONF_OPTS += -Dwayland=disabled
92endif
93
94ifeq ($(BR2_PACKAGE_ORC),y)
95GST1_PLUGINS_BAD_DEPENDENCIES += orc
96GST1_PLUGINS_BAD_CONF_OPTS += -Dorc=enabled
97else
98GST1_PLUGINS_BAD_CONF_OPTS += -Dorc=disabled
99endif
100
101ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_BLUEZ),y)
102GST1_PLUGINS_BAD_DEPENDENCIES += bluez5_utils
103GST1_PLUGINS_BAD_CONF_OPTS += -Dbluez=enabled
104else
105GST1_PLUGINS_BAD_CONF_OPTS += -Dbluez=disabled
106endif
107
108ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ACCURIP),y)
109GST1_PLUGINS_BAD_CONF_OPTS += -Daccurip=enabled
110else
111GST1_PLUGINS_BAD_CONF_OPTS += -Daccurip=disabled
112endif
113
114ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ADPCMDEC),y)
115GST1_PLUGINS_BAD_CONF_OPTS += -Dadpcmdec=enabled
116else
117GST1_PLUGINS_BAD_CONF_OPTS += -Dadpcmdec=disabled
118endif
119
120ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ADPCMENC),y)
121GST1_PLUGINS_BAD_CONF_OPTS += -Dadpcmenc=enabled
122else
123GST1_PLUGINS_BAD_CONF_OPTS += -Dadpcmenc=disabled
124endif
125
126ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AIFF),y)
127GST1_PLUGINS_BAD_CONF_OPTS += -Daiff=enabled
128else
129GST1_PLUGINS_BAD_CONF_OPTS += -Daiff=disabled
130endif
131
132ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ASFMUX),y)
133GST1_PLUGINS_BAD_CONF_OPTS += -Dasfmux=enabled
134else
135GST1_PLUGINS_BAD_CONF_OPTS += -Dasfmux=disabled
136endif
137
138ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AUDIOBUFFERSPLIT),y)
139GST1_PLUGINS_BAD_CONF_OPTS += -Daudiobuffersplit=enabled
140else
141GST1_PLUGINS_BAD_CONF_OPTS += -Daudiobuffersplit=disabled
142endif
143
144ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AUDIOFXBAD),y)
145GST1_PLUGINS_BAD_CONF_OPTS += -Daudiofxbad=enabled
146else
147GST1_PLUGINS_BAD_CONF_OPTS += -Daudiofxbad=disabled
148endif
149
150ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AUDIOLATENCY),y)
151GST1_PLUGINS_BAD_CONF_OPTS += -Daudiolatency=enabled
152else
153GST1_PLUGINS_BAD_CONF_OPTS += -Daudiolatency=disabled
154endif
155
156ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AUDIOMIXMATRIX),y)
157GST1_PLUGINS_BAD_CONF_OPTS += -Daudiomixmatrix=enabled
158else
159GST1_PLUGINS_BAD_CONF_OPTS += -Daudiomixmatrix=disabled
160endif
161
162ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AUDIOVISUALIZERS),y)
163GST1_PLUGINS_BAD_CONF_OPTS += -Daudiovisualizers=enabled
164else
165GST1_PLUGINS_BAD_CONF_OPTS += -Daudiovisualizers=disabled
166endif
167
168ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AUTOCONVERT),y)
169GST1_PLUGINS_BAD_CONF_OPTS += -Dautoconvert=enabled
170else
171GST1_PLUGINS_BAD_CONF_OPTS += -Dautoconvert=disabled
172endif
173
174ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_BAYER),y)
175GST1_PLUGINS_BAD_CONF_OPTS += -Dbayer=enabled
176else
177GST1_PLUGINS_BAD_CONF_OPTS += -Dbayer=disabled
178endif
179
180ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_CAMERABIN2),y)
181GST1_PLUGINS_BAD_CONF_OPTS += -Dcamerabin2=enabled
182else
183GST1_PLUGINS_BAD_CONF_OPTS += -Dcamerabin2=disabled
184endif
185
186ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_CODECALPHA),y)
187GST1_PLUGINS_BAD_CONF_OPTS += -Dcodecalpha=enabled
188else
189GST1_PLUGINS_BAD_CONF_OPTS += -Dcodecalpha=disabled
190endif
191
192ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_COLOREFFECTS),y)
193GST1_PLUGINS_BAD_CONF_OPTS += -Dcoloreffects=enabled
194else
195GST1_PLUGINS_BAD_CONF_OPTS += -Dcoloreffects=disabled
196endif
197
198ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DEBUGUTILS),y)
199GST1_PLUGINS_BAD_CONF_OPTS += -Ddebugutils=enabled
200else
201GST1_PLUGINS_BAD_CONF_OPTS += -Ddebugutils=disabled
202endif
203
204ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DVBSUBENC),y)
205GST1_PLUGINS_BAD_CONF_OPTS += -Ddvbsubenc=enabled
206else
207GST1_PLUGINS_BAD_CONF_OPTS += -Ddvbsubenc=disabled
208endif
209
210ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DVBSUBOVERLAY),y)
211GST1_PLUGINS_BAD_CONF_OPTS += -Ddvbsuboverlay=enabled
212else
213GST1_PLUGINS_BAD_CONF_OPTS += -Ddvbsuboverlay=disabled
214endif
215
216ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DVDSPU),y)
217GST1_PLUGINS_BAD_CONF_OPTS += -Ddvdspu=enabled
218else
219GST1_PLUGINS_BAD_CONF_OPTS += -Ddvdspu=disabled
220endif
221
222ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FACEOVERLAY),y)
223GST1_PLUGINS_BAD_CONF_OPTS += -Dfaceoverlay=enabled
224else
225GST1_PLUGINS_BAD_CONF_OPTS += -Dfaceoverlay=disabled
226endif
227
228ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FESTIVAL),y)
229GST1_PLUGINS_BAD_CONF_OPTS += -Dfestival=enabled
230else
231GST1_PLUGINS_BAD_CONF_OPTS += -Dfestival=disabled
232endif
233
234ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FIELDANALYSIS),y)
235GST1_PLUGINS_BAD_CONF_OPTS += -Dfieldanalysis=enabled
236else
237GST1_PLUGINS_BAD_CONF_OPTS += -Dfieldanalysis=disabled
238endif
239
240ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FREEVERB),y)
241GST1_PLUGINS_BAD_CONF_OPTS += -Dfreeverb=enabled
242else
243GST1_PLUGINS_BAD_CONF_OPTS += -Dfreeverb=disabled
244endif
245
246ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FREI0R),y)
247GST1_PLUGINS_BAD_CONF_OPTS += -Dfrei0r=enabled
248else
249GST1_PLUGINS_BAD_CONF_OPTS += -Dfrei0r=disabled
250endif
251
252ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GAUDIEFFECTS),y)
253GST1_PLUGINS_BAD_CONF_OPTS += -Dgaudieffects=enabled
254else
255GST1_PLUGINS_BAD_CONF_OPTS += -Dgaudieffects=disabled
256endif
257
258ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GEOMETRICTRANSFORM),y)
259GST1_PLUGINS_BAD_CONF_OPTS += -Dgeometrictransform=enabled
260else
261GST1_PLUGINS_BAD_CONF_OPTS += -Dgeometrictransform=disabled
262endif
263
264ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GDP),y)
265GST1_PLUGINS_BAD_CONF_OPTS += -Dgdp=enabled
266else
267GST1_PLUGINS_BAD_CONF_OPTS += -Dgdp=disabled
268endif
269
270ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ID3TAG),y)
271GST1_PLUGINS_BAD_CONF_OPTS += -Did3tag=enabled
272else
273GST1_PLUGINS_BAD_CONF_OPTS += -Did3tag=disabled
274endif
275
276ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_INTER),y)
277GST1_PLUGINS_BAD_CONF_OPTS += -Dinter=enabled
278else
279GST1_PLUGINS_BAD_CONF_OPTS += -Dinter=disabled
280endif
281
282ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_INTERLACE),y)
283GST1_PLUGINS_BAD_CONF_OPTS += -Dinterlace=enabled
284else
285GST1_PLUGINS_BAD_CONF_OPTS += -Dinterlace=disabled
286endif
287
288ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_IVFPARSE),y)
289GST1_PLUGINS_BAD_CONF_OPTS += -Divfparse=enabled
290else
291GST1_PLUGINS_BAD_CONF_OPTS += -Divfparse=disabled
292endif
293
294ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_IVTC),y)
295GST1_PLUGINS_BAD_CONF_OPTS += -Divtc=enabled
296else
297GST1_PLUGINS_BAD_CONF_OPTS += -Divtc=disabled
298endif
299
300ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_JP2KDECIMATOR),y)
301GST1_PLUGINS_BAD_CONF_OPTS += -Djp2kdecimator=enabled
302else
303GST1_PLUGINS_BAD_CONF_OPTS += -Djp2kdecimator=disabled
304endif
305
306ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_JPEGFORMAT),y)
307GST1_PLUGINS_BAD_CONF_OPTS += -Djpegformat=enabled
308else
309GST1_PLUGINS_BAD_CONF_OPTS += -Djpegformat=disabled
310endif
311
312ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_LIBRFB),y)
313GST1_PLUGINS_BAD_CONF_OPTS += -Dlibrfb=enabled
314else
315GST1_PLUGINS_BAD_CONF_OPTS += -Dlibrfb=disabled
316endif
317
318ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MIDI),y)
319GST1_PLUGINS_BAD_CONF_OPTS += -Dmidi=enabled
320else
321GST1_PLUGINS_BAD_CONF_OPTS += -Dmidi=disabled
322endif
323
324ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGDEMUX),y)
325GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegdemux=enabled
326else
327GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegdemux=disabled
328endif
329
330ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGPSMUX),y)
331GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegpsmux=enabled
332GST1_PLUGINS_BAD_HAS_UNKNOWN_LICENSE = y
333else
334GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegpsmux=disabled
335endif
336
337ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGTSMUX),y)
338GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegtsmux=enabled
339else
340GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegtsmux=disabled
341endif
342
343ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEGTSDEMUX),y)
344GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegtsdemux=enabled
345GST1_PLUGINS_BAD_HAS_UNKNOWN_LICENSE = y
346else
347GST1_PLUGINS_BAD_CONF_OPTS += -Dmpegtsdemux=disabled
348endif
349
350ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MXF),y)
351GST1_PLUGINS_BAD_CONF_OPTS += -Dmxf=enabled
352else
353GST1_PLUGINS_BAD_CONF_OPTS += -Dmxf=disabled
354endif
355
356ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_NETSIM),y)
357GST1_PLUGINS_BAD_CONF_OPTS += -Dnetsim=enabled
358else
359GST1_PLUGINS_BAD_CONF_OPTS += -Dnetsim=disabled
360endif
361
362ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ONVIF),y)
363GST1_PLUGINS_BAD_CONF_OPTS += -Donvif=enabled
364else
365GST1_PLUGINS_BAD_CONF_OPTS += -Donvif=disabled
366endif
367
368ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_PCAPPARSE),y)
369GST1_PLUGINS_BAD_CONF_OPTS += -Dpcapparse=enabled
370else
371GST1_PLUGINS_BAD_CONF_OPTS += -Dpcapparse=disabled
372endif
373
374ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_PNM),y)
375GST1_PLUGINS_BAD_CONF_OPTS += -Dpnm=enabled
376else
377GST1_PLUGINS_BAD_CONF_OPTS += -Dpnm=disabled
378endif
379
380ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_PROXY),y)
381GST1_PLUGINS_BAD_CONF_OPTS += -Dproxy=enabled
382else
383GST1_PLUGINS_BAD_CONF_OPTS += -Dproxy=disabled
384endif
385
386ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RAWPARSE),y)
387GST1_PLUGINS_BAD_CONF_OPTS += -Drawparse=enabled
388else
389GST1_PLUGINS_BAD_CONF_OPTS += -Drawparse=disabled
390endif
391
392ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_REMOVESILENCE),y)
393GST1_PLUGINS_BAD_CONF_OPTS += -Dremovesilence=enabled
394else
395GST1_PLUGINS_BAD_CONF_OPTS += -Dremovesilence=disabled
396endif
397
398ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RIST),y)
399GST1_PLUGINS_BAD_CONF_OPTS += -Drist=enabled
400else
401GST1_PLUGINS_BAD_CONF_OPTS += -Drist=disabled
402endif
403
404ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RTMP2),y)
405GST1_PLUGINS_BAD_CONF_OPTS += -Drtmp2=enabled
406else
407GST1_PLUGINS_BAD_CONF_OPTS += -Drtmp2=disabled
408endif
409
410ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RTP2),y)
411GST1_PLUGINS_BAD_CONF_OPTS += -Drtp=enabled
412else
413GST1_PLUGINS_BAD_CONF_OPTS += -Drtp=disabled
414endif
415
416ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RTMP),y)
417GST1_PLUGINS_BAD_CONF_OPTS += -Drtmp=enabled
418GST1_PLUGINS_BAD_DEPENDENCIES += rtmpdump
419else
420GST1_PLUGINS_BAD_CONF_OPTS += -Drtmp=disabled
421endif
422
423ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SDP),y)
424GST1_PLUGINS_BAD_CONF_OPTS += -Dsdp=enabled
425else
426GST1_PLUGINS_BAD_CONF_OPTS += -Dsdp=disabled
427endif
428
429ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SEGMENTCLIP),y)
430GST1_PLUGINS_BAD_CONF_OPTS += -Dsegmentclip=enabled
431else
432GST1_PLUGINS_BAD_CONF_OPTS += -Dsegmentclip=disabled
433endif
434
435ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SIREN),y)
436GST1_PLUGINS_BAD_CONF_OPTS += -Dsiren=enabled
437else
438GST1_PLUGINS_BAD_CONF_OPTS += -Dsiren=disabled
439endif
440
441ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SMOOTH),y)
442GST1_PLUGINS_BAD_CONF_OPTS += -Dsmooth=enabled
443else
444GST1_PLUGINS_BAD_CONF_OPTS += -Dsmooth=disabled
445endif
446
447ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SPEED),y)
448GST1_PLUGINS_BAD_CONF_OPTS += -Dspeed=enabled
449else
450GST1_PLUGINS_BAD_CONF_OPTS += -Dspeed=disabled
451endif
452
453ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SUBENC),y)
454GST1_PLUGINS_BAD_CONF_OPTS += -Dsubenc=enabled
455else
456GST1_PLUGINS_BAD_CONF_OPTS += -Dsubenc=disabled
457endif
458
459ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SWITCHBIN),y)
460GST1_PLUGINS_BAD_CONF_OPTS += -Dswitchbin=enabled
461else
462GST1_PLUGINS_BAD_CONF_OPTS += -Dswitchbin=disabled
463endif
464
465ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_TIMECODE),y)
466GST1_PLUGINS_BAD_CONF_OPTS += -Dtimecode=enabled
467else
468GST1_PLUGINS_BAD_CONF_OPTS += -Dtimecode=disabled
469endif
470
471ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOFILTERS),y)
472GST1_PLUGINS_BAD_CONF_OPTS += -Dvideofilters=enabled
473else
474GST1_PLUGINS_BAD_CONF_OPTS += -Dvideofilters=disabled
475endif
476
477ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOFRAME_AUDIOLEVEL),y)
478GST1_PLUGINS_BAD_CONF_OPTS += -Dvideoframe_audiolevel=enabled
479else
480GST1_PLUGINS_BAD_CONF_OPTS += -Dvideoframe_audiolevel=disabled
481endif
482
483ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOPARSERS),y)
484GST1_PLUGINS_BAD_CONF_OPTS += -Dvideoparsers=enabled
485else
486GST1_PLUGINS_BAD_CONF_OPTS += -Dvideoparsers=disabled
487endif
488
489ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VIDEOSIGNAL),y)
490GST1_PLUGINS_BAD_CONF_OPTS += -Dvideosignal=enabled
491else
492GST1_PLUGINS_BAD_CONF_OPTS += -Dvideosignal=disabled
493endif
494
495ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VMNC),y)
496GST1_PLUGINS_BAD_CONF_OPTS += -Dvmnc=enabled
497else
498GST1_PLUGINS_BAD_CONF_OPTS += -Dvmnc=disabled
499endif
500
501ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_Y4M),y)
502GST1_PLUGINS_BAD_CONF_OPTS += -Dy4m=enabled
503else
504GST1_PLUGINS_BAD_CONF_OPTS += -Dy4m=disabled
505endif
506
507# Plugins with dependencies
508
509ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_AES),y)
510GST1_PLUGINS_BAD_CONF_OPTS += -Daes=enabled
511GST1_PLUGINS_BAD_DEPENDENCIES += openssl
512else
513GST1_PLUGINS_BAD_CONF_OPTS += -Daes=disabled
514endif
515
516ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_ASSRENDER),y)
517GST1_PLUGINS_BAD_CONF_OPTS += -Dassrender=enabled
518GST1_PLUGINS_BAD_DEPENDENCIES += libass
519else
520GST1_PLUGINS_BAD_CONF_OPTS += -Dassrender=disabled
521endif
522
523ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_BZ2),y)
524GST1_PLUGINS_BAD_CONF_OPTS += -Dbz2=enabled
525GST1_PLUGINS_BAD_DEPENDENCIES += bzip2
526else
527GST1_PLUGINS_BAD_CONF_OPTS += -Dbz2=disabled
528endif
529
530ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_CURL),y)
531GST1_PLUGINS_BAD_CONF_OPTS += -Dcurl=enabled
532GST1_PLUGINS_BAD_DEPENDENCIES += libcurl
533else
534GST1_PLUGINS_BAD_CONF_OPTS += -Dcurl=disabled
535endif
536
537ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DASH),y)
538GST1_PLUGINS_BAD_CONF_OPTS += -Ddash=enabled
539GST1_PLUGINS_BAD_DEPENDENCIES += libxml2
540else
541GST1_PLUGINS_BAD_CONF_OPTS += -Ddash=disabled
542endif
543
544ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DECKLINK),y)
545GST1_PLUGINS_BAD_CONF_OPTS += -Ddecklink=enabled
546else
547GST1_PLUGINS_BAD_CONF_OPTS += -Ddecklink=disabled
548endif
549
550ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DIRECTFB),y)
551GST1_PLUGINS_BAD_CONF_OPTS += -Ddirectfb=enabled
552GST1_PLUGINS_BAD_DEPENDENCIES += directfb
553else
554GST1_PLUGINS_BAD_CONF_OPTS += -Ddirectfb=disabled
555endif
556
557ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DVB),y)
558GST1_PLUGINS_BAD_CONF_OPTS += -Ddvb=enabled
559GST1_PLUGINS_BAD_DEPENDENCIES += dtv-scan-tables
560else
561GST1_PLUGINS_BAD_CONF_OPTS += -Ddvb=disabled
562endif
563
564ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FAAD),y)
565GST1_PLUGINS_BAD_CONF_OPTS += -Dfaad=enabled
566GST1_PLUGINS_BAD_DEPENDENCIES += faad2
567GST1_PLUGINS_BAD_HAS_GPL_LICENSE = y
568else
569GST1_PLUGINS_BAD_CONF_OPTS += -Dfaad=disabled
570endif
571
572ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FBDEV),y)
573GST1_PLUGINS_BAD_CONF_OPTS += -Dfbdev=enabled
574else
575GST1_PLUGINS_BAD_CONF_OPTS += -Dfbdev=disabled
576endif
577
578ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FDK_AAC),y)
579GST1_PLUGINS_BAD_CONF_OPTS += -Dfdkaac=enabled
580GST1_PLUGINS_BAD_DEPENDENCIES += fdk-aac
581else
582GST1_PLUGINS_BAD_CONF_OPTS += -Dfdkaac=disabled
583endif
584
585ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_FLUIDSYNTH),y)
586GST1_PLUGINS_BAD_CONF_OPTS += -Dfluidsynth=enabled
587GST1_PLUGINS_BAD_DEPENDENCIES += fluidsynth
588else
589GST1_PLUGINS_BAD_CONF_OPTS += -Dfluidsynth=disabled
590endif
591
592ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_GL),y)
593GST1_PLUGINS_BAD_CONF_OPTS += -Dgl=enabled
594else
595GST1_PLUGINS_BAD_CONF_OPTS += -Dgl=disabled
596endif
597
598ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_HLS),y)
599GST1_PLUGINS_BAD_CONF_OPTS += -Dhls=enabled
600
601ifeq ($(BR2_PACKAGE_NETTLE),y)
602GST1_PLUGINS_BAD_DEPENDENCIES += nettle
603GST1_PLUGINS_BAD_CONF_OPTS += -Dhls-crypto='nettle'
604else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
605GST1_PLUGINS_BAD_DEPENDENCIES += libgcrypt
606GST1_PLUGINS_BAD_CONF_OPTS += -Dhls-crypto='libgcrypt'
607else
608GST1_PLUGINS_BAD_DEPENDENCIES += openssl
609GST1_PLUGINS_BAD_CONF_OPTS += -Dhls-crypto='openssl'
610endif
611
612else
613GST1_PLUGINS_BAD_CONF_OPTS += -Dhls=disabled
614endif
615
616ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_KMS),y)
617GST1_PLUGINS_BAD_CONF_OPTS += -Dkms=enabled
618GST1_PLUGINS_BAD_DEPENDENCIES += libdrm
619else
620GST1_PLUGINS_BAD_CONF_OPTS += -Dkms=disabled
621endif
622
623ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DTLS),y)
624GST1_PLUGINS_BAD_CONF_OPTS += -Ddtls=enabled
625GST1_PLUGINS_BAD_DEPENDENCIES += openssl
626GST1_PLUGINS_BAD_HAS_BSD2C_LICENSE = y
627else
628GST1_PLUGINS_BAD_CONF_OPTS += -Ddtls=disabled
629endif
630
631ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_TTML),y)
632GST1_PLUGINS_BAD_CONF_OPTS += -Dttml=enabled
633GST1_PLUGINS_BAD_DEPENDENCIES += cairo libxml2 pango
634else
635GST1_PLUGINS_BAD_CONF_OPTS += -Dttml=disabled
636endif
637
638ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MPEG2ENC),y)
639GST1_PLUGINS_BAD_CONF_OPTS += -Dmpeg2enc=enabled
640GST1_PLUGINS_BAD_DEPENDENCIES += libmpeg2 mjpegtools
641GST1_PLUGINS_BAD_HAS_GPL_LICENSE = y
642else
643GST1_PLUGINS_BAD_CONF_OPTS += -Dmpeg2enc=disabled
644endif
645
646ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_MUSEPACK),y)
647GST1_PLUGINS_BAD_CONF_OPTS += -Dmusepack=enabled
648GST1_PLUGINS_BAD_DEPENDENCIES += musepack
649else
650GST1_PLUGINS_BAD_CONF_OPTS += -Dmusepack=disabled
651endif
652
653ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_NEON),y)
654GST1_PLUGINS_BAD_CONF_OPTS += -Dneon=enabled
655GST1_PLUGINS_BAD_DEPENDENCIES += neon
656else
657GST1_PLUGINS_BAD_CONF_OPTS += -Dneon=disabled
658endif
659
660ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENAL),y)
661GST1_PLUGINS_BAD_CONF_OPTS += -Dopenal=enabled
662GST1_PLUGINS_BAD_DEPENDENCIES += openal
663else
664GST1_PLUGINS_BAD_CONF_OPTS += -Dopenal=disabled
665endif
666
667ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENH264),y)
668GST1_PLUGINS_BAD_CONF_OPTS += -Dopenh264=enabled
669GST1_PLUGINS_BAD_DEPENDENCIES += libopenh264
670GST1_PLUGINS_BAD_HAS_BSD2C_LICENSE = y
671else
672GST1_PLUGINS_BAD_CONF_OPTS += -Dopenh264=disabled
673endif
674
675ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPENJPEG),y)
676GST1_PLUGINS_BAD_CONF_OPTS += -Dopenjpeg=enabled
677GST1_PLUGINS_BAD_DEPENDENCIES += openjpeg
678else
679GST1_PLUGINS_BAD_CONF_OPTS += -Dopenjpeg=disabled
680endif
681
682ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_OPUS),y)
683GST1_PLUGINS_BAD_CONF_OPTS += -Dopus=enabled
684GST1_PLUGINS_BAD_DEPENDENCIES += opus
685else
686GST1_PLUGINS_BAD_CONF_OPTS += -Dopus=disabled
687endif
688
689ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_QROVERLAY),y)
690GST1_PLUGINS_BAD_CONF_OPTS += -Dqroverlay=enabled
691GST1_PLUGINS_BAD_DEPENDENCIES += json-glib libqrencode
692else
693GST1_PLUGINS_BAD_CONF_OPTS += -Dqroverlay=disabled
694endif
695
696ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_RSVG),y)
697GST1_PLUGINS_BAD_CONF_OPTS += -Drsvg=enabled
698GST1_PLUGINS_BAD_DEPENDENCIES += librsvg
699else
700GST1_PLUGINS_BAD_CONF_OPTS += -Drsvg=disabled
701endif
702
703ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SBC),y)
704GST1_PLUGINS_BAD_CONF_OPTS += -Dsbc=enabled
705GST1_PLUGINS_BAD_DEPENDENCIES += sbc
706else
707GST1_PLUGINS_BAD_CONF_OPTS += -Dsbc=disabled
708endif
709
710ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SCTP),y)
711GST1_PLUGINS_BAD_CONF_OPTS += \
712	-Dsctp=enabled \
713	-Dsctp-internal-usrsctp=enabled
714else
715GST1_PLUGINS_BAD_CONF_OPTS += \
716	-Dsctp=disabled \
717	-Dsctp-internal-usrsctp=disabled
718endif
719
720ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SHM),y)
721GST1_PLUGINS_BAD_CONF_OPTS += -Dshm=enabled
722else
723GST1_PLUGINS_BAD_CONF_OPTS += -Dshm=disabled
724endif
725
726ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SNDFILE),y)
727GST1_PLUGINS_BAD_CONF_OPTS += -Dsndfile=enabled
728GST1_PLUGINS_BAD_DEPENDENCIES += libsndfile
729else
730GST1_PLUGINS_BAD_CONF_OPTS += -Dsndfile=disabled
731endif
732
733ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_SRTP),y)
734GST1_PLUGINS_BAD_CONF_OPTS += -Dsrtp=enabled
735GST1_PLUGINS_BAD_DEPENDENCIES += libsrtp
736else
737GST1_PLUGINS_BAD_CONF_OPTS += -Dsrtp=disabled
738endif
739
740ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_UVCH264),y)
741GST1_PLUGINS_BAD_CONF_OPTS += -Duvch264=enabled
742GST1_PLUGINS_BAD_DEPENDENCIES += libgudev libusb
743else
744GST1_PLUGINS_BAD_CONF_OPTS += -Duvch264=disabled
745endif
746
747ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VA),y)
748GST1_PLUGINS_BAD_CONF_OPTS += -Dva=enabled
749GST1_PLUGINS_BAD_DEPENDENCIES += libva
750ifeq ($(BR2_PACKAGE_LIBDRM),y)
751GST1_PLUGINS_BAD_DEPENDENCIES += libdrm
752endif
753else
754GST1_PLUGINS_BAD_CONF_OPTS += -Dva=disabled
755endif
756
757ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_VOAACENC),y)
758GST1_PLUGINS_BAD_CONF_OPTS += -Dvoaacenc=enabled
759GST1_PLUGINS_BAD_DEPENDENCIES += vo-aacenc
760else
761GST1_PLUGINS_BAD_CONF_OPTS += -Dvoaacenc=disabled
762endif
763
764ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WEBP),y)
765GST1_PLUGINS_BAD_CONF_OPTS += -Dwebp=enabled
766GST1_PLUGINS_BAD_DEPENDENCIES += webp
767else
768GST1_PLUGINS_BAD_CONF_OPTS += -Dwebp=disabled
769endif
770
771ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WEBRTC),y)
772GST1_PLUGINS_BAD_CONF_OPTS += -Dwebrtc=enabled
773GST1_PLUGINS_BAD_DEPENDENCIES += gst1-plugins-base gst1-plugins-good libnice
774else
775GST1_PLUGINS_BAD_CONF_OPTS += -Dwebrtc=disabled
776endif
777
778ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WEBRTCDSP),y)
779GST1_PLUGINS_BAD_CONF_OPTS += -Dwebrtcdsp=enabled
780GST1_PLUGINS_BAD_DEPENDENCIES += webrtc-audio-processing
781else
782GST1_PLUGINS_BAD_CONF_OPTS += -Dwebrtcdsp=disabled
783endif
784
785ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WPE),y)
786GST1_PLUGINS_BAD_CONF_OPTS += -Dwpe=enabled
787GST1_PLUGINS_BAD_DEPENDENCIES += libwpe wpewebkit wpebackend-fdo
788else
789GST1_PLUGINS_BAD_CONF_OPTS += -Dwpe=disabled
790endif
791
792ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_V4L2CODECS),y)
793GST1_PLUGINS_BAD_CONF_OPTS += -Dv4l2codecs=enabled
794GST1_PLUGINS_BAD_DEPENDENCIES += libgudev
795else
796GST1_PLUGINS_BAD_CONF_OPTS += -Dv4l2codecs=disabled
797endif
798
799ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_X265),y)
800GST1_PLUGINS_BAD_CONF_OPTS += -Dx265=enabled
801GST1_PLUGINS_BAD_DEPENDENCIES += x265
802GST1_PLUGINS_BAD_HAS_GPL_LICENSE = y
803else
804GST1_PLUGINS_BAD_CONF_OPTS += -Dx265=disabled
805endif
806
807ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_ZBAR),y)
808GST1_PLUGINS_BAD_CONF_OPTS += -Dzbar=enabled
809GST1_PLUGINS_BAD_DEPENDENCIES += zbar
810else
811GST1_PLUGINS_BAD_CONF_OPTS += -Dzbar=disabled
812endif
813
814ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_ZXING),y)
815GST1_PLUGINS_BAD_CONF_OPTS += -Dzxing=enabled
816GST1_PLUGINS_BAD_DEPENDENCIES += zxing-cpp
817else
818GST1_PLUGINS_BAD_CONF_OPTS += -Dzxing=disabled
819endif
820
821# Add GPL license if GPL licensed plugins enabled.
822ifeq ($(GST1_PLUGINS_BAD_HAS_GPL_LICENSE),y)
823GST1_PLUGINS_BAD_CONF_OPTS += -Dgpl=enabled
824GST1_PLUGINS_BAD_LICENSE += , GPL-2.0+
825GST1_PLUGINS_BAD_LICENSE_FILES += COPYING
826endif
827
828# Add BSD license if BSD licensed plugins enabled.
829ifeq ($(GST1_PLUGINS_BAD_HAS_BSD2C_LICENSE),y)
830GST1_PLUGINS_BAD_LICENSE += , BSD-2-Clause
831endif
832
833# Add Unknown license if Unknown licensed plugins enabled.
834ifeq ($(GST1_PLUGINS_BAD_HAS_UNKNOWN_LICENSE),y)
835GST1_PLUGINS_BAD_LICENSE += , UNKNOWN
836endif
837
838# Use the following command to extract license info for plugins.
839# # find . -name 'plugin-*.xml' | xargs grep license
840
841$(eval $(meson-package))
842