summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-04-13 13:46:10 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-04-13 13:46:10 +0100
commit175e923935319957cc0c050845333cfa7ec4257c (patch)
tree4cd0c42bfb7f529a73106ab3cab115b891610116 /subr
parent0159b1c4453eef3d81e94bbac316a252049d5121 (diff)
downloadmidipix_build-175e923935319957cc0c050845333cfa7ec4257c.tar.bz2
midipix_build-175e923935319957cc0c050845333cfa7ec4257c.tar.xz
subr/pkg_build.subr: pass either ${PKG_MAKEFLAGS_VERBOSITY} or nothing if set to `none'.
groups/010.host_deps.group:ruby_host:${PKG_MAKEFLAGS_VERBOSITY}: build w/ none. groups/221.native_packages_dev.group:ruby:${PKG_MAKEFLAGS_VERBOSITY}: build w/ none. etc/README.md, midipix.env: adds ${PKG_MAKEFLAGS_VERBOSITY}, defaulting to `V=99'.
Diffstat (limited to 'subr')
-rw-r--r--subr/pkg_build.subr7
1 files changed, 5 insertions, 2 deletions
diff --git a/subr/pkg_build.subr b/subr/pkg_build.subr
index 61b504ac..ecc049f6 100644
--- a/subr/pkg_build.subr
+++ b/subr/pkg_build.subr
@@ -3,12 +3,15 @@
#
pkg_build() {
- local _libtool="" _no_autoconf="";
+ local _libtool="" _makeflags_verbosity="${PKG_MAKEFLAGS_VERBOSITY:-none}" _no_autoconf="";
case "${PKG_LIBTOOL:-}" in
"") _libtool=""; ;;
none) _libtool=""; ;;
*) _libtool="${PKG_LIBTOOL}"; ;;
esac;
+ if [ "${_makeflags_verbosity}" = "none" ]; then
+ _makeflags_verbosity="";
+ fi;
if [ ! -x "${PKG_CONFIGURE:-}" ]; then
_no_autoconf=1;
fi;
@@ -30,7 +33,7 @@ pkg_build() {
"${PKG_PKG_CONFIG:+PKG_CONFIG=${PKG_PKG_CONFIG}}" \
"${PKG_PKG_CONFIG_LIBDIR:+PKG_CONFIG_LIBDIR=${PKG_PKG_CONFIG_LIBDIR}}" \
${_libtool:+"LIBTOOL=${_libtool}"} \
- V=99;
+ ${_makeflags_verbosity};
};
# vim:filetype=sh