2021-12-09 10:31:29 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# zchunk
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-04-20 20:56:56 +02:00
|
|
|
ZCHUNK_VERSION = 1.2.2
|
2021-12-09 10:31:29 +01:00
|
|
|
ZCHUNK_SITE = $(call github,zchunk,zchunk,$(ZCHUNK_VERSION))
|
|
|
|
ZCHUNK_LICENSE = BSD-2-Clause
|
|
|
|
ZCHUNK_LICENSE_FILES = LICENSE
|
|
|
|
ZCHUNK_INSTALL_STAGING = YES
|
2022-05-19 18:40:38 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
|
|
|
ZCHUNK_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
ZCHUNK_LDFLAGS += $(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)
|
|
|
|
endif
|
2021-12-09 10:31:29 +01:00
|
|
|
|
2022-04-20 20:56:56 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
ZCHUNK_DEPENDENCIES += libcurl
|
|
|
|
ZCHUNK_CONF_OPTS += -Dwith-curl=enabled
|
|
|
|
else
|
|
|
|
ZCHUNK_CONF_OPTS += -Dwith-curl=disabled
|
|
|
|
endif
|
|
|
|
|
2021-12-09 10:31:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
ZCHUNK_DEPENDENCIES += openssl
|
|
|
|
ZCHUNK_CONF_OPTS += -Dwith-openssl=enabled
|
|
|
|
else
|
|
|
|
ZCHUNK_CONF_OPTS += -Dwith-openssl=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
|
|
|
ZCHUNK_DEPENDENCIES += zstd
|
|
|
|
ZCHUNK_CONF_OPTS += -Dwith-zstd=enabled
|
|
|
|
else
|
|
|
|
ZCHUNK_CONF_OPTS += -Dwith-zstd=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(meson-package))
|