git: 2905ef9957ad - main - net/mpifx: Fix building with Flang

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 13 Nov 2025 15:08:53 UTC
The branch main has been updated by arrowd:

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

commit 2905ef9957adf9b0f8e6a4f64e35d72169f8dc34
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-11-13 15:06:09 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-11-13 15:08:39 +0000

    net/mpifx: Fix building with Flang
---
 net/mpifx/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/mpifx/Makefile b/net/mpifx/Makefile
index e8ab6f77c700..3052c6d24c32 100644
--- a/net/mpifx/Makefile
+++ b/net/mpifx/Makefile
@@ -18,6 +18,9 @@ GH_ACCOUNT=	dftbplus
 
 CMAKE_ON=	BUILD_SHARED_LIBS
 
+post-patch:
+	${REINPLACE_CMD} -e '/include(CTest)/d' ${WRKSRC}/CMakeLists.txt
+
 post-test: # run test programs # at least one test crashes, see https://github.com/dftbplus/mpifx/issues/35
 .for f in test_allgather test_allgatherv test_allreduce test_bcast test_comm_split test_gather test_gatherv test_reduce test_scatter test_scatterv
 	cd ${BUILD_WRKSRC}/test && ./${f}
@@ -25,7 +28,7 @@ post-test: # run test programs # at least one test crashes, see https://github.c
 
 .include <bsd.port.pre.mk>
 
-.if ${GCC_DEFAULT} >= 10
+.if ${FORTRAN_DEFAULT} == gfortran && ${GCC_DEFAULT} >= 10
 # workaround for Type mismatch in argument 'cc' at (1); passed COMPLEX(8) to REAL(8)
 FFLAGS+=	-fallow-argument-mismatch
 .endif