947dea9308
Use new upstream URL libzip.org. Add optional dependency to liblzma introduced with version 1.6.0: https://libzip.org/news/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [yann.morin.1998@free.fr: two spaces in hash file] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# libzip
|
|
#
|
|
################################################################################
|
|
|
|
LIBZIP_VERSION = 1.6.1
|
|
LIBZIP_SITE = https://libzip.org/download
|
|
LIBZIP_SOURCE = libzip-$(LIBZIP_VERSION).tar.xz
|
|
LIBZIP_LICENSE = BSD-3-Clause
|
|
LIBZIP_LICENSE_FILES = LICENSE
|
|
LIBZIP_INSTALL_STAGING = YES
|
|
LIBZIP_DEPENDENCIES = zlib
|
|
HOST_LIBZIP_DEPENDENCIES = host-zlib
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
LIBZIP_DEPENDENCIES += bzip2
|
|
else
|
|
LIBZIP_CONF_OPTS += -DCMAKE_DISABLE_FIND_PACKAGE_BZIP2=TRUE
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
LIBZIP_DEPENDENCIES += gnutls
|
|
LIBZIP_CONF_OPTS += -DENABLE_GNUTLS=ON
|
|
else
|
|
LIBZIP_CONF_OPTS += -DENABLE_GNUTLS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBZIP_DEPENDENCIES += openssl
|
|
LIBZIP_CONF_OPTS += -DENABLE_OPENSSL=ON
|
|
else
|
|
LIBZIP_CONF_OPTS += -DENABLE_OPENSSL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
|
LIBZIP_DEPENDENCIES += musl-fts
|
|
LIBZIP_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-lfts
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
LIBZIP_DEPENDENCIES += xz
|
|
LIBZIP_CONF_OPTS += -DENABLE_LZMA=ON
|
|
else
|
|
LIBZIP_CONF_OPTS += -DENABLE_LZMA=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|