xref: /OK3568_Linux_fs/buildroot/package/gstreamer1/gst1-plugins-ugly/gst1-plugins-ugly.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# gst1-plugins-ugly
4#
5################################################################################
6
7GST1_PLUGINS_UGLY_VERSION = 1.22.0
8GST1_PLUGINS_UGLY_SOURCE = gst-plugins-ugly-$(GST1_PLUGINS_UGLY_VERSION).tar.xz
9GST1_PLUGINS_UGLY_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-ugly
10GST1_PLUGINS_UGLY_LICENSE_FILES = COPYING
11# GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled.
12GST1_PLUGINS_UGLY_LICENSE = LGPL-2.1+
13
14GST1_PLUGINS_UGLY_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
15
16GST1_PLUGINS_UGLY_CONF_OPTS += \
17	-Dtests=disabled \
18	-Ddoc=disabled
19
20GST1_PLUGINS_UGLY_CONF_OPTS += \
21	-Da52dec=disabled \
22	-Dcdio=disabled \
23	-Dsidplay=disabled
24
25GST1_PLUGINS_UGLY_DEPENDENCIES = gstreamer1 gst1-plugins-base
26
27ifeq ($(BR2_PACKAGE_ORC),y)
28GST1_PLUGINS_UGLY_CONF_OPTS += -Dorc=enabled
29GST1_PLUGINS_UGLY_DEPENDENCIES += orc
30else
31GST1_PLUGINS_UGLY_CONF_OPTS += -Dorc=disabled
32endif
33
34ifeq ($(BR2_PACKAGE_OPENCORE_AMR),y)
35GST1_PLUGINS_UGLY_CONF_OPTS += -Damrnb=enabled -Damrwbdec=enabled
36GST1_PLUGINS_UGLY_DEPENDENCIES += opencore-amr
37else
38GST1_PLUGINS_UGLY_CONF_OPTS += -Damrnb=disabled -Damrwbdec=disabled
39endif
40
41ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_ASFDEMUX),y)
42GST1_PLUGINS_UGLY_CONF_OPTS += -Dasfdemux=enabled
43else
44GST1_PLUGINS_UGLY_CONF_OPTS += -Dasfdemux=disabled
45endif
46
47ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDLPCMDEC),y)
48GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdlpcmdec=enabled
49else
50GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdlpcmdec=disabled
51endif
52
53ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDSUB),y)
54GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdsub=enabled
55else
56GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdsub=disabled
57endif
58
59ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_REALMEDIA),y)
60GST1_PLUGINS_UGLY_CONF_OPTS += -Drealmedia=enabled
61else
62GST1_PLUGINS_UGLY_CONF_OPTS += -Drealmedia=disabled
63endif
64
65ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD),y)
66GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdread=enabled
67GST1_PLUGINS_UGLY_DEPENDENCIES += libdvdread
68GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
69else
70GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdread=disabled
71endif
72
73ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC),y)
74GST1_PLUGINS_UGLY_CONF_OPTS += -Dmpeg2dec=enabled
75GST1_PLUGINS_UGLY_DEPENDENCIES += libmpeg2
76GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
77else
78GST1_PLUGINS_UGLY_CONF_OPTS += -Dmpeg2dec=disabled
79endif
80
81ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_X264),y)
82GST1_PLUGINS_UGLY_CONF_OPTS += -Dx264=enabled
83GST1_PLUGINS_UGLY_DEPENDENCIES += x264
84GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
85else
86GST1_PLUGINS_UGLY_CONF_OPTS += -Dx264=disabled
87endif
88
89# Add GPL license if GPL plugins enabled.
90ifeq ($(GST1_PLUGINS_UGLY_HAS_GPL_LICENSE),y)
91GST1_PLUGINS_UGLY_CONF_OPTS += -Dgpl=enabled
92GST1_PLUGINS_UGLY_LICENSE += , GPL-2.0
93endif
94
95# Use the following command to extract license info for plugins.
96# # find . -name 'plugin-*.xml' | xargs grep license
97
98$(eval $(meson-package))
99