libzip: add optional gnutls support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 8 Jul 2018 07:36:47 +0000 (09:36 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sun, 8 Jul 2018 10:17:45 +0000 (12:17 +0200)
gnutls support has been added since version 1.5.0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/libzip/libzip.mk

index 0253a61cda7319e3062fc46bd41942e0b9b7d734..20c04122ec4cceccec629f8e472f839fc28559cf 100644 (file)
@@ -18,6 +18,13 @@ else
 LIBZIP_CONF_OPTS += -DCMAKE_DISABLE_FIND_PACKAGE_BZIP2=TRUE
 endif
 
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+LIBZIP_DEPENDENCIES += gnutls
+LIBZIP_CONF_OPTS += -DENABLE_GNUTLS=ON
+else
+LIBZIP_CONF_OPTS += -DENABLE_GNUTLS=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIBZIP_DEPENDENCIES += openssl
 LIBZIP_CONF_OPTS += -DENABLE_OPENSSL=ON