From 8fa81b008f9904fc851dd121790610156503b612 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 19 Oct 2026 12:01:31 +0100 Subject: [PATCH] gst1-plugins-base: package the device monitor Package gst-device-monitor for camera capability discovery and track the tool selection in the build configuration. Signed-off-by: Daniel Golle --- multimedia/gst1-plugins-base/Makefile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile index 5949d2cb09..2f6439b5d9 100644 --- a/multimedia/gst1-plugins-base/Makefile +++ b/multimedia/gst1-plugins-base/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gst1-plugins-base PKG_VERSION:=1.28.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://gstreamer.freedesktop.org/src/gst-plugins-base @@ -27,12 +27,14 @@ include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/meson.mk PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-device-monitor \ CONFIG_PACKAGE_gst1-mod-alsa \ CONFIG_PACKAGE_gst1-mod-app \ CONFIG_PACKAGE_gst1-mod-audioconvert \ CONFIG_PACKAGE_gst1-mod-audiorate \ CONFIG_PACKAGE_gst1-mod-audioresample \ CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-encoding \ CONFIG_PACKAGE_gst1-mod-playback \ CONFIG_PACKAGE_gst1-mod-gio \ CONFIG_PACKAGE_gst1-mod-ogg \ @@ -63,6 +65,16 @@ define Package/gstreamer1-base/description/Default GStreamer open source multimedia framework endef +define Package/gst1-device-monitor + $(call Package/gstreamer1-base/Default) + TITLE+= device discovery utility +endef + +define Package/gst1-device-monitor/description + List devices, their capabilities and GStreamer source properties using + the upstream gst-device-monitor-1.0 utility. +endef + define Package/gst1-plugins-base $(call Package/gstreamer1-base/Default) @@ -169,7 +181,7 @@ MESON_ARGS += \ \ -Dexamples=disabled \ -Dtests=disabled \ - -Dtools=disabled \ + -Dtools=$(if $(CONFIG_PACKAGE_gst1-device-monitor),en,dis)abled \ -Dintrospection=disabled \ -Dnls=enabled \ -Dorc=disabled \ @@ -221,6 +233,12 @@ define Package/gstreamer1-plugins-base/install true endef +define Package/gst1-device-monitor/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gst-device-monitor-$(GST_VERSION) \ + $(1)/usr/bin/ +endef + # 1: short name # 2: description # 3: dependencies on other gstreamer libraries (short name) @@ -338,3 +356,4 @@ $(eval $(call GstBuildPlugin,vorbis,Vorbis,audio tag,ogg,+libvorbis)) $(eval $(call BuildPackage,gstreamer1-plugins-base)) $(eval $(call BuildPackage,gst1-plugins-base)) +$(eval $(call BuildPackage,gst1-device-monitor))