Blame vars/tdnf.vars

62c6b4
#
62c6b4
# set +o errexit -o noglob -o nounset is assumed.
62c6b4
#
62c6b4
62c6b4
pkg_tdnf_configure() {
Lucio Andrés Illanes Albornoz d2fca9
	local _rc=0;
Lucio Andrés Illanes Albornoz d2fca9
	rtl_export_vars	\
Lucio Andrés Illanes Albornoz d2fca9
		PKG_CONFIG "${PKG_PKG_CONFIG:-}"					\
Lucio Andrés Illanes Albornoz d2fca9
		PKG_CONFIG_LIBDIR "${PKG_PKG_CONFIG_LIBDIR:-}";
Lucio Andrés Illanes Albornoz d2fca9
	if ! rtl_fileop rm config.cache							\
Lucio Andrés Illanes Albornoz d2fca9
	|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX=""		\
Lucio Andrés Illanes Albornoz d2fca9
		cmake	-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"				\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"			\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"		\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY"			\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY"			\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER"			\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}"				\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_INSTALL_PREFIX=""					\
Lucio Andrés Illanes Albornoz d2fca9
			-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"			\
Lucio Andrés Illanes Albornoz d2fca9
			-DOPENSSL_LIBRARY="${PKG_PREFIX}/lib/libcrypto.so"		\
62c6b4
			"../tdnf-${PKG_VERSION}"; then
Lucio Andrés Illanes Albornoz d2fca9
		_rc=1;
62c6b4
	fi;
Lucio Andrés Illanes Albornoz d2fca9
	rtl_export_vars	-u \
Lucio Andrés Illanes Albornoz d2fca9
		PKG_CONFIG "${PKG_PKG_CONFIG:-}"					\
Lucio Andrés Illanes Albornoz d2fca9
		PKG_CONFIG_LIBDIR "${PKG_PKG_CONFIG_LIBDIR:-}";
Lucio Andrés Illanes Albornoz d2fca9
	return "${_rc}";
62c6b4
};
62c6b4
62c6b4
# vim:filetype=sh textwidth=0