Blame groups.d/251.native_packages_lib.d/libzip.package

27aaff
: ${PKG_LIBZIP_DEPENDS:="bzip2 gnutls libz musl_fts nettle"};
27aaff
: ${PKG_LIBZIP_SHA256SUM:=a020dc1b17a79faa748e43a05f8605d65e403813e8e97ad3a300a90ddba097ac};
27aaff
: ${PKG_LIBZIP_VERSION:=1.7.1};
27aaff
: ${PKG_LIBZIP_URL:=https://libzip.org/download/libzip-${PKG_LIBZIP_VERSION}.tar.xz};
27aaff
: ${PKG_LIBZIP_CMAKE_ARGS_EXTRA:="
27aaff
	-DBZIP2_INCLUDE_DIR=${PREFIX_NATIVE}/include
27aaff
	-DBZIP2_LIBRARIES=${PREFIX_NATIVE}/lib/libbz2.lib.a
27aaff
	-DENABLE_GNUTLS=:BOOL=ON
27aaff
	-DENABLE_MBEDTLS=:BOOL=OFF
27aaff
	-DGNUTLS_INCLUDE_DIR=${PREFIX_NATIVE}/include
27aaff
	-DGNUTLS_LIBRARY=${PREFIX_NATIVE}/lib/libgnutls.lib.a
27aaff
	-DLIBLZMA_INCLUDE_DIR=${PREFIX_NATIVE}/include
27aaff
	-DLIBLZMA_LIBRARY=${PREFIX_NATIVE}/lib/liblzma.lib.a
27aaff
	-DNETTLE_INCLUDE_DIR=${PREFIX_NATIVE}/include
27aaff
	-DNETTLE_LIBRARY=${PREFIX_NATIVE}/lib/libnettle.lib.a
27aaff
	-DOPENSSL_CRYPTO_LIBRARY=${PREFIX_NATIVE}/lib/libcrypto.lib.a
27aaff
	-DOPENSSL_SSL_LIBRARY=${PREFIX_NATIVE}/lib/libssl.lib.a
27aaff
	-DZLIB_INCLUDE_DIR=${PREFIX_NATIVE}/include
27aaff
	-DZLIB_LIBRARY=${PREFIX_NATIVE}/lib/libz.a"};
27aaff
27aaff
ex_pkg_register "libzip" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages";
27aaff
27aaff
# vim:filetype=sh textwidth=0