git: b5cae3bede52 - main - science/code_saturne: chase the upgrade of science/PETSc

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Tue, 20 Jun 2023 20:03:05 UTC
The branch main has been updated by thierry:

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

commit b5cae3bede52812f5939271d7c825cf906d1778d
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-06-20 19:59:03 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-06-20 19:59:03 +0000

    science/code_saturne: chase the upgrade of science/PETSc
    
    Since 3.19.2, the file $LOCALBASE/lib/petsc/conf/variables contains
    non-portable code, and gmake is needed to interpret its content.
    
    Reported by:    pkg-fallout
---
 science/code_saturne/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/science/code_saturne/Makefile b/science/code_saturne/Makefile
index b28e0feff984..bf5d5fd08c95 100644
--- a/science/code_saturne/Makefile
+++ b/science/code_saturne/Makefile
@@ -115,6 +115,7 @@ DOCS=		AUTHORS ChangeLog README
 pre-configure:
 	${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|'	\
 		${WRKSRC}/Makefile.am
+	${REINPLACE_CMD} -e 's|make -s|${GMAKE} -s|' ${WRKSRC}/m4/cs_petsc.m4
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/code_saturne/cs_solver