wireshark: add optional gnutls support
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 2 Dec 2015 20:48:19 +0000 (17:48 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 3 Dec 2015 21:37:57 +0000 (22:37 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/wireshark/wireshark.mk

index cc9fb415b350c425f453ab2d98e41fb1747355d0..0bc780172cec561d61c2a018397b5c6d7a9f5215 100644 (file)
@@ -22,7 +22,6 @@ WIRESHARK_CONF_OPTS = \
        --without-krb5 \
        --disable-usr-local \
        --enable-static=no \
-       --with-gnutls=no \
        --with-libsmi=no \
        --with-lua=no \
        --includedir=$(STAGING_DIR)/usr/include
@@ -63,6 +62,13 @@ else
 WIREHARK_CONF_OPTS += --without-c-ares
 endif
 
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+WIRESHARK_CONF_OPTS += --with-gnutls=yes
+WIRESHARK_DEPENDENCIES += gnutls
+else
+WIRESHARK_CONF_OPTS += --with-gnutls=no
+endif
+
 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
 WIRESHARK_CONF_ENV = LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
 WIRESHARK_CONF_OPTS += --with-gcrypt=yes