Blame vars/minizip.vars

78fd1c
#
78fd1c
# set +o errexit -o noglob -o nounset is assumed.
78fd1c
#
78fd1c
78fd1c
pkg_minizip_configure() {
78fd1c
	if ! rtl_fileop rm config.cache							\
78fd1c
	|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX=""		\
78fd1c
		cmake	-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"				\
78fd1c
			-DCMAKE_BUILD_TYPE="Debug"					\
78fd1c
			-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"			\
78fd1c
			-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_CXX}"			\
78fd1c
			-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY"			\
78fd1c
			-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER"			\
78fd1c
			-DCMAKE_INSTALL_PREFIX=""					\
78fd1c
			-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"			\
78fd1c
			-DPKG_CONFIG_EXECUTABLE="${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config" \
78fd1c
			-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"			\
78fd1c
			-DZLIB_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libz.lib.a"		\
78fd1c
			-DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a"		\
78fd1c
			-DMZ_OPENSSL=ON							\
78fd1c
			-DMZ_ZSTD=OFF							\
78fd1c
			-DMZ_LZMA=ON							\
78fd1c
			-DMZ_LIBBSD=OFF							\
78fd1c
			-DBUILD_SHARED_LIBS=ON						\
78fd1c
			-DMZ_BUILD_TEST=ON						\
78fd1c
			"../minizip-${PKG_VERSION}"; then
78fd1c
		return 1;
78fd1c
	fi;
78fd1c
};
78fd1c
78fd1c
# vim:filetype=sh textwidth=0