Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5BEF384CD8 for ; Tue, 27 Jun 2023 10:41:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id NmtyMyOPtv_s for ; Tue, 27 Jun 2023 10:41:25 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id C5F5B84CCC for ; Tue, 27 Jun 2023 10:41:25 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id BDE04FA89; Tue, 27 Jun 2023 10:41:25 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1687862485288600" MIME-Version: 1.0 Date: Tue, 27 Jun 2023 10:41:25 +0000 From: "Taylor R Campbell" Subject: CVS commit: pkgsrc/devel/meson To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: riastradh@netbsd.org X-Mailer: log_accum Message-Id: <20230627104125.BDE04FA89@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_1687862485288600 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: riastradh Date: Tue Jun 27 10:41:25 UTC 2023 Modified Files: pkgsrc/devel/meson: build.mk Log Message: meson: Print nicer messages about build stages. No functional change intended other than console output. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/meson/build.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1687862485288600 Content-Disposition: inline Content-Length: 2402 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/meson/build.mk diff -u pkgsrc/devel/meson/build.mk:1.17 pkgsrc/devel/meson/build.mk:1.18 --- pkgsrc/devel/meson/build.mk:1.17 Fri Feb 24 08:19:00 2023 +++ pkgsrc/devel/meson/build.mk Tue Jun 27 10:41:25 2023 @@ -1,4 +1,4 @@ -# $NetBSD: build.mk,v 1.17 2023/02/24 08:19:00 adam Exp $ +# $NetBSD: build.mk,v 1.18 2023/06/27 10:41:25 riastradh Exp $ MESON_REQD?= 0 .for version in ${MESON_REQD} @@ -84,6 +84,7 @@ MESON_CROSS.sys_root= '${_CROSS_DESTDIR} MESON_CROSS_FILE= ${WRKDIR}/.meson_cross meson-configure: ${MESON_CROSS_FILE} ${MESON_CROSS_FILE}: + @${STEP_MSG} Creating meson cross file ${RUN}${ECHO} '[properties]' >$@.tmp . for _v_ in ${MESON_CROSS_VARS} . if defined(MESON_CROSS.${_v_}) @@ -113,7 +114,10 @@ MESON_CROSS_ARGS+= --cross-file ${MESON_ do-configure: meson-configure meson-configure: .for d in ${CONFIGURE_DIRS} - cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} meson setup \ +. if ${CONFIGURE_DIRS:[#]} != 1 + @${STEP_MSG} Configuring meson in ${d} +. endif + ${RUN}cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} meson setup \ --prefix ${PREFIX} \ --libdir lib \ --libexecdir libexec \ @@ -126,23 +130,33 @@ meson-configure: do-build: meson-build meson-build: .for d in ${BUILD_DIRS} - cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} ninja -j ${_MAKE_JOBS_N:U1} -C output +. if ${BUILD_DIRS:[#]} != 1 + @${STEP_MSG} Building with ninja in ${d} +. endif + ${RUN}cd ${WRKSRC} && cd ${d} && ${SETENV} ${MAKE_ENV} \ + ninja -j ${_MAKE_JOBS_N:U1} -C output .endfor do-install: meson-install meson-install: .for d in ${INSTALL_DIRS} - if [ -f ${WRKSRC}/meson_post_install.py ]; then \ + ${RUN}if [ -f ${WRKSRC}/meson_post_install.py ]; then \ ${CHMOD} +x ${WRKSRC}/meson_post_install.py; \ fi - cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \ +. if ${INSTALL_DIRS:[#]} != 1 + @${STEP_MSG} Installing with ninja in ${d} +. endif + ${RUN}cd ${WRKSRC} && cd ${d} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \ ninja -j ${_MAKE_JOBS_N:U1} -C output install .endfor do-test: meson-test meson-test: .for d in ${TEST_DIRS} - cd ${WRKSRC} && cd ${d} && ${SETENV} ${TEST_ENV} \ +. if ${TEST_DIRS:[#]} != 1 + @${STEP_MSG} Testing with ninja in ${d} +. endif + ${RUN}cd ${WRKSRC} && cd ${d} && ${SETENV} ${TEST_ENV} \ ninja -j ${_MAKE_JOBS_N:U1} -C output test .endfor --_----------=_1687862485288600--