summaryrefslogtreecommitdiffhomepage
path: root/vars/lolcode.vars
blob: 282f9b5fe5625cfa50d889d8678a5eb180ebd2c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# set +o errexit -o noglob is assumed.
#

pkg_lolcode_configure() {
	if ! rtl_fileop rm config.cache						\
	|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX=""	\
		cmake	-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"			\
			-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"		\
			-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"	\
			-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY"		\
			-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER"		\
			-DCMAKE_INSTALL_PREFIX=""				\
			"../lci"; then
		return 1;
	fi;
};

# vim:filetype=sh textwidth=0