package/gstreamer1/gst1-plugins-ugly: convert package type to meson

Other changes:
  - Remove --disable-twolame as this plugin is now in gst1-plugins-good.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Adam Duskett 2019-07-13 17:43:20 -04:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 5d6c408e95
commit 908eebd363

View File

@ -11,79 +11,84 @@ GST1_PLUGINS_UGLY_LICENSE_FILES = COPYING
# GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled. # GPL licensed plugins will append to GST1_PLUGINS_UGLY_LICENSE if enabled.
GST1_PLUGINS_UGLY_LICENSE = LGPL-2.1+ GST1_PLUGINS_UGLY_LICENSE = LGPL-2.1+
GST1_PLUGINS_UGLY_CONF_OPTS = --disable-examples --disable-valgrind GST1_PLUGINS_UGLY_LDFLAGS = $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
GST1_PLUGINS_UGLY_CONF_OPTS += \ GST1_PLUGINS_UGLY_CONF_OPTS += \
--disable-a52dec \ -Dexamples=disabled \
--disable-amrnb \ -Dtests=disabled
--disable-amrwb \
--disable-cdio \ GST1_PLUGINS_UGLY_CONF_OPTS += \
--disable-sidplay \ -Da52dec=disabled \
--disable-twolame -Damrnb=disabled \
-Damrwbdec=disabled \
-Dcdio=disabled \
-Dsidplay=disabled
GST1_PLUGINS_UGLY_DEPENDENCIES = gstreamer1 gst1-plugins-base GST1_PLUGINS_UGLY_DEPENDENCIES = gstreamer1 gst1-plugins-base
ifeq ($(BR2_PACKAGE_ORC),y) ifeq ($(BR2_PACKAGE_ORC),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-orc GST1_PLUGINS_UGLY_CONF_OPTS += -Dorc=enabled
GST1_PLUGINS_UGLY_DEPENDENCIES += orc GST1_PLUGINS_UGLY_DEPENDENCIES += orc
else
GST1_PLUGINS_UGLY_CONF_OPTS += -Dorc=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_ASFDEMUX),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_ASFDEMUX),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-asfdemux GST1_PLUGINS_UGLY_CONF_OPTS += -Dasfdemux=enabled
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-asfdemux GST1_PLUGINS_UGLY_CONF_OPTS += -Dasfdemux=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDLPCMDEC),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDLPCMDEC),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdlpcmdec GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdlpcmdec=enabled
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdlpcmdec GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdlpcmdec=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDSUB),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDSUB),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdsub GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdsub=enabled
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdsub GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdsub=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_XINGMUX),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_XINGMUX),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-xingmux GST1_PLUGINS_UGLY_CONF_OPTS += -Dxingmux=enabled
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-xingmux GST1_PLUGINS_UGLY_CONF_OPTS += -Dxingmux=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_REALMEDIA),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_REALMEDIA),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-realmedia GST1_PLUGINS_UGLY_CONF_OPTS += -Drealmedia=enabled
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-realmedia GST1_PLUGINS_UGLY_CONF_OPTS += -Drealmedia=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_DVDREAD),y)
# configure does not use pkg-config to detect libdvdread # configure does not use pkg-config to detect libdvdread
ifeq ($(BR2_PACKAGE_LIBDVDCSS)$(BR2_STATIC_LIBS),yy) ifeq ($(BR2_PACKAGE_LIBDVDCSS)$(BR2_STATIC_LIBS),yy)
GST1_PLUGINS_UGLY_CONF_ENV += LIBS="-ldvdcss" GST1_PLUGINS_UGLY_LDFLAGS += "-ldvdcss"
endif endif
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-dvdread GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdread=enabled
GST1_PLUGINS_UGLY_DEPENDENCIES += libdvdread GST1_PLUGINS_UGLY_DEPENDENCIES += libdvdread
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-dvdread GST1_PLUGINS_UGLY_CONF_OPTS += -Ddvdread=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_MPEG2DEC),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-mpeg2dec GST1_PLUGINS_UGLY_CONF_OPTS += -Dmpeg2dec=enabled
GST1_PLUGINS_UGLY_DEPENDENCIES += libmpeg2 GST1_PLUGINS_UGLY_DEPENDENCIES += libmpeg2
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-mpeg2dec GST1_PLUGINS_UGLY_CONF_OPTS += -Dmpeg2dec=disabled
endif endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_X264),y) ifeq ($(BR2_PACKAGE_GST1_PLUGINS_UGLY_PLUGIN_X264),y)
GST1_PLUGINS_UGLY_CONF_OPTS += --enable-x264 GST1_PLUGINS_UGLY_CONF_OPTS += -Dx264=enabled
GST1_PLUGINS_UGLY_DEPENDENCIES += x264 GST1_PLUGINS_UGLY_DEPENDENCIES += x264
GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y GST1_PLUGINS_UGLY_HAS_GPL_LICENSE = y
else else
GST1_PLUGINS_UGLY_CONF_OPTS += --disable-x264 GST1_PLUGINS_UGLY_CONF_OPTS += -Dx264=disabled
endif endif
# Add GPL license if GPL plugins enabled. # Add GPL license if GPL plugins enabled.
@ -94,4 +99,4 @@ endif
# Use the following command to extract license info for plugins. # Use the following command to extract license info for plugins.
# # find . -name 'plugin-*.xml' | xargs grep license # # find . -name 'plugin-*.xml' | xargs grep license
$(eval $(autotools-package)) $(eval $(meson-package))