|
Lucio Andrés Illanes Albornoz |
3e5303 |
#
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
#
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
pkg_build_clean() {
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
local _libtool="" _makeflags_verbosity="${PKG_MAKEFLAGS_VERBOSITY:-}" \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
_no_autoconf="" _rc=0 _subdir="";
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
if ex_pkg_state_test "${_pkg_name}" "build" "${_restart_at}"; then
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
case "${PKG_LIBTOOL:-}" in
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
"") _libtool=""; ;;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
none) _libtool=""; ;;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
*) _libtool="${PKG_LIBTOOL}"; ;;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
esac;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
[ ! -x "${PKG_CONFIGURE:-}" ] && _no_autoconf=1;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
for _subdir in ${PKG_MAKE_SUBDIRS:-:}; do
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
[ "${_subdir}" = ":" ] && _subdir="";
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
[ "${#_libtool}" -gt 0 ] && export MAKE="make LIBTOOL=${_libtool}";
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
rtl_run_cmd_unsplit "${PKG_MAKE}" \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
${PKG_MAKEFLAGS_BUILD:-} \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
${PKG_MAKEFLAGS_BUILD_EXTRA:-} \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
${_libtool:+"LIBTOOL=${_libtool}"} \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
${_makeflags_verbosity} \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
${_subdir:+-C "${_subdir}"} \
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
clean; _rc="${?}";
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
[ "${#_libtool}" -gt 0 ] && unset MAKE;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
[ "${_rc}" -ne 0 ] && return 1;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
done; return 0;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
};
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
|
|
Lucio Andrés Illanes Albornoz |
3e5303 |
# vim:filetype=sh
|