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
|
|
|
|
2016-11-30 12:25:13 +01:00
|
|
|
GST1_PLUGINS_UGLY_VERSION = 1.10.2
|
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.
|
|
|
|
GST1_PLUGINS_UGLY_LICENSE = LGPLv2.1+
|
|
|
|
|
2014-10-19 11:59:01 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS = --disable-examples --disable-valgrind
|
2013-06-21 00:07:41 +02:00
|
|
|
|
2016-01-18 22:36:04 +01:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += \
|
2013-06-21 00:07:41 +02:00
|
|
|
--disable-a52dec \
|
|
|
|
--disable-amrnb \
|
|
|
|
--disable-amrwb \
|
|
|
|
--disable-cdio \
|
|
|
|
--disable-sidplay \
|
2016-01-08 15:32:19 +01:00
|
|
|
--disable-twolame
|
2013-06-21 00:07:41 +02:00
|
|
|
|
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES = gstreamer1 gst1-plugins-base
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-orc
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += orc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_ASFDEMUX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-asfdemux
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-asfdemux
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDLPCMDEC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdlpcmdec
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdlpcmdec
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDSUB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdsub
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdsub
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST_PLUGINS_UGL1_PLUGIN_XINGMUX),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-xingmux
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-xingmux
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_REALMEDIA),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-realmedia
|
2013-06-21 00:07:41 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-realmedia
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD),y)
|
2016-06-19 18:20:29 +02:00
|
|
|
# configure does not use pkg-config to detect libdvdread
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDVDCSS)$(BR2_STATIC_LIBS),yy)
|
|
|
|
GST1_PLUGINS_UGLY_CONF_ENV += LIBS="-ldvdcss"
|
|
|
|
endif
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdread
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += libdvdread
|
|
|
|
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdread
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_LAME),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-lame
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += lame
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-lame
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MAD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mad
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += libid3tag libmad
|
|
|
|
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mad
|
2013-06-21 00:07:41 +02:00
|
|
|
endif
|
|
|
|
|
2016-03-25 13:50:12 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPG123),y)
|
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mpg123
|
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += mpg123
|
|
|
|
else
|
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mpg123
|
|
|
|
endif
|
|
|
|
|
2013-06-21 00:07:41 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mpeg2dec
|
2013-06-21 00:07:41 +02:00
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += libmpeg2
|
|
|
|
GST1_PLUGINS_ULGY_HAS_GPL_LICENSE = y
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mpeg2dec
|
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)
|
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-x264
|
|
|
|
GST1_PLUGINS_UGLY_DEPENDENCIES += x264
|
|
|
|
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
|
|
|
|
else
|
|
|
|
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-x264
|
|
|
|
endif
|
|
|
|
|
2013-06-21 00:07:41 +02:00
|
|
|
# Add GPL license if GPL plugins enabled.
|
|
|
|
ifeq ($(GST1_PLUGINS_UGLY_HAS_GPL_LICENSE),y)
|
|
|
|
GST1_PLUGINS_UGLY_LICENSE += GPLv2
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Use the following command to extract license info for plugins.
|
|
|
|
# # find . -name 'plugin-*.xml' | xargs grep license
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|