package/libzip: use ENABLE_BZIP2
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 20 Jul 2020 20:42:06 +0000 (22:42 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 21 Jul 2020 07:31:52 +0000 (09:31 +0200)
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>
package/libzip/libzip.mk

index 379eb2c5df4bb3048bbd4d27fc7f5a1c1ba6d3ab..6023dbec1b97a43adaf372ed5c3fcd387b14e359 100644 (file)
@@ -15,8 +15,9 @@ HOST_LIBZIP_DEPENDENCIES = host-zlib
 
 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)