aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2018-05-06 11:42:29 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-28 22:55:58 +0200
commit689c083f571e0c88463a451cb4e64c1470b67afb (patch)
tree2c424fd94dbbd2f82ea44960b368f650ff31adb0
parent61447331bd5540b1d720fe06fdbec85ec297aaaf (diff)
downloadbuildroot-689c083f571e0c88463a451cb4e64c1470b67afb.tar.gz
buildroot-689c083f571e0c88463a451cb4e64c1470b67afb.tar.bz2
libnice: add gstreamer support
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/libnice/libnice.mk17
1 files changed, 14 insertions, 3 deletions
diff --git a/package/libnice/libnice.mk b/package/libnice/libnice.mk
index e023728f44..49c29f9a60 100644
--- a/package/libnice/libnice.mk
+++ b/package/libnice/libnice.mk
@@ -10,8 +10,19 @@ LIBNICE_LICENSE = MPL-1.1 or LGPL-2.1
LIBNICE_LICENSE_FILES = COPYING COPYING.MPL COPYING.LGPL
LIBNICE_DEPENDENCIES = gnutls libglib2 host-pkgconf
LIBNICE_INSTALL_STAGING = YES
-LIBNICE_CONF_OPTS = \
- --without-gstreamer \
- --without-gstreamer-0.10
+
+ifeq ($(BR2_PACKAGE_GST_PLUGINS_BASE),y)
+LIBNICE_CONF_OPTS += --with-gstreamer-0.10
+LIBNICE_DEPENDENCIES += gst-plugins-base
+else
+LIBNICE_CONF_OPTS += --without-gstreamer-0.10
+endif
+
+ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
+LIBNICE_CONF_OPTS += --with-gstreamer
+LIBNICE_DEPENDENCIES += gst1-plugins-base
+else
+LIBNICE_CONF_OPTS += --without-gstreamer
+endif
$(eval $(autotools-package))