diff --git a/math/cosma/Makefile b/math/cosma/Makefile index c3b9f79649ec..d52a8a9f877c 100644 --- a/math/cosma/Makefile +++ b/math/cosma/Makefile @@ -1,43 +1,43 @@ PORTNAME= cosma DISTVERSIONPREFIX= v DISTVERSION= 2.6.2 PORTREVISION= 2 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Distributed communication-optimal matrix multiplication algorithm WWW= https://github.com/eth-cscs/COSMA LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE .if !exists(/usr/include/omp.h) 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 USE_GITHUB= yes GH_ACCOUNT= eth-cscs GH_PROJECT= COSMA GH_TUPLE= eth-cscs:COSTA:5f1ea59:costa/libs/COSTA \ eth-cscs:Tiled-MM:9e880f9:tiledmm/libs/Tiled-MM CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= COSMA_WITH_TESTS CMAKE_ARGS= -DCOSMA_BLAS="OPENBLAS" CMAKE_TESTING_ON= COSMA_WITH_TESTS post-install: @cd ${STAGEDIR}${PREFIX} && \ ${RMDIR} \ include/costa/pxtran \ include/costa/pxtranc \ include/costa/pxtranu .include diff --git a/math/dbcsr/Makefile b/math/dbcsr/Makefile index 25f68743a099..3a233fda3f40 100644 --- a/math/dbcsr/Makefile +++ b/math/dbcsr/Makefile @@ -1,56 +1,56 @@ PORTNAME= dbcsr DISTVERSIONPREFIX= v DISTVERSION= 2.6.0 PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Distributed Block Compressed Sparse Row matrix library WWW= https://www.cp2k.org/dbcsr LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE .if !exists(/usr/include/omp.h) BROKEN= requires OpenMP support that is missing on this architecture .endif BUILD_DEPENDS= fypp:devel/py-fypp@${PY_FLAVOR} USES= blaslapack:openblas cmake:noninja,testing compiler:c++14-lang fortran \ python:build USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= cp2k FFLAGS+= -D__NO_STATM_ACCESS # disable /proc/self/statm access LDFLAGS+= -lopenblas CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= BUILD_TESTING WITH_EXAMPLES CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" -DPython_EXECUTABLE=${PYTHON_CMD} BINARY_ALIAS= git=false # with git sonames get messed up OPTIONS_DEFINE= MPI OPENMP C_API # libxsmm is supposed to be supported, but cmake build lacks the corresponding option: https://github.com/cp2k/dbcsr/issues/73 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 C_API_DESC= Build the C API library C_API_CMAKE_BOOL= WITH_C_API .include . if ${GCC_DEFAULT} >= 10 CMAKE_ARGS+= -DCMAKE_Fortran_FLAGS="${FFLAGS} -fallow-argument-mismatch" # -fallow-argument-mismatch is a workaround of https://github.com/cp2k/dbcsr/issues/387 for gcc10+ . else CMAKE_ARGS+= -DCMAKE_Fortran_FLAGS="${FFLAGS}" . endif .include diff --git a/math/dune-alugrid/Makefile b/math/dune-alugrid/Makefile index c367029c377f..b40f2accee16 100644 --- a/math/dune-alugrid/Makefile +++ b/math/dune-alugrid/Makefile @@ -1,46 +1,46 @@ PORTNAME= dune-alugrid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 8 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: grid implementation providing simplex or cube grids WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= vc>0:devel/vc LIB_DEPENDS= libalberta_utilities.so:math/alberta \ libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ 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 USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= ffd6cd15dc7092593c3d5827c2a2b43b81d7a32f CMAKE_ON= BUILD_SHARED_LIBS OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * CXXFLAGS+= -fsigned-char .include diff --git a/math/dune-common/Makefile b/math/dune-common/Makefile index 303a93ab12d6..2cf61422e2ee 100644 --- a/math/dune-common/Makefile +++ b/math/dune-common/Makefile @@ -1,47 +1,47 @@ PORTNAME= dune-common DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 11 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Build system, infrastructure and foundation classes WWW= https://www.dune-project.org/ 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 USES= cmake compiler:c++17-lang fortran pkgconfig python shebangfix SHEBANG_FILES= bin/dune-ctest bin/setup-dunepy.py bin/dunepackaging.py bin/rmgenerated.py cmake/scripts/extract_cmake_data.py USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= core GL_TAGNAME= df65b1282ea89ad40d2cb6565983f7e633ccce31 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS DOXYGEN OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= latex:print/tex-formats \ sphinx-build:textproc/py-sphinx DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_IMPLIES= DOCS PORTDOCS= * post-install: @${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/scripts/run-in-dune-env.sh.in # https://gitlab.dune-project.org/core/dune-common/-/issues/229 .include diff --git a/math/dune-fem/Makefile b/math/dune-fem/Makefile index da23606cdb53..5a73263c31d1 100644 --- a/math/dune-fem/Makefile +++ b/math/dune-fem/Makefile @@ -1,68 +1,68 @@ PORTNAME= dune-fem DISTVERSION= 2.8.0.5 PORTREVISION= 19 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Finite Element Methods, Finite Volume Methods, etc WWW= https://www.dune-project.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= arpack++>0:math/arpack++ \ dune-istl>=2.6:math/dune-istl \ 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 \ libdunecommon.so:math/dune-common \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libdunepolygongrid.so:math/dune-polygongrid \ libduneuggrid.so:math/dune-uggrid \ libgmp.so:math/gmp \ libmetis.so:math/metis \ libopenblas.so:math/openblas \ libsuitesparseconfig.so:math/suitesparse-config \ libsuperlu.so:math/superlu \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libldl.so:math/suitesparse-ldl \ libspqr.so:math/suitesparse-spqr \ libumfpack.so:math/suitesparse-umfpack \ libtbb.so:devel/onetbb 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 USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= dune-fem GL_TAGNAME= 30e278aa744c908fbf4bbd8b237eb26c0475d16e CMAKE_ON= BUILD_SHARED_LIBS OPTIONS_DEFINE= DOCS DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * post-install: # https://gitlab.dune-project.org/dune-fem/dune-fem/-/issues/111 ${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/modules/FindPThreads.cmake ${RM} ${STAGEDIR}${PREFIX}/share/dune/cmake/modules/FindSIONlib.cmake .include diff --git a/math/dune-geometry/Makefile b/math/dune-geometry/Makefile index f4bb13ea1dbe..5cfeae3b1718 100644 --- a/math/dune-geometry/Makefile +++ b/math/dune-geometry/Makefile @@ -1,40 +1,40 @@ PORTNAME= dune-geometry DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 10 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Geometry transformations, reference elements, etc 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 \ libtbb.so:devel/onetbb USES= cmake compiler:c++17-lang fortran pkgconfig python USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= core GL_TAGNAME= e7bfb66e48496aa28e47974c33ea9a4579bf723b CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-grid-glue/Makefile b/math/dune-grid-glue/Makefile index 8b3d13af914e..a3f06da4417a 100644 --- a/math/dune-grid-glue/Makefile +++ b/math/dune-grid-glue/Makefile @@ -1,45 +1,45 @@ PORTNAME= dune-grid-glue DISTVERSION= 2.8.0 PORTREVISION= 8 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: infrastructure for coupling of unrelated Dune grids 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 \ 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= alberta-fem>0:math/alberta # binaries aren't linked with alberta, instead users' binaries are linked with it RUN_DEPENDS+= psurface>0:math/psurface USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 22efb0e3cbf0a75094a8d81a4fdd352c98e78947 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-grid/Makefile b/math/dune-grid/Makefile index 7e0e1b974228..bfb6dd47b0f4 100644 --- a/math/dune-grid/Makefile +++ b/math/dune-grid/Makefile @@ -1,46 +1,46 @@ PORTNAME= dune-grid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 10 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: Geometry transformations, reference elements, etc WWW= https://www.dune-project.org/ 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 \ libdunegeometry.so:math/dune-geometry \ libduneuggrid.so:math/dune-uggrid \ libopenblas.so:math/openblas \ libtbb.so:devel/onetbb RUN_DEPENDS= alberta-fem>0:math/alberta # binaries aren't linked with alberta, instead users' binaries are linked with it RUN_DEPENDS+= psurface>0:math/psurface USES= cmake compiler:c++17-lang fortran pkgconfig python:build USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= core GL_TAGNAME= de36e4b4e99da4cd7a120a39779345e701821115 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-pdelab/Makefile b/math/dune-pdelab/Makefile index c75900d23c65..570049e50452 100644 --- a/math/dune-pdelab/Makefile +++ b/math/dune-pdelab/Makefile @@ -1,66 +1,66 @@ PORTNAME= dune-pdelab DISTVERSIONPREFIX= v DISTVERSION= 2.7.0.20210824 PORTREVISION= 20 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: PDE solver toolbox WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING DUNE_DEPENDS= dune-common>0:math/dune-common \ dune-functions>0:math/dune-functions \ dune-grid>0:math/dune-grid \ dune-istl>0:math/dune-istl \ dune-geometry>0:math/dune-geometry \ dune-localfunctions>0:math/dune-localfunctions \ 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 \ libgmp.so:math/gmp \ libmetis.so:math/metis \ libpsurface.so:math/psurface \ libopenblas.so:math/openblas \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libsuitesparseconfig.so:math/suitesparse-config \ libldl.so:math/suitesparse-ldl \ libspqr.so:math/suitesparse-spqr \ libumfpack.so:math/suitesparse-umfpack \ libsuperlu.so:math/superlu \ 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 USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= pdelab GL_TAGNAME= 20c7085389d3eb4f8ca99e1bc60f7fa6036536c8 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-polygongrid/Makefile b/math/dune-polygongrid/Makefile index c3fa134615d7..870c40fcc000 100644 --- a/math/dune-polygongrid/Makefile +++ b/math/dune-polygongrid/Makefile @@ -1,32 +1,32 @@ PORTNAME= dune-polygongrid DISTVERSION= 2.8.0 PORTREVISION= 8 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: 2D polygonal grid 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 USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 90840c3d36f5fa6e18a00e7df7be01832cd7e23b CMAKE_ON= BUILD_SHARED_LIBS .include diff --git a/math/dune-spgrid/Makefile b/math/dune-spgrid/Makefile index 45624c6dfcc9..f51f39ffaa4d 100644 --- a/math/dune-spgrid/Makefile +++ b/math/dune-spgrid/Makefile @@ -1,41 +1,41 @@ PORTNAME= dune-spgrid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: A structured, parallel DUNE grid implementation WWW= https://www.dune-project.org/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE DUNE_DEPENDS= dune-common>0:math/dune-common \ dune-grid>0:math/dune-grid \ 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} USES= cmake compiler:c++17-lang fortran pkgconfig USE_GITLAB= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 0e5a3b234d885ac566c9622421ab4eab97c8a50e NO_ARCH= yes OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-typetree/Makefile b/math/dune-typetree/Makefile index e5bc16f04a82..b7d9854803ec 100644 --- a/math/dune-typetree/Makefile +++ b/math/dune-typetree/Makefile @@ -1,39 +1,39 @@ PORTNAME= dune-typetree DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: The TypeTree library WWW= https://www.dune-project.org/ 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 USE_GITLAB= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= staging GL_TAGNAME= cf6b5b4d3abe5dfa748815a69f6a8bda02af36f0 NO_ARCH= yes OPTIONS_DEFINE= DOCS OPTIONS_SUB= yes DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/dune-uggrid/Makefile b/math/dune-uggrid/Makefile index 0c47f3f0225d..01189785bde0 100644 --- a/math/dune-uggrid/Makefile +++ b/math/dune-uggrid/Makefile @@ -1,32 +1,32 @@ PORTNAME= dune-uggrid DISTVERSIONPREFIX= v DISTVERSION= 2.8.0 PORTREVISION= 10 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: The UG Grid Manager 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 USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= staging GL_TAGNAME= bc2d1229420367563410ce9e519f5ff82b45266f CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DTBB_INCLUDE_DIR=${LOCALBASE}/include -DTBB_LIBRARIES=${LOCALBASE}/lib/libtbb.so .include diff --git a/math/dune-vtk/Makefile b/math/dune-vtk/Makefile index 4b7187f42953..d1c15e796e87 100644 --- a/math/dune-vtk/Makefile +++ b/math/dune-vtk/Makefile @@ -1,63 +1,63 @@ PORTNAME= dune-vtk DISTVERSION= 2.8.0 PORTREVISION= 18 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= DUNE framework: File reader and writer for the VTK XML format WWW= https://www.dune-project.org/ LICENSE= GPLv2+ HPP_DEPENDS= ${LOCALBASE}/include/dune/foamgrid/foamgrid.hh:math/dune-foamgrid \ dune-localfunctions>0:math/dune-localfunctions \ dune-spgrid>0:math/dune-spgrid 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 \ libdunegeometry.so:math/dune-geometry \ libdunegrid.so:math/dune-grid \ libdunepolygongrid.so:math/dune-polygongrid \ libduneuggrid.so:math/dune-uggrid \ libgmp.so:math/gmp \ libmetis.so:math/metis \ libopenblas.so:math/openblas \ libpsurface.so:math/psurface \ libamd.so:math/suitesparse-amd \ libcamd.so:math/suitesparse-camd \ libccolamd.so:math/suitesparse-ccolamd \ libcholmod.so:math/suitesparse-cholmod \ libcolamd.so:math/suitesparse-colamd \ libsuitesparseconfig.so:math/suitesparse-config \ libldl.so:math/suitesparse-ldl \ libspqr.so:math/suitesparse-spqr \ libumfpack.so:math/suitesparse-umfpack \ libsuperlu.so:math/superlu \ 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 USE_LDCONFIG= yes GL_SITE= https://gitlab.dune-project.org GL_ACCOUNT= extensions GL_TAGNAME= 467838cde3bbea3d27d2bd117570a3215240dcd1 CMAKE_ON= BUILD_SHARED_LIBS OPTIONS_DEFINE= DOCS DOCS_CMAKE_BOOL= FREEBSD_INSTALL_DOCS DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ sphinx-build:textproc/py-sphinx PORTDOCS= * .include diff --git a/math/elemental/Makefile b/math/elemental/Makefile index e05f449b4433..837d04bed8b3 100644 --- a/math/elemental/Makefile +++ b/math/elemental/Makefile @@ -1,47 +1,47 @@ PORTNAME= elemental DISTVERSIONPREFIX= v DISTVERSION= 1.5.2 PORTREVISION= 1 CATEGORIES= math MAINTAINER= yuri@FreeBSD.org COMMENT= Dense and sparse linear algebra, conic optimization, lattice reduction WWW= https://github.com/LLNL/Elemental LICENSE= BSD2CLAUSE BROKEN_i386= clang crashes: https://bugs.llvm.org/show_bug.cgi?id=46026 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 USES= cmake compiler:c++14-lang fortran USE_GITHUB= yes GH_ACCOUNT= LLNL GH_PROJECT= Elemental USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS EL_DISABLE_PARMETIS CMAKE_OFF= Hydrogen_ENABLE_TESTING CMAKE_ARGS= -DGFORTRAN_LIB:STRING=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so \ -DFREEBSD_GCC_LIB:STRING=${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so DOCSDIR= ${PREFIX}/share/doc/Elemental OPTIONS_DEFINE= DOCS PORTDOCS= * do-test: # 4 tests fail, see https://github.com/LLNL/Elemental/issues/157 @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DHydrogen_ENABLE_TESTING:BOOL=ON -DHydrogen_ENABLE_UNIT_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test .include diff --git a/math/moab/Makefile b/math/moab/Makefile index ec7beaa99fd9..b742296d9b06 100644 --- a/math/moab/Makefile +++ b/math/moab/Makefile @@ -1,47 +1,47 @@ PORTNAME= moab DISTVERSION= 5.3.1 PORTREVISION= 4 CATEGORIES= math MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/ MAINTAINER= yuri@FreeBSD.org COMMENT= Component for representing and evaluating mesh data WWW= https://press3.mcs.anl.gov/sigma/moab-library/ LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libhdf5.so:science/hdf5 \ libnetcdf.so:science/netcdf \ libopenblas.so:math/openblas USES= cmake eigen:3 fortran USE_LDCONFIG= yes CMAKE_ARGS= -DBLAS_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \ -DLAPACK_LIBRARIES:STRING=${LOCALBASE}/lib/libopenblas.so \ -DFREEBSD_STAGEDIR:STRING=${STAGEDIR} BB_ACCOUNT= fathomteam BB_PROJECT= ${PORTNAME} BB_COMMIT= 65880ffe833d WRKSRC= ${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT} OPTIONS_DEFINE= MPI 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 post-install: # docs are just readmes @${RM} -r ${STAGEDIR}${DOCSDIR} # examples are installed into a wrong location, maybe fix them later? @${RM} -r ${STAGEDIR}${PREFIX}/share/examples .include diff --git a/math/parmgridgen/Makefile b/math/parmgridgen/Makefile index 1a66bdbaf07b..bab6a59f12df 100644 --- a/math/parmgridgen/Makefile +++ b/math/parmgridgen/Makefile @@ -1,43 +1,43 @@ PORTNAME= parmgridgen PORTVERSION= 1.0 PORTREVISION= 16 CATEGORIES= math science MASTER_SITES= http://www.mgnet.org/mgnet/Codes/parmgridgen/ \ http://www-users.cs.umn.edu/~moulitsa/download/ \ http://www.stasyan.com/devel/distfiles/ DISTNAME= ParMGridGen-${PORTVERSION} 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 MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} 's|make|$$(MAKE)|g' ${WRKSRC}/Makefile #respect CFLAGS . for f in IMlib Lib Programs @${REINPLACE_CMD} 's|CFLAGS =|CFLAGS+=|g' ${WRKSRC}/MGridGen/${f}/Makefile . endfor . for f in IMParMetis-2.0 ParLib Programs @${REINPLACE_CMD} 's|CFLAGS =|CFLAGS+=|g' ${WRKSRC}/ParMGridGen/${f}/Makefile . endfor do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mgridgen ${STAGEDIR}${PREFIX}/bin/mgridgen ${INSTALL_PROGRAM} ${WRKSRC}/parmgridgen ${STAGEDIR}${PREFIX}/bin/parmgridgen ${INSTALL_DATA} ${WRKSRC}/libmgrid.a ${STAGEDIR}${PREFIX}/lib/libmgrid.a ${INSTALL_DATA} ${WRKSRC}/libparmgrid.a ${STAGEDIR}${PREFIX}/lib/libparmgrid.a ${INSTALL_DATA} ${WRKSRC}/mgridgen.h ${STAGEDIR}${PREFIX}/include/mgridgen.h do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README .include diff --git a/math/vtk8/Makefile b/math/vtk8/Makefile index 174f094f0e90..3ff6e25e6f50 100644 --- a/math/vtk8/Makefile +++ b/math/vtk8/Makefile @@ -1,130 +1,130 @@ PORTNAME= vtk DISTVERSION= 8.2.0 PORTREVISION= 3 CATEGORIES= math graphics MASTER_SITES= http://www.vtk.org/files/release/${VTK_SHORT_VER}/ PKGNAMESUFFIX= 8 DISTNAME= ${PORTNAME:tu}-${PORTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Visualization toolkit WWW= https://www.vtk.org LICENSE= BSD3CLAUSE BROKEN_FreeBSD_13_aarch64= clang crashes, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275784 LIB_DEPENDS= libtiff.so:graphics/tiff \ libpng.so:graphics/png \ libfreetype.so:print/freetype2 \ libexpat.so:textproc/expat2 CONFLICTS= vtk6 vtk9 USES= alias cmake compiler:c++11-lang gl jpeg localbase perl5 xorg USE_LDCONFIG= ${PREFIX}/lib/vtk-${VTK_SHORT_VER} USE_XORG= ice x11 xt xext sm CMAKE_ON= BUILD_SHARED_LIBS \ VTK_INSTALL_NO_DOCUMENTATION VTK_USE_SYSTEM_EXPAT VTK_USE_SYSTEM_TIFF \ VTK_USE_SYSTEM_PNG VTK_USE_SYSTEM_JPEG VTK_USE_SYSTEM_FREETYPE VTK_USE_SYSTEM_ZLIB \ Module_vtkTestingCore Module_vtkTestingRendering CMAKE_ARGS+= -DVTK_INSTALL_LIBRARY_DIR=lib/vtk-${VTK_SHORT_VER} \ -DVTK_INSTALL_ARCHIVE_DIR=lib/vtk-${VTK_SHORT_VER} \ -DVTK_INSTALL_QT_DIR=/${QT_LIBDIR_REL}/plugins/designer \ -DSTAGEDIR=${STAGEDIR} VTK_SHORT_VER= ${PORTVERSION:R} DOCSDIR= ${PREFIX}/share/doc/vtk-${VTK_SHORT_VER} DATADIR= ${PREFIX}/share/vtk-${VTK_SHORT_VER} # Options OPTIONS_DEFINE= DESIGNER DOCS OSMESA QT5 EXAMPLES OPTIONS_DEFAULT= MPI QT5 OSMESA_DESC= Use Mesa for off-screen rendering DESIGNER_DESC= Build the Qt Designer plugin OPTIONS_SUB= yes # Options groups #VTK_GROUPS= Imaging MPI Qt Rendering StandAlone Views VTK_GROUPS= MPI VTK_WRAPS= JAVA TCLTK OPTIONS_GROUP= GROUPS WRAPPING OPTIONS_GROUP_GROUPS=${VTK_GROUPS} OPTIONS_GROUP_WRAPPING=${VTK_WRAPS} GROUPS_DESC= Groups WRAPPING_DESC= Wrapping .for g in ${VTK_GROUPS} $g_DESC= Build the $g group .endfor .for w in ${VTK_WRAPS} $w_DESC= $w wrapping .endfor QT5_USES= qt:5 QT5_USE= QT=core,gui,sql,uiplugin,widgets,x11extras,qmake:build,buildtools:build QT5_CMAKE_ON= -DVTK_QT_VERSION:STRING="5" \ -DCMAKE_PREFIX_PATH:STRING=${LOCALBASE}/lib/qt5 \ -DVTK_Group_Qt:BOOL=ON 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 \ -DOSMESA_INCLUDE_DIR:PATH=${LOCALBASE}/include/Mesa \ -DOSMESA_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so \ -DOPENGL_gl_LIBRARY:FILEPATH=${LOCALBASE}/lib/libOSMesa.so \ -DVTK_USE_X:BOOL=OFF OSMESA_LIB_DEPENDS= libOSMesa.so:graphics/libosmesa # Wrapping JAVA_CATEGORIES= java JAVA_VARS= USE_JAVA=yes JAVA_CMAKE_BOOL= VTK_WRAP_JAVA Module_vtkWrappingJava JAVA_CMAKE_ON= -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include \ -DJAVA_AWT_LIBRARY:PATH=${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so \ -DJAVA_JVM_LIBRARY:PATH=${JAVA_HOME}/jre/lib/${ATCH}/libjava.so TCLTK_USES= tk TCLTK_CMAKE_BOOL= VTK_WRAP_TCL VTK_Group_Tk TCLTK_CMAKE_ON= -DTCL_INCLUDE_PATH:PATH=${TCL_INCLUDEDIR} \ -DTK_INCLUDE_PATH:PATH=${TK_INCLUDEDIR} \ -DVTK_INSTALL_TCL_DIR=lib/vtk-${VTK_SHORT_VER} DOCS_CMAKE_BOOL= BUILD_DOCUMENTATION DOCS_BUILD_DEPENDS= doxygen:devel/doxygen EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES # Mangling so that it will build when science/netcdf is installed. post-patch: @${MV} ${WRKSRC}/ThirdParty/netcdf/vtknetcdf/include/netcdf.h \ ${WRKSRC}/ThirdParty/netcdf/vtknetcdf/include/xxxnetcdf.h @${FIND} ${WRKSRC}/ThirdParty/netcdf -type f | ${XARGS} ${REINPLACE_CMD} \ -E 's/[[:<:]]netcdf\.h[[:>:]]/xxxnetcdf.h/' .include .for g in ${VTK_GROUPS} . if ${PORT_OPTIONS:M${g}} CMAKE_ARGS+= -DVTK_Group_${g}:BOOL=ON . else CMAKE_ARGS+= -DVTK_Group_${g}:BOOL=OFF . endif .endfor .if !${PORT_OPTIONS:MOSMESA} USES+= gl USE_GL= gl glu .endif post-install: # autoplist: thousands of files, complex dependencies on options @cd ${STAGEDIR}${PREFIX} && \ ${FIND} * -type f -or -type l >> ${TMPPLIST} .include diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile index df46ae9cb9af..dec2a090df34 100644 --- a/misc/py-pytorch/Makefile +++ b/misc/py-pytorch/Makefile @@ -1,71 +1,71 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.2.0 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch: Tensors and dynamic neural networks in Python WWW= https://pytorch.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= build fails: CMake Error at third_party/QNNPACK/CMakeLists.txt:47 (MESSAGE): Unrecognized CMAKE_SYSTEM_NAME = FreeBSD BROKEN_i386= build fails: DispatchStub.cpp:162:29: [0m[0;1;31merror: [0m[1muse of undeclared identifier 'AVX2'[0m BUILD_DEPENDS= cmake:devel/cmake-core \ gmake:devel/gmake \ pybind11>0:devel/pybind11 \ ${PYNUMPY} \ ${LOCALBASE}/include/fxdiv.h:devel/fxdiv \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ ${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 \ libprotobuf.so:devel/protobuf \ libsleef.so:math/sleef RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} # optional dependency USES= compiler:c++17-lang localbase:ldflags python USE_PYTHON= distutils autoplist MAKE_ENV= USE_NINJA=no # ninja breaks for some reason MAKE_ENV+= BUILD_TEST=0 # ninja breaks for some reason MAKE_ENV+= USE_MKLDNN=0 # disable MKLDNN that doesn't exist, see https://github.com/pytorch/pytorch/issues/100957 MAKE_ENV+= USE_CUDNN=0 LDFLAGS+= -lexecinfo BINARY_ALIAS= make=${GMAKE} POST_PLIST= fix-plist .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) USES+= llvm:max=15 .endif post-install: # strip binaries @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/bin/torch_shm_manager \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/_C${PYTHON_EXT_SUFFIX}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/functorch/_C${PYTHON_EXT_SUFFIX}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/lib/lib*.so fix-plist: # remove the stray %%PYTHON_SITELIBDIR%%/caffe2 file @${REINPLACE_CMD} -e "s|.*/caffe2$$||" ${TMPPLIST} .include diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile index 69a95343d311..c84c0418e7a7 100644 --- a/misc/pytorch/Makefile +++ b/misc/pytorch/Makefile @@ -1,76 +1,76 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.2.0 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= Tensors and dynamic neural networks in Python (C++ library) WWW= https://pytorch.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= compilation fails: error: use of undeclared identifier 'AVX2' BUILD_DEPENDS= gmake:devel/gmake \ ${LOCALBASE}/include/fxdiv.h:devel/fxdiv 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 \ libsleef.so:math/sleef USES= compiler:c++17-lang cmake localbase:ldflags python # requires python even with PYTHON=off CMAKE_OFF= BUILD_CUSTOM_PROTOBUF USE_CUDA USE_ROCM USE_NNPACK USE_QNNPACK USE_PYTORCH_QNNPACK \ USE_FBGEMM # workaround recommended by the upstream here: https://github.com/pytorch/pytorch/issues/28337 CMAKE_ON= USE_SYSTEM_PYBIND11 \ USE_SYSTEM_SLEEF \ USE_SYSTEM_ONNX # see other USE_SYSTEM_xx in CMakeLists.txt CMAKE_ON+= ONNX_USE_LITE_PROTO # workaround for the protobuf-related failure described here: https://github.com/onnx/optimizer/issues/38 CMAKE_ARGS= -DPSIMD_SOURCE_DIR=${WRKSRC}/third_party/psimd \ -DPYTHON_EXECUTABLE=${PYTHON_CMD} MAKE_ENV= USE_NINJA=no # ninja breaks for some reason LDFLAGS+= -lexecinfo BINARY_ALIAS= make=${GMAKE} git=true OPTIONS_DEFINE= PYTHON # PYTHON only provides python support for the py-PyTorch port - it's not a python binding OPTIONS_DEFAULT= PYTHON OPTIONS_SUB= yes PYTHON_CMAKE_BOOL= BUILD_PYTHON PYTHON_PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \ pybind11>0:devel/pybind11 PYTHON_RUN_DEPENDS= ${PYTHON_PY_DEPENDS} .include .if ${ARCH} == "amd64" PLIST_SUB+= AMD64="" .else PLIST_SUB+= AMD64="@comment " .endif post-patch: # replace malloc.h -> stdlib.h in many places @cd ${WRKSRC} && for f in $$(${GREP} -rl "include " * | ${GREP} -E "\.(c|cpp|h|hpp)$$"); do \ ${REINPLACE_CMD} -i'' -E "s|include |include |" $$f; \ done post-install: # functorch.so is installed back into the source directory, see https://github.com/pytorch/pytorch/issues/91524 @${RM} $$(${FIND} ${STAGEDIR} -name functorch.so) # https://github.com/pytorch/pytorch/issues/24417 @${FIND} ${STAGEDIR} -type d -empty -delete .include diff --git a/misc/thrill/Makefile b/misc/thrill/Makefile index 4f77bf2ad71f..eb5df628dc6f 100644 --- a/misc/thrill/Makefile +++ b/misc/thrill/Makefile @@ -1,33 +1,33 @@ PORTNAME= thrill DISTVERSION= g20200406 PORTREVISION= 1 CATEGORIES= misc MAINTAINER= yuri@FreeBSD.org COMMENT= C++ framework for algorithmic distributed Big Data batch computations WWW= https://project-thrill.org/ LICENSE= BSD2CLAUSE 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 USE_GITHUB= yes GH_TAGNAME= 12c5b59bca66df93b66628b3829027bd0f110dd9 CMAKE_ON= BUILD_SHARED_LIBS CMAKE_OFF= THRILL_USE_JEMALLOC CMAKE_ARGS= -DINSTALL_INCLUDE_DIR=${PREFIX}/include # workaround for https://github.com/thrill/thrill/issues/196 GH_TUPLE= USCiLab:cereal:2f9471bc401590cf58b38bbbc33d412dade6d589:USCiLab_cereal/extlib/cereal \ google:googletest:5490beb0602eab560fa3969a4410e11d94bf12af:google_googletest/extlib/googletest \ bji:libs3:111dc30029f64bbf82031f3e160f253a0a63c119:bji_libs3/extlib/libs3/libs3 \ tlx:tlx:89397b7fa1aa5631b4b84e53a92d6c5e06044d43:tlx_tlx/extlib/tlx \ stxxl:foxxll:a4a8aeee64743f845c5851e8b089965ea1c219d7:stxxl_foxxll/extlib/foxxll .include diff --git a/science/ALPSCore/Makefile b/science/ALPSCore/Makefile index 5b0ed91d2ec7..44591c2ec50f 100644 --- a/science/ALPSCore/Makefile +++ b/science/ALPSCore/Makefile @@ -1,56 +1,56 @@ PORTNAME= ALPSCore DISTVERSIONPREFIX= v DISTVERSION= 2.3.1 CATEGORIES= science MAINTAINER= ports@FreeBSD.org COMMENT= Generic algorithms and utilities for condensed matter physics WWW= https://github.com/ALPSCore/ALPSCore LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE.TXT LIB_DEPENDS= libboost_system.so:devel/boost-libs \ libhdf5.so:science/hdf5 \ libsz.so:science/libaec USES= cmake compiler:c++11-lang eigen:3 USE_CXXSTD= c++14 USE_GITHUB= yes USE_LDCONFIG= yes TEST_TARGET= test # 2 to 3 tests fail: https://github.com/ALPSCore/ALPSCore/issues/388 CMAKE_ARGS+= -DTesting:BOOL=OFF # enable only for the 'test' target CMAKE_ARGS_TEST= -DTesting:BOOL=ON -DExtensiveTesting:BOOL=ON CXXFLAGS+= -DNDEBUG # see https://github.com/ALPSCore/ALPSCore/issues/389 LDFLAGS+= -lexecinfo # https://github.com/ALPSCore/ALPSCore/issues/390 OPTIONS_DEFINE= DOXYGEN DOCS OPENMPI OPTIONS_DEFAULT= OPENMPI DOXYGEN_IMPLIES= DOCS 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= * .include .if ${PORT_OPTIONS:MOPENMPI} CC= ${LOCALBASE}/mpi/openmpi/bin/mpicc CXX= ${LOCALBASE}/mpi/openmpi/bin/mpicxx .endif post-install-DOXYGEN-on: @${RM} ${STAGEDIR}${DOCSDIR}/.tag pre-test: @cd ${CONFIGURE_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_ARGS_TEST} ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} .include diff --git a/science/lammps/Makefile b/science/lammps/Makefile index a625f5df48d9..3a1ffeb10875 100644 --- a/science/lammps/Makefile +++ b/science/lammps/Makefile @@ -1,157 +1,157 @@ PORTNAME= lammps PORTVERSION= ${GH_TAGNAME:C/(stable|patch)_([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\4.\3.\2/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/S/_update/./:C/\.([1-9])$/.0\1/} CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Classical molecular dynamics code with a focus on materials modeling WWW= https://lammps.sandia.gov/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= undefined reference to `__atomic_load' LIB_DEPENDS= libevent.so:devel/libevent \ libfftw3.so:math/fftw3 \ libhwloc.so:devel/hwloc2 \ libnghttp2.so:www/libnghttp2 \ libpciaccess.so:devel/libpciaccess \ libssh2.so:security/libssh2 \ libzstd.so:archivers/zstd USES= blaslapack:openblas cmake:noninja,testing compiler:c++14-lang eigen:3 fortran gnome localbase:ldflags python shebangfix USE_GNOME= libxml2 USE_LDCONFIG= yes USE_PYTHON= cython USE_GITHUB= yes GH_TAGNAME= patch_21Nov2023 SHEBANG_GLOB= *.sh *.bash SHEBANG_FILES= lib/kokkos/bin/nvcc_wrapper CMAKE_ON= BUILD_SHARED_LIBS CMAKE_SOURCE_PATH= ${WRKSRC}/cmake CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" ${CMAKE_ARGS_${CHOSEN_COMPILER_TYPE}} \ -DPython_EXECUTABLE=${PYTHON_CMD} CMAKE_ARGS_gcc= -DBUILD_OMP:BOOL=false CMAKE_TESTING_ON= ENABLE_TESTING # 3 tests fail, see https://github.com/lammps/lammps/issues/3875 # enable packages (for a complete list see STANDARD_PACKAGES in cmake/CMakeLists.txt) CMAKE_ON+= PKG_ASPHERE PKG_ATC PKG_AWPMD PKG_BOCS PKG_BODY PKG_BROWNIAN PKG_CG-DNA PKG_CG-SDK PKG_CLASS2 CMAKE_ON+= PKG_COLLOID PKG_COLVARS PKG_COMPRESS PKG_DIELECTRIC PKG_DIFFRACTION PKG_DIPOLE PKG_DPD-BASIC PKG_DPD-MESO PKG_DPD-REACT PKG_DPD-SMOOTH CMAKE_ON+= PKG_DRUDE PKG_EFF PKG_EXTRA-COMPUTE PKG_EXTRA-DUMP PKG_EXTRA-FIX PKG_EXTRA-MOLECULE PKG_EXTRA-PAIR PKG_FEP PKG_GRANULAR PKG_H5MD CMAKE_ON+= PKG_INTERLAYER PKG_KIM PKG_KSPACE PKG_LATBOLTZ PKG_LATTE PKG_MACHDYN PKG_MANIFOLD PKG_MANYBODY PKG_MC CMAKE_ON+= PKG_MEAM PKG_MESSAGE PKG_MGPT PKG_MISC PKG_ML-IAP PKG_ML-RANN CMAKE_ON+= PKG_ML-SNAP PKG_MOFFF PKG_MOLECULE PKG_MOLFILE PKG_MPIIO PKG_ORIENT PKG_PERI PKG_PHONON CMAKE_ON+= PKG_PLUGIN PKG_PLUMED PKG_POEMS PKG_PTM PKG_PYTHON PKG_QEQ PKG_QMMM PKG_QTB PKG_REACTION PKG_REAXFF CMAKE_ON+= PKG_REPLICA PKG_RIGID PKG_SHOCK PKG_SMTBQ PKG_SPH PKG_SPIN PKG_SRD PKG_TALLY PKG_UEF CMAKE_ON+= PKG_VORONOI PKG_YAFF # Packages requiring extra downloades or dependencies: PKG_MSCG PKG_ADIOS PKG_MDI PKG_MESONT PKG_ML-PACE PKG_NETCDF PKG_ML-QUIP PKG_SCAFACOS PKG_VTK # PKG_ML-HDNNP downloads https://github.com/CompPhysVienna/n2p2/archive/v2.1.4.tar.gz OPTIONS_DEFINE= EXCEPTIONS JPEG PNG GZIP FFMPEG OPTIONS_GROUP= PARALLEL PACKAGES OPTIONS_DEFAULT= EXCEPTIONS MPI OPENMP JPEG PNG GZIP FFMPEG H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI ${OPTIONS_DEFAULT_${CHOSEN_COMPILER_TYPE}} OPTIONS_SUB= yes PARALLEL_DESC= Enable parallelizations: PACKAGES_DESC= Enable packages: OPTIONS_GROUP_PARALLEL= MPI OPENMP ${OPTIONS_DEFINE_${CHOSEN_COMPILER_TYPE}} OPTIONS_GROUP_PACKAGES= H5MD KIM KOKKOS LATTE NETCDF PLUMED VORONOI VTK 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 FFMPEG_BUILD_DEPENDS= ffmpeg:multimedia/ffmpeg FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg JPEG_CMAKE_BOOL= WITH_JPEG JPEG_USES= jpeg PNG_CMAKE_BOOL= WITH_PNG PNG_LIB_DEPENDS= libpng.so:graphics/png GZIP_DESC= Enable GZIP support GZIP_CMAKE_BOOL= WITH_GZIP H5MD_DESC= H5MD package based on the libhdf5 library H5MD_CMAKE_BOOL= PKG_H5MD H5MD_LIB_DEPENDS= libhdf5.so:science/hdf5 \ libsz.so:science/libaec KIM_DESC= KIM package based on the OpenKim library/repository KIM_USES= pkgconfig KIM_CMAKE_BOOL= PKG_KIM KIM_CMAKE_ON= -DDOWNLOAD_KIM:BOOL=OFF KIM_LIB_DEPENDS= libkim-api.so:science/kim-api \ libcurl.so:ftp/curl KIM_RUN_DEPENDS= openkim-models>0:science/openkim-models KOKKOS_DESC= Kokkos package based on the libkokkos library KOKKOS_CMAKE_BOOL= PKG_KOKKOS EXTERNAL_KOKKOS KOKKOS_LIB_DEPENDS= libkokkoscore.so:devel/kokkos LATTE_DESC= Latte package based on the liblatte library LATTE_CMAKE_BOOL= PKG_LATTE LATTE_LIB_DEPENDS= liblatte.so:science/latte NETCDF_DESC= NetCDF package based on the NetCDF library NETCDF_CMAKE_BOOL= PKG_NETCDF NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf PLUMED_DESC= Plumed package based on the plumed library PLUMED_USES= pkgconfig PLUMED_CMAKE_BOOL= PKG_PLUMED PLUMED_CMAKE_ON= -DPLUMED_MODE=shared PLUMED_LIB_DEPENDS= libplumed.so:science/plumed VORONOI_DESC= Voro++, Voronoi tessellation package VORONOI_CMAKE_BOOL= PKG_VORONOI VORONOI_LIB_DEPENDS= libvoro++.so:science/voro++ VTK_DESC= VTK package based on the external VTK-${VTK_VER:R} library VTK_CMAKE_BOOL= PKG_VTK VTK_CMAKE_ON= -DVTK_DIR:PATH=${LOCALBASE}/lib/cmake/vtk-${VTK_VER} VTK_USES= gl qt:5 xorg VTK_USE= GL=opengl qt=core,declarative,gui,network,opengl,sql,widgets xorg=ice,sm,x11,xext,xt VTK_LIB_DEPENDS= libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} \ libexpat.so:textproc/expat2 \ libfreetype.so:print/freetype2 \ libtiff.so:graphics/tiff PORTSCOUT= ignore:1 # due to a special version tagging scheme that this project uses portscout fails to find new versions, watching their GitHub release page instead .include .if ${PORT_OPTIONS:MOPENMP} CMAKE_ARGS+= -DBUILD_OMP:BOOL=true .endif xpost-patch: # adjust SHELL in Makefile @${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/src/Makefile # fix python version, also see https://github.com/lammps/lammps/issues/3098, https://github.com/lammps/lammps/issues/3099 @${FIND} ${WRKSRC} -name "CMakeLists.txt" -o -name "*.cmake" | ${XARGS} ${REINPLACE_CMD} -e ' \ s|find_package(Python3 REQUIRED |find_package(Python $${FREEBSD_PYTHON_VER} EXACT REQUIRED |; \ s|find_package(Python 3.5 COMPONENTS |find_package(Python $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python 3.6 COMPONENTS |find_package(Python $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python3 REQUIRED |find_package(Python $${FREEBSD_PYTHON_VER} EXACT REQUIRED |; \ s|find_package(Python COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python3 COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT COMPONENTS |; \ s|find_package(Python QUIET COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT QUIET COMPONENTS |; \ s|find_package(Python REQUIRED COMPONENTS |find_package(Python3 $${FREEBSD_PYTHON_VER} EXACT REQUIRED COMPONENTS | \ ' post-patch-FFMPEG-off: @${REINPLACE_CMD} 's|find_program(FFMPEG_EXECUTABLE|#&|' ${WRKSRC}/cmake/CMakeLists.txt post-install: @${RM} -r ${STAGEDIR}${PREFIX}/lib/python* .include <../../math/vtk9/Makefile.version> .include diff --git a/science/latte/Makefile b/science/latte/Makefile index 0099a4e8279a..9f0f2473b41e 100644 --- a/science/latte/Makefile +++ b/science/latte/Makefile @@ -1,51 +1,51 @@ PORTNAME= latte DISTVERSIONPREFIX= v DISTVERSION= 1.2.2 PORTREVISION= 3 CATEGORIES= science MAINTAINER= yuri@FreeBSD.org COMMENT= Quantum chemistry: Density functional tight binding molecular dynamics WWW= https://github.com/lanl/LATTE LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE_GPL-2.0 USES= blaslapack:openblas cmake:noninja fortran shebangfix SHEBANG_FILES= tests/run_test.sh USE_GITHUB= yes GH_ACCOUNT= lanl GH_PROJECT= ${PORTNAME:tu} USE_LDCONFIG= yes CMAKE_SOURCE_PATH= ${WRKSRC}/cmake CMAKE_ON= BUILD_SHARED_LIBS CMAKE_ARGS= -DBLA_VENDOR:STRING="OpenBLAS" OPTIONS_DEFINE= DBCSR OPENMP MPI # TODO PROGRESS needs to be ported OPTIONS_DEFAULT= OPENMP MPI DBCSR_DESC= Use distributed block compressed sparse row matrix library DBCSR_CMAKE_BOOL= DBCSR_OPT DBCSR_LIB_DEPENDS= libdbcsr.so:math/dbcsr 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 CONFLICTS_INSTALL= latte-integrale .include .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)). # in theory, this should set FCFLAGS, but the port does not conform FFLAGS+= -fallow-argument-mismatch .endif .include diff --git a/science/sparta/Makefile b/science/sparta/Makefile index 014bd562f412..2b4f5ad5c1a0 100644 --- a/science/sparta/Makefile +++ b/science/sparta/Makefile @@ -1,50 +1,50 @@ PORTNAME= sparta PORTVERSION= ${GH_TAGNAME:C/([0-9]{1,2})([A-Z][a-z][a-z])([0-9]{4})/\3.\2.\1/S/Jan/01/S/Feb/02/S/Mar/03/S/Apr/04/S/May/05/S/Jun/06/S/Jul/07/S/Aug/08/S/Sep/09/S/Oct/10/S/Nov/11/S/Dec/12/} PORTREVISION= 1 CATEGORIES= science PKGNAMESUFFIX= -dsmc # Direct Simulation Monte Carlo MAINTAINER= yuri@FreeBSD.org COMMENT= Gas simulator: SPARTA DSMC software package WWW= https://sparta.sandia.gov/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/../LICENSE BUILD_DEPENDS= bash:shells/bash USES= compiler:c++11-lang gmake localbase USE_GITHUB= yes GH_TAGNAME= 18Jul2022 CXXFLAGS+= -DSPARTA_UNORDERED_MAP WRKSRC_SUBDIR= src MAKE_ARGS= CC=${CXX} CCFLAGS="${CXXFLAGS}" LINK=${CXX} LINKFLAGS="${LDFLAGS}" mode=exe OPTIONS_SINGLE= PARALLEL OPTIONS_SINGLE_PARALLEL= SERIAL MPI OPTIONS_DEFAULT= MPI PARALLEL_DESC= Parallelization SERIAL_DESC= Serial: no parallelization SERIAL_ALL_TARGET= serial SERIAL_PLIST_FILES= bin/spa_serial MPI_ALL_TARGET= mpi MPI_PLIST_FILES= bin/spa_mpi 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 post-patch: @${REINPLACE_CMD} 's|SHELL = /bin/bash|SHELL = ${LOCALBASE}/bin/bash|' ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/spa_* ${STAGEDIR}${PREFIX}/bin/ .include