2015-11-24 18:11:06 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# minizip
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-01-15 20:48:39 +01:00
|
|
|
MINIZIP_VERSION = 2.8.2
|
2015-11-24 18:11:06 +01:00
|
|
|
MINIZIP_SITE = $(call github,nmoinvaz,minizip,$(MINIZIP_VERSION))
|
2019-01-15 20:48:39 +01:00
|
|
|
MINIZIP_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
|
|
|
$(if $(BR2_PACKAGE_LIBBSD),libbsd) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2015-11-24 18:11:06 +01:00
|
|
|
MINIZIP_INSTALL_STAGING = YES
|
2019-01-28 21:04:07 +01:00
|
|
|
MINIZIP_CONF_OPTS = \
|
|
|
|
$(if $(BR2_PACKAGE_MINIZIP_DEMOS),-DBUILD_TEST=ON) \
|
|
|
|
-DUSE_COMPAT=OFF
|
2017-03-30 15:43:47 +02:00
|
|
|
MINIZIP_LICENSE = Zlib
|
2015-11-24 18:11:06 +01:00
|
|
|
MINIZIP_LICENSE_FILES = LICENSE
|
|
|
|
|
2018-09-23 14:11:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
MINIZIP_DEPENDENCIES += bzip2
|
|
|
|
MINIZIP_CONF_OPTS += -DUSE_BZIP2=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DUSE_BZIP2=OFF
|
|
|
|
endif
|
|
|
|
|
2019-01-15 20:48:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
MINIZIP_DEPENDENCIES += openssl
|
|
|
|
MINIZIP_CONF_OPTS += -DUSE_OPENSSL=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DUSE_OPENSSL=OFF
|
|
|
|
endif
|
|
|
|
|
2018-09-23 14:11:42 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
MINIZIP_DEPENDENCIES += zlib
|
|
|
|
MINIZIP_CONF_OPTS += -DUSE_ZLIB=ON
|
|
|
|
else
|
|
|
|
MINIZIP_CONF_OPTS += -DUSE_ZLIB=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|