diff --git a/package/kmscube/Config.in b/package/kmscube/Config.in index 7379675609..f68f38b7a8 100644 --- a/package/kmscube/Config.in +++ b/package/kmscube/Config.in @@ -11,6 +11,20 @@ config BR2_PACKAGE_KMSCUBE https://cgit.freedesktop.org/mesa/kmscube/ +if BR2_PACKAGE_KMSCUBE + +config BR2_PACKAGE_KMSCUBE_GSTREAMER + bool "Enable gstreamer video support" + depends on BR2_USE_WCHAR # glib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_GST1_PLUGINS_BASE + select BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_APP + select BR2_PACKAGE_GSTREAMER1 + +endif + comment "kmscube needs EGL, GBM and OpenGL ES, and a toolchain w/ thread support" depends on \ !BR2_PACKAGE_HAS_LIBEGL || \ diff --git a/package/kmscube/kmscube.mk b/package/kmscube/kmscube.mk index a47df74f7b..eeb22061fb 100644 --- a/package/kmscube/kmscube.mk +++ b/package/kmscube/kmscube.mk @@ -10,6 +10,13 @@ KMSCUBE_LICENSE = MIT KMSCUBE_LICENSE_FILES = COPYING KMSCUBE_DEPENDENCIES = host-pkgconf libdrm libegl libgbm libgles +ifeq ($(BR2_PACKAGE_KMSCUBE_GSTREAMER),y) +KMSCUBE_DEPENDENCIES += gst1-plugins-base gstreamer1 libglib2 +KMSCUBE_CONF_OPTS += -Dgstreamer=enabled +else +KMSCUBE_CONF_OPTS += -Dgstreamer=disabled +endif + ifeq ($(BR2_PACKAGE_LIBPNG),y) KMSCUBE_DEPENDENCIES += libpng # libpng is automatically detected in meson, there is no build