Lucio Andrés Illanes Albornoz f70e08
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz f70e08
#
Lucio Andrés Illanes Albornoz f70e08
Lucio Andrés Illanes Albornoz f70e08
pkg_lolcode_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	-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_PROGRAM="NEVER"		\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_INSTALL_PREFIX=""				\
Lucio Andrés Illanes Albornoz bf9edf
			"../lci"; then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	fi;
Lucio Andrés Illanes Albornoz bf9edf
};
Lucio Andrés Illanes Albornoz bf9edf
Lucio Andrés Illanes Albornoz bf9edf
# vim:filetype=sh textwidth=0