midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame vars/tdnf.vars

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