From 175e923935319957cc0c050845333cfa7ec4257c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 13 Apr 2020 13:46:10 +0100 Subject: 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'. --- subr/pkg_build.subr | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'subr/pkg_build.subr') 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 -- cgit v1.2.3