Blame vars/libzip.vars

Lucio Andrés Illanes Albornoz 2294cf
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is assumed.
Lucio Andrés Illanes Albornoz 2294cf
#
Lucio Andrés Illanes Albornoz 2294cf
Lucio Andrés Illanes Albornoz 2294cf
pkg_libzip_configure() {
Lucio Andrés Illanes Albornoz 11b2d8
	local _build_type="";
Lucio Andrés Illanes Albornoz 11b2d8
	case "${BUILD}" in
Lucio Andrés Illanes Albornoz 11b2d8
	debug)		_build_type="Debug"; ;;
Lucio Andrés Illanes Albornoz 11b2d8
	release) 	_build_type="Release"; ;;
Lucio Andrés Illanes Albornoz 11b2d8
	*)		exit 1; ;;
Lucio Andrés Illanes Albornoz 11b2d8
	esac;
Lucio Andrés Illanes Albornoz 11b2d8
	rm -f config.cache;
Lucio Andrés Illanes Albornoz 11b2d8
	env	CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"		\
Lucio Andrés Illanes Albornoz 11b2d8
		PREFIX="" LDFLAGS="-lbz2"					\
Lucio Andrés Illanes Albornoz 11b2d8
	cmake	-DBZIP2_INCLUDE_DIR="${PKG_PREFIX}/include"			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a"		\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"				\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_BUILD_TYPE="${_build_type}"				\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lfts"			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_INSTALL_PREFIX=						\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_SYSTEM_NAME="Midipix"					\
Lucio Andrés Illanes Albornoz 11b2d8
		-DENABLE_GNUTLS=:BOOL=OFF					\
Lucio Andrés Illanes Albornoz 11b2d8
		-DENABLE_MBEDTLS=:BOOL=OFF					\
Lucio Andrés Illanes Albornoz 11b2d8
		-DOPENSSL_CRYPTO_LIBRARY="${PKG_PREFIX}/lib/libcrypto.lib.a"	\
Lucio Andrés Illanes Albornoz 11b2d8
		-DOPENSSL_SSL_LIBRARY="${PKG_PREFIX}/lib/libssl.lib.a"		\
Lucio Andrés Illanes Albornoz 11b2d8
		-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"			\
Lucio Andrés Illanes Albornoz a23250
		-DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a"			\
Lucio Andrés Illanes Albornoz 6c13bc
		-DLIBLZMA_INCLUDE_DIR="${PKG_PREFIX}/include"                   \
Lucio Andrés Illanes Albornoz 6c13bc
		-DLIBLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a"             \
Lucio Andrés Illanes Albornoz 11b2d8
		"../libzip-${PKG_VERSION}";
Lucio Andrés Illanes Albornoz 11b2d8
};
Lucio Andrés Illanes Albornoz 11b2d8
Lucio Andrés Illanes Albornoz 11b2d8
pkg_libzip_host_configure() {
Lucio Andrés Illanes Albornoz 11b2d8
	local _build_type="";
Lucio Andrés Illanes Albornoz 11b2d8
	case "${BUILD}" in
Lucio Andrés Illanes Albornoz 11b2d8
	debug)		_build_type="Debug"; ;;
Lucio Andrés Illanes Albornoz 11b2d8
	release) 	_build_type="Release"; ;;
Lucio Andrés Illanes Albornoz 11b2d8
	*)		exit 1; ;;
Lucio Andrés Illanes Albornoz 11b2d8
	esac;
Lucio Andrés Illanes Albornoz 11b2d8
	rm -f config.cache;
Lucio Andrés Illanes Albornoz 41b9f6
	env	PREFIX="" LDFLAGS="-L${PKG_PREFIX}/lib -lbz2 -lfts -lssl"	\
Lucio Andrés Illanes Albornoz 11b2d8
	cmake	-DCMAKE_BUILD_TYPE="${_build_type}"				\
Lucio Andrés Illanes Albornoz 7587a9
		-DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lcrypto -lfts"		\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER			\
Lucio Andrés Illanes Albornoz 11b2d8
		-DCMAKE_INSTALL_PREFIX=						\
Lucio Andrés Illanes Albornoz 11b2d8
		-DENABLE_GNUTLS=:BOOL=OFF					\
Lucio Andrés Illanes Albornoz 11b2d8
		-DENABLE_MBEDTLS=:BOOL=OFF					\
Lucio Andrés Illanes Albornoz 11b2d8
		"../libzip-${PKG_VERSION}";
Lucio Andrés Illanes Albornoz 11b2d8
};
Lucio Andrés Illanes Albornoz 11b2d8
Lucio Andrés Illanes Albornoz 11b2d8
# vim:filetype=sh