Blame subr/pkg_configure.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
pkg_configure() {
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
	if [ -n "${PKG_CONFIGURE}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
		PKG_CONFIGURE="${PKG_BASE_DIR}/${PKG_CONFIGURE}";
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
	else
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
		PKG_CONFIGURE="${PKG_BASE_DIR}/${PKG_SUBDIR}/configure";
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
	if [ -x "${PKG_CONFIGURE}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
		CFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 557c73
		CPPFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"		\
Lucio Andrés Illanes Albornoz (arab, vxp) b19456
		CXXFLAGS="${PKG_CXXFLAGS_CONFIGURE}${PKG_CXXFLAGS_CONFIGURE_EXTRA:+ ${PKG_CXXFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
		LDFLAGS="${PKG_LDFLAGS_CONFIGURE}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
		${PKG_CONFIGURE}											\
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
			${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG};
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
};
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
# vim:filetype=sh