aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-07-21 16:36:30 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-07-21 16:37:38 +0000
commit741edec0685d80c641a071f0bdcf2d5e82019962 (patch)
tree5b91fa4c7dc3b0ef9455f41d7dfae92b78ad2434
parentd2568da0a50ba5fde8754a0fe6ff7ad89ee23df5 (diff)
downloadports-741edec0685d80c641a071f0bdcf2d5e82019962.tar.gz
ports-741edec0685d80c641a071f0bdcf2d5e82019962.zip
science/elmerfem: Unbreak by removing link flag -lMPI::MPI_C
This flag causes build failure. Its origin is unclear. Reported by: fallout Approved by: portmgr (unbreak)
-rw-r--r--science/elmerfem/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile
index 6ae760af6c20..1bfb77ad2021 100644
--- a/science/elmerfem/Makefile
+++ b/science/elmerfem/Makefile
@@ -100,6 +100,10 @@ post-patch-OCC-on:
@${REINPLACE_CMD} -e 's|$${INCLUDE}|${LOCALBASE}/include/OpenCASCADE|' \
"${WRKSRC}/cmake/Modules/FindOCE.cmake"
+post-configure:
+ # workaround for https://github.com/ElmerCSC/elmerfem/issues/334
+ @${REINPLACE_CMD} -e 's| -lMPI::MPI_C | |' ${BUILD_WRKSRC}/ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/link.txt
+
post-install:
${LN} -sf ElmerSolver_mpi ${STAGEDIR}${PREFIX}/bin/ElmerSolver
${LN} -sf libelmersolver.so ${_LIBSTAGEDIR}/libelmersolver.so.0