Use ENABLE_BZIP2 option which is available since version 1.5.2 and
https://github.com/nih-at/libzip/commit/
028c492c9d45ca29e2fbec79a203ba492016f15e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
ifeq ($(BR2_PACKAGE_BZIP2),y)
LIBZIP_DEPENDENCIES += bzip2
+LIBZIP_CONF_OPTS += -DENABLE_BZIP2=ON
else
-LIBZIP_CONF_OPTS += -DCMAKE_DISABLE_FIND_PACKAGE_BZIP2=TRUE
+LIBZIP_CONF_OPTS += -DENABLE_BZIP2=OFF
endif
ifeq ($(BR2_PACKAGE_GNUTLS),y)