2022-06-02 12:50:33 +00:00
|
|
|
package=libzip
|
2024-09-24 11:04:32 +00:00
|
|
|
$(package)_version=1.11.1
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_download_path=https://libzip.org/download/
|
2024-09-24 11:04:32 +00:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=c0e6fa52a62ba11efd30262290dc6970947aef32e0cc294ee50e9005ceac092a
|
2023-01-07 16:23:01 +00:00
|
|
|
$(package)_dependencies=zlib
|
2024-09-24 11:04:32 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts := -DENABLE_BZIP2=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_LZMA=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_ZSTD=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_COMMONCRYPTO=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_GNUTLS=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_MBEDTLS=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_OPENSSL=OFF
|
|
|
|
$(package)_config_opts += -DENABLE_WINDOWS_CRYPTO=OFF
|
|
|
|
$(package)_config_opts += -DBUILD_SHARED_LIBS=OFF
|
|
|
|
$(package)_config_opts += -DBUILD_TOOLS=OFF
|
|
|
|
$(package)_config_opts += -DBUILD_REGRESS=OFF
|
|
|
|
$(package)_config_opts += -DBUILD_OSSFUZZ=OFF
|
|
|
|
$(package)_config_opts += -DBUILD_EXAMPLES=OFF
|
|
|
|
$(package)_config_opts += -DBUILD_DOC=OFF
|
|
|
|
endef
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2024-09-24 11:04:32 +00:00
|
|
|
rm -rf regress ossfuzz
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2024-09-24 11:04:32 +00:00
|
|
|
$($(package)_cmake) .
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
2024-09-24 11:04:32 +00:00
|
|
|
endef
|