summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_configure.subr
blob: b631a4293b27a3e80dc4edc921a34d70ec955c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# set -o errexit -o noglob are assumed.
#

pkg_configure() {
	if [ ${__no_autoconf:-0} -eq 0 ]; then
		if test_cmd pkg_${PKG_NAME}_configure_pre; then
			pkg_${PKG_NAME}_configure_pre;
		fi;
		CFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"\
		LDFLAGS="${PKG_LDFLAGS_CONFIGURE}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}"\
		${PKG_CONFIGURE}										\
			${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG};
	fi;
};

# vim:filetype=sh