|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
#
|
|
|
8d7a8a |
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 LucĂa Andrea Illanes Albornoz <lucia@luciaillanes.de>
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
pkg_install_make() {
|
|
|
b70ff5 |
local _pim_group_name="${1}" _pim_pkg_name="${2}" _pim_restart_at="${3}" \
|
|
|
b70ff5 |
_pim_ranlib="" _pim_rc=0 _pim_subdir="";
|
|
|
e9fa07 |
|
|
|
e9fa07 |
for _pim_subdir in ${PKG_MAKE_SUBDIRS:-:}; do
|
|
|
b70ff5 |
if [ "${PKG_RANLIB_INSTALL:+1}" = 1 ]; then
|
|
|
b70ff5 |
_pim_ranlib="${PKG_RANLIB_INSTALL}";
|
|
|
b70ff5 |
else
|
|
|
b70ff5 |
_pim_ranlib="${PKG_RANLIB}";
|
|
|
b70ff5 |
fi;
|
|
|
e9fa07 |
if [ "${_pim_subdir}" = ":" ]; then
|
|
|
e9fa07 |
_pim_subdir="";
|
|
Lucio Andrés Illanes Albornoz |
522027 |
fi;
|
|
|
e9fa07 |
|
|
|
01b005 |
ex_rtl_make \
|
|
|
b70ff5 |
"${PKG_AR}" "${PKG_CC}" "${PKG_CXX}" "${PKG_CCLD}" "${PKG_LIBTOOL}" \
|
|
|
b70ff5 |
"${PKG_MAKE}" "${PKG_PKG_CONFIG}" "${_pim_ranlib}" \
|
|
|
b70ff5 |
-- \
|
|
|
b70ff5 |
1 "${_pim_subdir}" \
|
|
|
b70ff5 |
-- \
|
|
|
b70ff5 |
"${PKG_MAKEFLAGS_INSTALL:-}" "${PKG_MAKEFLAGS_INSTALL_EXTRA:-}" \
|
|
|
b70ff5 |
"${PKG_MAKEFLAGS_INSTALL_LIST:-}" "${PKG_MAKEFLAGS_INSTALL_EXTRA_LIST:-}" \
|
|
|
b70ff5 |
"${PKG_MAKEFLAGS_LOADAVG:-}" "${PKG_MAKEFLAGS_PARALLELISE:-}" \
|
|
|
b70ff5 |
"${PKG_MAKEFLAGS_VERBOSITY:-}" \
|
|
|
b70ff5 |
-- \
|
|
|
b70ff5 |
"" "" "" "" "" "" "" "" "" \
|
|
|
b70ff5 |
-- \
|
|
|
b70ff5 |
"${PKG_MAKE_INSTALL_VNAME:-DESTDIR}=${PKG_DESTDIR}/" \
|
|
|
b70ff5 |
"${PKG_INSTALL_TARGET:-install}" \
|
|
|
b70ff5 |
;
|
|
|
b70ff5 |
_pim_rc="${?}";
|
|
|
e9fa07 |
|
|
|
e9fa07 |
if [ "${_pim_rc}" -ne 0 ]; then
|
|
Lucio Andrés Illanes Albornoz |
522027 |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
522027 |
fi;
|
|
Lucio Andrés Illanes Albornoz |
522027 |
done;
|
|
|
e9fa07 |
|
|
|
e9fa07 |
return 0;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
|
|
|
64844b |
# vim:filetype=sh textwidth=0
|