Lucio Andrés Illanes Albornoz f70e08
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob 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 f70e08
        rm -f config.cache;
Lucio Andrés Illanes Albornoz f70e08
        env     CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"           \
Lucio Andrés Illanes Albornoz f70e08
                PREFIX=""                                                      \
Lucio Andrés Illanes Albornoz f70e08
	cmake	-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER                       \
Lucio Andrés Illanes Albornoz f70e08
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY                        \
Lucio Andrés Illanes Albornoz f70e08
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"                            \
Lucio Andrés Illanes Albornoz f70e08
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"                    \
Lucio Andrés Illanes Albornoz f70e08
		-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"          \
Lucio Andrés Illanes Albornoz f70e08
		-DCMAKE_INSTALL_PREFIX=                                         \
Lucio Andrés Illanes Albornoz f70e08
                "../lci";
Lucio Andrés Illanes Albornoz f70e08
}