2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2013-06-21 00:07:41 +02:00
|
|
|
#
|
|
|
|
# gst1-plugins-ugly
|
|
|
|
#
|
2013-07-22 07:56:13 +02:00
|
|
|
################################################################################
|
2013-06-21 00:07:41 +02:00
|
|
|
|
2021-09-13 23:04:04 +02:00
|
|
|
GST1_PLUGINS_UGLY_VERSION = 1.18.5
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_SOURCE = gst-plugins-ugly-$(GST1_PLUGINS_UGLY_VERSION).tar.xz
|
2016-09-06 01:13:04 +02:00
|
|
|
GST1_PLUGINS_UGLY_SITE = https://gstreamer.freedesktop.org/src/gst-plugins-ugly
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_LICENSE_FILES = COPYING
|
|
|
|
# GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled.
|
2017-03-30 15:43:34 +02:00
|
|
|
GST1_PLUGINS_UGLY_LICENSE = LGPL-2.1+
|
2013-06-21 00:07:41 +02:00
|
|
|
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
|
2013-06-21 00:07:41 +02:00
|
|
|
|
2016-01-18 22:36:04 +01:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += \
|
2020-09-24 23:17:11 +02:00
|
|
|
-Dtests=disabled \
|
|
|
|
-Ddoc=disabled
|
2019-07-13 23:43:20 +02:00
|
|
|
|
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += \
|
|
|
|
-Da52dec=disabled \
|
|
|
|
-Damrnb=disabled \
|
|
|
|
-Damrwbdec=disabled \
|
|
|
|
-Dcdio=disabled \
|
|
|
|
-Dsidplay=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
|
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES = gstreamer1 gst1-plugins-base
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dorc=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += orc
|
2019-07-13 23:43:20 +02:00
|
|
|
else
|
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dorc=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_ASFDEMUX),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dasfdemux=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dasfdemux=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDLPCMDEC),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdlpcmdec=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdlpcmdec=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDSUB),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdsub=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdsub=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
2019-04-19 23:15:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_XINGMUX),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dxingmux=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dxingmux=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_REALMEDIA),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Drealmedia=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Drealmedia=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdread=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += libdvdread
|
|
|
|
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
|
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdread=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dmpeg2dec=enabled
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += libmpeg2
|
2017-02-07 09:49:58 +01:00
|
|
|
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dmpeg2dec=disabled
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
2016-01-08 15:32:19 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_X264),y)
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dx264=enabled
|
2016-01-08 15:32:19 +01:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += x264
|
|
|
|
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
|
|
|
|
else
|
2019-07-13 23:43:20 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += -Dx264=disabled
|
2016-01-08 15:32:19 +01:00
|
|
|
endif
|
|
|
|
|
2013-06-21 00:07:41 +02:00
|
|
|
# Add GPL license if GPL plugins enabled.
|
|
|
|
ifeq ($(GST1_PLUGINS_UGLY_HAS_GPL_LICENSE),y)
|
2020-09-26 15:52:34 +02:00
|
|
|
GST1_PLUGINS_UGLY_LICENSE += , GPL-2.0
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Use the following command to extract license info for plugins.
|
|
|
|
# # find . -name 'plugin-*.xml' | xargs grep license
|
|
|
|
|
2019-07-13 23:43:20 +02:00
|
|
|
$(eval $(meson-package))
|