Blame vars/libssh.vars

9814cc
#
9814cc
# set +o errexit -o noglob -o nounset is assumed.
9814cc
#
9814cc
9814cc
pkg_libssh_configure() {
9814cc
	if ! rtl_fileop rm config.cache							\
9814cc
	|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX=""		\
9814cc
		cmake	-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"				\
9814cc
			-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"			\
9814cc
			-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY"			\
9814cc
			-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY"			\
9814cc
			-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER"			\
9814cc
			-DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}"				\
9814cc
			-DCMAKE_INSTALL_PREFIX=""					\
9814cc
			-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"			\
9814cc
			-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"			\
9814cc
			-DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.lib.a"			\
9814cc
			-DWITH_SYMBOL_VERSIONING=OFF					\
9814cc
			-DWITH_GCRYPT=ON						\
9814cc
			-DWITH_EXAMPLES=OFF						\
9814cc
			-DPKG_CONFIG_EXECUTABLE=${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config \
9814cc
					"../libssh-${PKG_VERSION}"; then
9814cc
		return 1;
9814cc
	fi;
9814cc
};
9814cc
9814cc
# vim:filetype=sh textwidth=0