fd03e8192f
- Move to cmake infrastructure
- Do not enforce zlib dependency
- Add optional bzip2 dependency
- Add mandatory host-pkgconf and libbsd dependency
- Remove miniunzip from Config.in, miniunzip (miniunz) has been merged
with minizip:
a66cc31fac
- Add hash for license file
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
30 lines
778 B
Makefile
30 lines
778 B
Makefile
################################################################################
|
|
#
|
|
# minizip
|
|
#
|
|
################################################################################
|
|
|
|
MINIZIP_VERSION = 2.5.3
|
|
MINIZIP_SITE = $(call github,nmoinvaz,minizip,$(MINIZIP_VERSION))
|
|
MINIZIP_DEPENDENCIES = host-pkgconf libbsd
|
|
MINIZIP_INSTALL_STAGING = YES
|
|
MINIZIP_CONF_OPTS = $(if $(BR2_PACKAGE_MINIZIP_DEMOS),-DBUILD_TEST=ON)
|
|
MINIZIP_LICENSE = Zlib
|
|
MINIZIP_LICENSE_FILES = LICENSE
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
MINIZIP_DEPENDENCIES += bzip2
|
|
MINIZIP_CONF_OPTS += -DUSE_BZIP2=ON
|
|
else
|
|
MINIZIP_CONF_OPTS += -DUSE_BZIP2=OFF
|
|
endif
|
|
|
|
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))
|