1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Mk/Uses/mpi.mk: adapt the dependency on OpenMPI according to $ARCH

This commit is contained in:
Thierry Thomas 2024-01-26 11:33:41 +01:00
parent 0728e016e0
commit 0d309c1afa

View File

@ -39,7 +39,11 @@ MPIF90= ${MPIFC}
. endif
MPI_CFLAGS+= `pkgconf --cflags mpich`
. elif ${mpi_ARGS} == openmpi
LIB_DEPENDS+= libmpi_cxx.so:net/openmpi
. if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == powerpc
LIB_DEPENDS+= libmpi_cxx.so:net/openmpi4
. else
LIB_DEPENDS+= libmpi_mpifh.so:net/openmpi
. endif
MPI_HOME= ${LOCALBASE}/mpi/openmpi
MPI4PY= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
. if ${USES:Mfortran}