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