Skip to content

Commit

Permalink
*/*: fix the dependency to net/openmpi4
Browse files Browse the repository at this point in the history
For ports without USES=mpi:openmpi. For the others, it will be set
automatically.
  • Loading branch information
thierry-FreeBSD committed Feb 18, 2024
1 parent 0d309c1 commit a62b21d
Show file tree
Hide file tree
Showing 25 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions math/cosma/Makefile
Expand Up @@ -15,9 +15,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= requires OpenMP support that is missing on this architecture
.endif

BUILD_DEPENDS= openmpi>0:net/openmpi
BUILD_DEPENDS= openmpi4>0:net/openmpi4
LIB_DEPENDS= libopenblas.so:math/openblas
RUN_DEPENDS= openmpi>0:net/openmpi
RUN_DEPENDS= openmpi4>0:net/openmpi4

USES= cmake:testing
USE_LDCONFIG= yes
Expand Down
2 changes: 1 addition & 1 deletion math/dbcsr/Makefile
Expand Up @@ -38,7 +38,7 @@ OPTIONS_DEFAULT= MPI OPENMP C_API
OPTIONS_SUB= yes

MPI_CMAKE_BOOL= USE_MPI
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4

OPENMP_CMAKE_BOOL= USE_OPENMP

Expand Down
2 changes: 1 addition & 1 deletion math/dune-alugrid/Makefile
Expand Up @@ -18,7 +18,7 @@ LIB_DEPENDS= libalberta_utilities.so:math/alberta \
libdunegrid.so:math/dune-grid \
libduneuggrid.so:math/dune-uggrid \
libmetis.so:math/metis \
libmpi.so:net/openmpi \
libmpi_cxx.so:net/openmpi4 \
libopenblas.so:math/openblas \
libtbb.so:devel/onetbb

Expand Down
2 changes: 1 addition & 1 deletion math/dune-common/Makefile
Expand Up @@ -12,7 +12,7 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md

BUILD_DEPENDS= metis>0:math/metis \
openmpi>0:net/openmpi \
openmpi4>0:net/openmpi4 \
vc>0:devel/vc # Metis isn't used, see https://gitlab.dune-project.org/core/dune-common/-/issues/306
LIB_DEPENDS= libopenblas.so:math/openblas \
libtbb.so:devel/onetbb
Expand Down
4 changes: 2 additions & 2 deletions math/dune-fem/Makefile
Expand Up @@ -15,7 +15,7 @@ BUILD_DEPENDS= arpack++>0:math/arpack++ \
dune-localfunctions>=2.6:math/dune-localfunctions \
dune-spgrid>0:math/dune-spgrid \
vc>0:devel/vc \
${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
openmpi4>0:net/openmpi4
LIB_DEPENDS= libpsurface.so:math/psurface \
libarpack.so:math/arpack-ng \
libdunealugrid.so:math/dune-alugrid \
Expand All @@ -41,7 +41,7 @@ LIB_DEPENDS= libpsurface.so:math/psurface \
RUN_DEPENDS= dune-istl>=2.6:math/dune-istl \
dune-localfunctions>=2.6:math/dune-localfunctions \
dune-spgrid>0:math/dune-spgrid \
${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
openmpi4>0:net/openmpi4

USES= cmake compiler:c++17-lang eigen:3 fortran pkgconfig
USE_GITLAB= yes
Expand Down
2 changes: 1 addition & 1 deletion math/dune-geometry/Makefile
Expand Up @@ -11,7 +11,7 @@ WWW= https://www.dune-project.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md

BUILD_DEPENDS= openmpi>0:net/openmpi \
BUILD_DEPENDS= openmpi4>0:net/openmpi4 \
vc>0:devel/vc
LIB_DEPENDS= libdunecommon.so:math/dune-common \
libopenblas.so:math/openblas \
Expand Down
2 changes: 1 addition & 1 deletion math/dune-grid-glue/Makefile
Expand Up @@ -10,7 +10,7 @@ WWW= https://www.dune-project.org/
LICENSE= GPLv2

BUILD_DEPENDS= alberta-fem>0:math/alberta \
openmpi>0:net/openmpi \
openmpi4>0:net/openmpi4 \
psurface>0:math/psurface \
vc>0:devel/vc
LIB_DEPENDS= libdunecommon.so:math/dune-common \
Expand Down
2 changes: 1 addition & 1 deletion math/dune-grid/Makefile
Expand Up @@ -12,7 +12,7 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md

BUILD_DEPENDS= alberta-fem>0:math/alberta \
openmpi>0:net/openmpi \
openmpi4>0:net/openmpi4 \
psurface>0:math/psurface \
vc>0:devel/vc
LIB_DEPENDS= libdunecommon.so:math/dune-common \
Expand Down
4 changes: 2 additions & 2 deletions math/dune-pdelab/Makefile
Expand Up @@ -20,7 +20,7 @@ DUNE_DEPENDS= dune-common>0:math/dune-common \
dune-typetree>0:math/dune-typetree
BUILD_DEPENDS= ${DUNE_DEPENDS} \
suitesparse>0:math/suitesparse \
${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
openmpi4>0:net/openmpi4
LIB_DEPENDS= libarpack.so:math/arpack-ng \
libdunealugrid.so:math/dune-alugrid \
libduneuggrid.so:math/dune-uggrid \
Expand All @@ -41,7 +41,7 @@ LIB_DEPENDS= libarpack.so:math/arpack-ng \
libtbb.so:devel/onetbb
RUN_DEPENDS= ${DUNE_DEPENDS} \
suitesparse>0:math/suitesparse \
${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
openmpi4>0:net/openmpi4

USES= cmake compiler:c++17-lang fortran pkgconfig
USE_GITLAB= yes
Expand Down
4 changes: 2 additions & 2 deletions math/dune-polygongrid/Makefile
Expand Up @@ -10,14 +10,14 @@ WWW= https://www.dune-project.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
BUILD_DEPENDS= openmpi4>0:net/openmpi4
LIB_DEPENDS= libdunecommon.so:math/dune-common \
libdunegeometry.so:math/dune-geometry \
libdunegrid.so:math/dune-grid \
libduneuggrid.so:math/dune-uggrid \
libopenblas.so:math/openblas \
libtbb.so:devel/onetbb
RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
RUN_DEPENDS= openmpi4>0:net/openmpi4

USES= cmake compiler:c++17-lang fortran pkgconfig
USE_GITLAB= yes
Expand Down
2 changes: 1 addition & 1 deletion math/dune-spgrid/Makefile
Expand Up @@ -16,7 +16,7 @@ DUNE_DEPENDS= dune-common>0:math/dune-common \
dune-geometry>0:math/dune-geometry \
dune-uggrid>0:math/dune-uggrid
BUILD_DEPENDS= ${DUNE_DEPENDS} \
openmpi>0:net/openmpi \
openmpi4>0:net/openmpi4 \
vc>0:devel/vc
RUN_DEPENDS= ${DUNE_DEPENDS}

Expand Down
4 changes: 2 additions & 2 deletions math/dune-typetree/Makefile
Expand Up @@ -12,10 +12,10 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.md

BUILD_DEPENDS= dune-common>0:math/dune-common \
openmpi>0:net/openmpi \
openmpi4>0:net/openmpi4 \
vc>0:devel/vc
RUN_DEPENDS= dune-common>0:math/dune-common \
openmpi>0:net/openmpi \
openmpi4>0:net/openmpi4 \
vc>0:devel/vc

USES= cmake compiler:c++17-lang fortran pkgconfig
Expand Down
4 changes: 2 additions & 2 deletions math/dune-uggrid/Makefile
Expand Up @@ -11,12 +11,12 @@ WWW= https://www.dune-project.org/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.LGPL-2.1

BUILD_DEPENDS= openmpi>0:net/openmpi \
BUILD_DEPENDS= openmpi4>0:net/openmpi4 \
vc>0:devel/vc
LIB_DEPENDS= libdunecommon.so:math/dune-common \
libopenblas.so:math/openblas \
libtbb.so:devel/onetbb
RUN_DEPENDS= openmpi>0:net/openmpi
RUN_DEPENDS= openmpi4>0:net/openmpi4

USES= cmake compiler:c++17-lang fortran pkgconfig python
USE_GITLAB= yes
Expand Down
4 changes: 2 additions & 2 deletions math/dune-vtk/Makefile
Expand Up @@ -15,7 +15,7 @@ HPP_DEPENDS= ${LOCALBASE}/include/dune/foamgrid/foamgrid.hh:math/dune-foamgrid \
BUILD_DEPENDS= ${HPP_DEPENDS} \
dune-functions>0:math/dune-functions \
suitesparse>0:math/suitesparse \
${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
openmpi4>0:net/openmpi4
LIB_DEPENDS= libarpack.so:math/arpack-ng \
libdunealugrid.so:math/dune-alugrid \
libdunecommon.so:math/dune-common \
Expand All @@ -40,7 +40,7 @@ LIB_DEPENDS= libarpack.so:math/arpack-ng \
libtbb.so:devel/onetbb
RUN_DEPENDS= ${HPP_DEPENDS} \
suitesparse>0:math/suitesparse \
${LOCALBASE}/mpi/openmpi/lib/libmpi.so:net/openmpi
openmpi4>0:net/openmpi4

USES= cmake compiler:c++17-lang fortran pkgconfig
USE_GITLAB= yes
Expand Down
2 changes: 1 addition & 1 deletion math/elemental/Makefile
Expand Up @@ -16,7 +16,7 @@ LIB_DEPENDS= libgmp.so:math/gmp \
libmetis.so:math/metis \
libmpc.so:math/mpc \
libmpfr.so:math/mpfr \
libmpi_cxx.so:net/openmpi \
libmpi_cxx.so:net/openmpi4 \
libopenblas.so:math/openblas \
libqd.so:math/qd
TEST_DEPENDS= catch>0:devel/catch
Expand Down
2 changes: 1 addition & 1 deletion math/moab/Makefile
Expand Up @@ -33,7 +33,7 @@ OPTIONS_DEFAULT= MPI
OPTIONS_SUB= yes

MPI_CMAKE_BOOL= ENABLE_MPI
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4
MPI_VARS= CXX=${LOCALBASE}/mpi/openmpi/bin/mpic++ CC=${LOCALBASE}/mpi/openmpi/bin/mpicc
MPI_VARS+= CONFLICTS_BUILD=mpich # otherwise bin/hexmodops gets linked with libmpi.so:net/mpich
MPI_VARS_OFF= USES=compiler:c++11-lang
Expand Down
2 changes: 1 addition & 1 deletion math/parmgridgen/Makefile
Expand Up @@ -11,7 +11,7 @@ MAINTAINER= devel@stasyan.com
COMMENT= Library for obtaining a sequence of successive coarse grids
WWW= http://www.mgnet.org/mgnet-codes-parmgridgen.html

LIB_DEPENDS= libmpi.so:net/openmpi
LIB_DEPENDS= libmpi_cxx.so:net/openmpi4

ALL_TARGET= parallel
USES= gmake
Expand Down
2 changes: 1 addition & 1 deletion math/vtk8/Makefile
Expand Up @@ -72,7 +72,7 @@ DESIGNER_CMAKE_BOOL= QT_DESIGNER_PLUGIN
DESIGNER_USE= QT=designer
DESIGNER_IMPLIES= QT5

MPI_LIB_DEPENDS= libmpi.so:net/openmpi
MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4
MPI_CMAKE_ON= -DMPIEXEC=${LOCALBASE}/mpi/openmpi/bin/mpiexec

OSMESA_CMAKE_ARGS= -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
Expand Down
2 changes: 1 addition & 1 deletion misc/py-pytorch/Makefile
Expand Up @@ -25,7 +25,7 @@ BUILD_DEPENDS= cmake:devel/cmake-core \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
LIB_DEPENDS= libabsl_flags.so:devel/abseil \
libblis.so:math/blis \
libmpi.so:net/openmpi \
libmpi_cxx.so:net/openmpi4 \
libonnx.so:misc/onnx \
libopenblas.so:math/openblas \
libpthreadpool.so:devel/pthreadpool \
Expand Down
2 changes: 1 addition & 1 deletion misc/pytorch/Makefile
Expand Up @@ -19,7 +19,7 @@ BUILD_DEPENDS= gmake:devel/gmake \
LIB_DEPENDS= libabsl_base.so:devel/abseil \
libblis.so:math/blis \
libopenblas.so:math/openblas \
libmpi.so:net/openmpi \
libmpi_cxx.so:net/openmpi4 \
libonnx.so:misc/onnx \
libpthreadpool.so:devel/pthreadpool \
libprotobuf.so:devel/protobuf \
Expand Down
2 changes: 1 addition & 1 deletion misc/thrill/Makefile
Expand Up @@ -12,7 +12,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE

NOT_FOR_ARCHS= armv6 armv7 i386 mips powerpc powerpcspe # static_assert failed due to requirement 'sizeof(unsigned int) == 8' "FOXXLL supports only 64-bit builds"

LIB_DEPENDS= libmpi.so:net/openmpi
LIB_DEPENDS= libmpi_cxx.so:net/openmpi4

USES= cmake compiler:c++17-lang fortran
USE_LDCONFIG= yes
Expand Down
2 changes: 1 addition & 1 deletion science/ALPSCore/Makefile
Expand Up @@ -34,7 +34,7 @@ DOXYGEN_CMAKE_BOOL= Documentation
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen

OPENMPI_CMAKE_BOOL= ENABLE_MPI
OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4

PORTDOCS= *

Expand Down
2 changes: 1 addition & 1 deletion science/lammps/Makefile
Expand Up @@ -63,7 +63,7 @@ EXCEPTIONS_DESC= Enable the use of C++ exceptions
EXCEPTIONS_CMAKE_BOOL= LAMMPS_EXCEPTIONS
MPI_CMAKE_BOOL= BUILD_MPI PKG_MPIIO
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4
MPI_USES= compiler:c11
FFMPEG_CMAKE_BOOL= WITH_FFMPEG
Expand Down
2 changes: 1 addition & 1 deletion science/latte/Makefile
Expand Up @@ -33,7 +33,7 @@ DBCSR_BROKEN= see https://github.com/lanl/LATTE/issues/92
OPENMP_CMAKE_BOOL= OPENMP

MPI_CMAKE_BOOL= DO_MPI
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4
MPI_LDFLAGS= ${LOCALBASE}/mpi/openmpi/lib/libmpi_mpifh.so
MPI_PLIST_FILES= bin/LATTE_MPI_DOUBLE
MPI_PLIST_FILES_OFF= bin/LATTE_DOUBLE
Expand Down
2 changes: 1 addition & 1 deletion science/sparta/Makefile
Expand Up @@ -37,7 +37,7 @@ MPI_CXXFLAGS= -I${LOCALBASE}/mpi/openmpi/include
MPI_LDFLAGS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so \
${LOCALBASE}/mpi/openmpi/lib/libmpi_cxx.so \
-Wl,-rpath=${LOCALBASE}/mpi/openmpi/lib
MPI_LIB_DEPENDS= libmpi.so:net/openmpi
MPI_LIB_DEPENDS= libmpi_cxx.so:net/openmpi4

PORTSCOUT= ignore:1 # due to a special version tagging scheme that this project uses portscout fails to find new versions, watching their release page instead

Expand Down

0 comments on commit a62b21d

Please sign in to comment.