2015-11-24 18:11:06 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# minizip
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-07-27 12:31:16 +02:00
|
|
|
MINIZIP_VERSION = 3.0.2
|
2015-11-24 18:11:06 +01:00
|
|
|
MINIZIP_SITE = $(call github,nmoinvaz,minizip,$(MINIZIP_VERSION))
|
2020-12-21 14:57:06 +01:00
|
|
|
MINIZIP_DEPENDENCIES = host-pkgconf
|
2015-11-24 18:11:06 +01:00
|
|
|
MINIZIP_INSTALL_STAGING = YES
|
2019-01-28 21:04:07 +01:00
|
|
|
MINIZIP_CONF_OPTS = \
|
2019-11-06 18:59:57 +01:00
|
|
|
$(if $(BR2_PACKAGE_MINIZIP_DEMOS),-DMZ_BUILD_TEST=ON) \
|
2020-12-21 14:57:06 +01:00
|
|
|
-DMZ_COMPAT=OFF \
|
|
|
|
-DMZ_FETCH_LIBS=OFF
|
2017-03-30 15:43:47 +02:00
|
|
|
MINIZIP_LICENSE = Zlib
|
2015-11-24 18:11:06 +01:00
|
|
|
MINIZIP_LICENSE_FILES = LICENSE
|
2021-05-23 16:19:25 +02:00
|
|
|
MINIZIP_CPE_ID_VENDOR = minizip_project
|
2015-11-24 18:11:06 +01:00
|
|
|
|
2018-09-23 14:11:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
MINIZIP_DEPENDENCIES += bzip2
|
2019-11-06 18:59:57 +01:00
|
|
|
MINIZIP_CONF_OPTS += -DMZ_BZIP2=ON
|
2018-09-23 14:11:42 +02:00
|
|
|
else
|
2019-11-06 18:59:57 +01:00
|
|
|
MINIZIP_CONF_OPTS += -DMZ_BZIP2=OFF
|
2018-09-23 14:11:42 +02:00
|
|
|
endif
|
|
|
|
|
2020-12-21 14:57:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
MINIZIP_DEPENDENCIES += libiconv
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_ICONV=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_ICONV=OFF
|
|
|
|
endif
|
|
|
|
|
2020-07-14 14:04:01 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBBSD),y)
|
|
|
|
MINIZIP_DEPENDENCIES += libbsd
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_LIBBSD=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_LIBBSD=OFF
|
|
|
|
endif
|
|
|
|
|
2019-01-15 20:48:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
MINIZIP_DEPENDENCIES += openssl
|
2020-12-25 23:13:43 +01:00
|
|
|
MINIZIP_CONF_OPTS += \
|
|
|
|
-DMZ_OPENSSL=ON \
|
|
|
|
-DMZ_PKCRYPT=ON \
|
|
|
|
-DMZ_WZAES=ON
|
2019-01-15 20:48:39 +01:00
|
|
|
else
|
2020-12-25 23:13:43 +01:00
|
|
|
MINIZIP_CONF_OPTS += \
|
|
|
|
-DMZ_OPENSSL=OFF \
|
|
|
|
-DMZ_PKCRYPT=OFF \
|
|
|
|
-DMZ_WZAES=OFF
|
2019-01-15 20:48:39 +01:00
|
|
|
endif
|
|
|
|
|
2020-12-21 14:57:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
|
|
MINIZIP_DEPENDENCIES += xz
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_LZMA=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_LZMA=OFF
|
|
|
|
endif
|
|
|
|
|
2018-09-23 14:11:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
MINIZIP_DEPENDENCIES += zlib
|
2019-11-06 18:59:57 +01:00
|
|
|
MINIZIP_CONF_OPTS += -DMZ_ZLIB=ON
|
2018-09-23 14:11:42 +02:00
|
|
|
else
|
2019-11-06 18:59:57 +01:00
|
|
|
MINIZIP_CONF_OPTS += -DMZ_ZLIB=OFF
|
2018-09-23 14:11:42 +02:00
|
|
|
endif
|
|
|
|
|
2020-07-14 14:04:01 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
|
|
|
MINIZIP_DEPENDENCIES += zstd
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_ZSTD=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DMZ_ZSTD=OFF
|
|
|
|
endif
|
|
|
|
|
2018-09-23 14:11:42 +02:00
|
|
|
$(eval $(cmake-package))
|