git: 52f03d7d32cb - main - Mk/Uses/mpi.mk: add MPI4PY, a helper to get the right dependency on mpi4py
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 08:31:52 UTC
The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=52f03d7d32cb8b9485555809796c8ebfe362ca00 commit 52f03d7d32cb8b9485555809796c8ebfe362ca00 Author: Thierry Thomas <thierry@FreeBSD.org> AuthorDate: 2023-08-05 08:28:49 +0000 Commit: Thierry Thomas <thierry@FreeBSD.org> CommitDate: 2023-08-05 08:28:49 +0000 Mk/Uses/mpi.mk: add MPI4PY, a helper to get the right dependency on mpi4py --- Mk/Uses/mpi.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mk/Uses/mpi.mk b/Mk/Uses/mpi.mk index 29c417ce62f8..770e9d375f19 100644 --- a/Mk/Uses/mpi.mk +++ b/Mk/Uses/mpi.mk @@ -31,6 +31,7 @@ USES+= pkgconfig LIB_DEPENDS+= libmpich.so:net/mpich MPI_HOME= ${LOCALBASE} MPI_LIBS+= `pkgconf --libs mpich` +MPI4PY= ${PYTHON_PKGNAMEPREFIX}mpi4py-mpich>0:net/py-mpi4py-mpich@${PY_FLAVOR} . if ${USES:Mfortran} MPI_LIBS+= -lmpifort MPIFC= ${MPI_HOME}/bin/mpif90 @@ -40,6 +41,7 @@ MPI_CFLAGS+= `pkgconf --cflags mpich` . elif ${mpi_ARGS} == openmpi LIB_DEPENDS+= libmpi_cxx.so:net/openmpi MPI_HOME= ${LOCALBASE}/mpi/openmpi +MPI4PY= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR} . if ${USES:Mfortran} MPI_LIBS+= `pkgconf --libs ompi-fort` MPIFC= ${MPI_HOME}/bin/mpif90