Blame vars/libsolv.vars

Lucio Andrés Illanes Albornoz (arab, vxp) 1acd97
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 1acd97
#
Lucio Andrés Illanes Albornoz (arab, vxp) 1acd97
Lucio Andrés Illanes Albornoz (arab, vxp) 1acd97
pkg_libsolv_configure() {
Lucio Andrés Illanes Albornoz bf9edf
	if ! rtl_fileop rm config.cache						\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX=""	\
Lucio Andrés Illanes Albornoz bf9edf
		cmake	-DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a"	\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"	\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_INSTALL_PREFIX=""				\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_APPDATA:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_BZIP2_COMPRESSION:BOOL="ON"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_COMPLEX_DEPS:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_COMPS:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_LZMA_COMPRESSION:BOOL="ON"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_RPMDB:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_RPMDB_BYRPMHEADER:BOOL="ON"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_RPMDB_LIBRPM:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_RPMMD:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DENABLE_RPMPKG_LIBRPM:BOOL="ON"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DFEDORA="1"						\
Lucio Andrés Illanes Albornoz bf9edf
			-DLIBXML2_LIBRARIES="${PKG_PREFIX}/lib/libxml2.lib.a"	\
Lucio Andrés Illanes Albornoz bf9edf
			-DLZMA_INCLUDE_DIR="${PKG_PREFIX}/include"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a"	\
Lucio Andrés Illanes Albornoz 0e4c89
			-DRPMIO_LIBRARY="${PKG_PREFIX}/lib/librpmio.so"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a"		\
Lucio Andrés Illanes Albornoz 0e4c89
			-DWITH_LIBXML2:BOOL="ON"				\
Lucio Andrés Illanes Albornoz bf9edf
			"../libsolv-${PKG_VERSION}"; then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	fi;
Lucio Andrés Illanes Albornoz 3ed50a
};
Lucio Andrés Illanes Albornoz 3ed50a
Lucio Andrés Illanes Albornoz bf9edf
# vim:filetype=sh textwidth=0