package/libzip: add mbedtls optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 20 Jul 2020 20:42:07 +0000 (22:42 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 21 Jul 2020 07:32:04 +0000 (09:32 +0200)
mbedtls is available (and enabled by default) since version 1.5.2 and
https://github.com/nih-at/libzip/commit/8e01a4fe8fa830c973b6a00f0da1e8b01789529a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libzip/libzip.mk

index 6023dbec1b97a43adaf372ed5c3fcd387b14e359..9d64db32fa4469b519516c092fbcb15a3823cab1 100644 (file)
@@ -27,6 +27,13 @@ else
 LIBZIP_CONF_OPTS += -DENABLE_GNUTLS=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+LIBZIP_DEPENDENCIES += mbedtls
+LIBZIP_CONF_OPTS += -DENABLE_MBEDTLS=ON
+else
+LIBZIP_CONF_OPTS += -DENABLE_MBEDTLS=OFF
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIBZIP_DEPENDENCIES += openssl
 LIBZIP_CONF_OPTS += -DENABLE_OPENSSL=ON