git: ffac4f7ebb89 - main - science/nwchem: Fix extremely slow build time due to gmake-4.4.1 issues

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 29 Mar 2024 19:36:29 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ffac4f7ebb89f9ecd885d633a5a860254040257c

commit ffac4f7ebb89f9ecd885d633a5a860254040257c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-03-29 19:33:36 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-03-29 19:36:23 +0000

    science/nwchem: Fix extremely slow build time due to gmake-4.4.1 issues
    
    Switched back to gmake-4.3
---
 science/nwchem/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/science/nwchem/Makefile b/science/nwchem/Makefile
index b1b6bbeea975..639b8987e8ac 100644
--- a/science/nwchem/Makefile
+++ b/science/nwchem/Makefile
@@ -30,9 +30,14 @@ LIB_DEPENDS=	libblas.so:math/blas \
 RUN_DEPENDS=	nwchem-data>0:science/nwchem-data
 TEST_DEPENDS=	bash:shells/bash
 
-USES=		fortran gettext-runtime gmake perl5 pkgconfig
+USES=		fortran gettext-runtime perl5 pkgconfig # gmake is temporarily removed, see https://savannah.gnu.org/bugs/?65533
 USE_PERL5=	build
 
+# use gmake-4.3, see https://savannah.gnu.org/bugs/?65533
+BUILD_DEPENDS+=	gmake43>0:devel/gmake43
+CONFIGURE_ENV+=	MAKE=gmake
+MAKE_CMD=	gmake
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	nwchemgit