summaryrefslogtreecommitdiffstats
path: root/package/multimedia/gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'package/multimedia/gstreamer')
-rw-r--r--package/multimedia/gstreamer/Config.in7
-rw-r--r--package/multimedia/gstreamer/gstreamer.mk10
2 files changed, 15 insertions, 2 deletions
diff --git a/package/multimedia/gstreamer/Config.in b/package/multimedia/gstreamer/Config.in
index 213d65010..8c8080173 100644
--- a/package/multimedia/gstreamer/Config.in
+++ b/package/multimedia/gstreamer/Config.in
@@ -1,8 +1,13 @@
config BR2_PACKAGE_GSTREAMER
bool "gstreamer"
select BR2_PACKAGE_LIBGLIB2
- select BR2_PACKAGE_LIBXML2
help
GStreamer is an open source multimedia framework.
http://gstreamer.freedesktop.org/
+
+config BR2_PACKAGE_GSTREAMER_LIBXML2
+ bool "require libxml2 for registry and load/save"
+ default y
+ select BR2_PACKAGE_LIBXML2
+ depends on BR2_PACKAGE_GSTREAMER
diff --git a/package/multimedia/gstreamer/gstreamer.mk b/package/multimedia/gstreamer/gstreamer.mk
index 8b30209b7..821a23349 100644
--- a/package/multimedia/gstreamer/gstreamer.mk
+++ b/package/multimedia/gstreamer/gstreamer.mk
@@ -24,6 +24,14 @@ GSTREAMER_CONF_OPT = \
--disable-tests \
--disable-failing-tests
-GSTREAMER_DEPENDENCIES = libglib2 libxml2 host-pkgconfig
+GSTREAMER_DEPENDENCIES = libglib2 host-pkgconfig
+
+ifeq ($(BR2_PACKAGE_GSTREAMER_LIBXML2),y)
+GSTREAMER_DEPENDENCIES += libxml2
+else
+GSTREAMER_CONF_OPT += \
+ --disable-registry \
+ --disable-loadsave
+endif
$(eval $(call AUTOTARGETS,package/multimedia,gstreamer))