diff --git a/math/deal.ii/Makefile b/math/deal.ii/Makefile index ed127a19e64a..927ddbcbbc42 100644 --- a/math/deal.ii/Makefile +++ b/math/deal.ii/Makefile @@ -1,118 +1,118 @@ PORTNAME= deal.II DISTVERSION= 9.6.2 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= math MASTER_SITES= https://github.com/dealii/dealii/releases/download/v${DISTVERSION}/ DISTNAME= dealii-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Finite element Differential Equations Analysis Library (DEAL) WWW= https://www.dealii.org/ \ https://github.com/dealii/dealii LICENSE= APACHE20 LGPL21 LICENSE_COMB= dual LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.md LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE.md BROKEN_aarch64= error: use of undeclared identifier '__TBB_machine_fetchadd4' BROKEN_armv7= clang runs out of memory BROKEN_i386= compilation fails: Kokkos assumes 64-bit build; i.e., 8-byte pointers BUILD_DEPENDS= ${LOCALBASE}/include/boost/config.hpp:devel/boost-libs LIB_DEPENDS= libblis.so:math/blis \ libboost_serialization.so:devel/boost-libs \ libhdf5.so:science/hdf5 \ libmetis.so:math/metis \ libvtkCommonCore-${VTK_VER}.so:math/vtk${VTK_VER:R} # libkokkoscore.so:devel/kokkos TMP commented out for bundled kokkos, tests fail for non-bundled kokkos, see https://github.com/dealii/dealii/issues/15692 USES= blaslapack cmake:testing compiler:c++17-lang localbase:ldflags xorg USE_LDCONFIG= yes CMAKE_OFF= DEAL_II_ALLOW_BUNDLED DEAL_II_COMPONENT_EXAMPLES \ DEAL_II_WITH_P4EST DEAL_II_WITH_TRILINOS DEAL_II_WITH_UMFPACK \ DEAL_II_WITH_NANOFLANN DEAL_II_WITH_MUPARSER DEAL_II_WITH_ASSIMP \ DEAL_II_WITH_HDF5 CMAKE_ON= DEAL_II_FORCE_BUNDLED_TBB # instead of LIB_DEPENDS+=libtbb.so:devel/onetbb, pending https://github.com/dealii/dealii/issues/11561 CMAKE_ON+= FORCE_BUNDLED_KOKKOS # TMP turn on bundled kokkos CMAKE_TESTING_ON= FREEBSD_ENABLE_TESTS LDFLAGS+= -lomp LDFLAGS+= -lexecinfo # TMP for bundled kokkos XARCH!= uname -p OPTIONS_DEFINE= ADOLC ARPACK GSL LAPACK MPI OPENCASCADE PETSC SCALAPACK SLEPC SUNDIALS # for all options see contrib/docker/Dockerfile, TODO some of them need to be enabled here OPTIONS_DEFAULT= GSL LAPACK MPI OPENCASCADE PETSC SCALAPACK SLEPC SUNDIALS ADOLC_DESC= Compile with ADOL-C ADOLC_CMAKE_BOOL= DEAL_II_WITH_ADOLC ADOLC_LIB_DEPENDS= libadolc.so:math/adol-c ADOLC_BROKEN= requires the development version: see https://github.com/dealii/dealii/issues/7293 ARPACK_DESC= Compile with Arpack and PArpack (only with MPI, LAPACK) ARPACK_CMAKE_BOOL= DEAL_II_WITH_ARPACK ARPACK_CMAKE_ON= -DARPACK_LINKER_FLAGS:STRING="${LDFLAGS}" ARPACK_BUILD_DEPENDS= arpack-ng>0:math/arpack-ng ARPACK_RUN_DEPENDS= arpack-ng>0:math/arpack-ng # itself doesn't link to arpack, but makes depending project link to it ARPACK_IMPLIES= LAPACK GSL_DESC= Compile with gsl GSL_CMAKE_BOOL= DEAL_II_WITH_GSL GSL_LIB_DEPENDS= libgsl.so:math/gsl LAPACK_DESC= Compile with LAPACK for matrix operations LAPACK_USES= fortran LAPACK_CMAKE_BOOL= DEAL_II_WITH_LAPACK LAPACK_CMAKE_ON= -DLAPACK_LINKER_FLAGS:STRING="${LDFLAGS}" LAPACK_LIB_DEPENDS= libopenblas.so:math/openblas MPI_DESC= MPI support (math/sundials must be compiled with MPI) MPI_USES= fortran MPI_CMAKE_BOOL= DEAL_II_WITH_MPI MPI_CMAKE_ON= -DMPI_LINKER_FLAGS:STRING="${LDFLAGS}" MPI_LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \ libmpich.so:net/mpich OPENCASCADE_DESC= Compile with OpenCascade OPENCASCADE_CMAKE_BOOL= DEAL_II_WITH_OPENCASCADE OPENCASCADE_CMAKE_ON= -DOPENCASCADE_INCLUDE_DIR:STRING=${LOCALBASE}/include/OpenCASCADE OPENCASCADE_LIB_DEPENDS= libTKernel.so:cad/opencascade PETSC_DESC= Compile with Petsc (only with MPI) PETSC_USES= xorg PETSC_USE= XORG=x11 # PETSc adds x11 through interface libraries PETSC_CMAKE_BOOL= DEAL_II_WITH_PETSC PETSC_LIB_DEPENDS= libpetsc.so:science/PETSc PETSC_IMPLIES= MPI # has to use the same MPI as PETSc uses .if ${XARCH:M*64*} # match index size width being set to 64 in science/PETSc and math/metis PETSC_CMAKE_BOOL+= DEAL_II_WITH_64BIT_INDICES # as opposed to 32-bit indices that are default in deal.II .endif SCALAPACK_DESC= Compile with ScaLAPACK (only with MPI) SCALAPACK_CMAKE_BOOL= DEAL_II_WITH_SCALAPACK SCALAPACK_IMPLIES= MPI LAPACK SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack SLEPC_DESC= Compile with Slepc (only with MPI) SLEPC_USES= xorg SLEPC_USE= XORG=x11 # SLEPc adds x11 through interface libraries SLEPC_CMAKE_BOOL= DEAL_II_WITH_SLEPC SLEPC_LIB_DEPENDS= libslepc.so:math/slepc SLEPC_IMPLIES= MPI # has to use the same MPI as PETSc uses SUNDIALS_DESC= Compile with SUNDIALS SUNDIALS_CMAKE_BOOL= DEAL_II_WITH_SUNDIALS SUNDIALS_LIB_DEPENDS= libsundials_arkode.so:math/sundials post-patch: # unbundle boost @${RM} -r ${WRKSRC}/dealii/bundled/boost-* post-stage: @${RM} ${STAGEDIR}${PREFIX}/*.log # the testsuite is excluded from the tarball: https://github.com/dealii/dealii/issues/17951 .include <../../math/vtk9/Makefile.version> .include diff --git a/math/flexiblas/Makefile b/math/flexiblas/Makefile index 9f21632def84..b525436e905b 100644 --- a/math/flexiblas/Makefile +++ b/math/flexiblas/Makefile @@ -1,54 +1,55 @@ PORTNAME= flexiblas PORTVERSION= 3.4.5 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= math #MASTER_SITES= https://csc.mpi-magdeburg.mpg.de/mpcsc/software/flexiblas/ MAINTAINER= thierry@FreeBSD.org COMMENT= BLAS and LAPACK wrapper library with runtime exchangable backends WWW= https://www.mpi-magdeburg.mpg.de/projects/flexiblas LICENSE= LGPL3 LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ liblapack.so:math/lapack USES= cmake:testing fortran python tar:xz CMAKE_ARGS= -DLTO:BOOL=OFF USE_GITLAB= yes GL_SITE= https://gitlab.mpi-magdeburg.mpg.de/ GL_ACCOUNT= software GL_PROJECT= ${PORTNAME}-release CONFIGURE_ENV= PYTHON_EXECUTABLE=${PYTHON_CMD} USE_LDCONFIG= yes PLIST_SUB= VE=${PORTVERSION:R} .if defined(WITH_DEBUG) CMAKE_ARGS+= -DFIND_DEBUG:BOOL=ON .endif OPTIONS_DEFINE= DOCS EXAMPLES EXAMPLES_CMAKE_ON= -DEXAMPLES:BOOL=ON EXAMPLES_CMAKE_OFF= -DEXAMPLES:BOOL=OFF .include .if exists(${LOCALBASE}/lib/libatlas.so) LIB_DEPENDS+= libatlas.so:math/atlas PLIST_SUB+= OPENBLAS="@comment " ATLAS="" .else LIB_DEPENDS+= libcblas.so:math/cblas \ libopenblas.so:math/openblas PLIST_SUB+= OPENBLAS="" ATLAS="@comment " .endif post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/flexiblasrc \ ${STAGEDIR}${PREFIX}/etc/flexiblasrc.sample .include diff --git a/math/slepc/Makefile b/math/slepc/Makefile index 2d7c04e4a2a2..862edc2e9c16 100644 --- a/math/slepc/Makefile +++ b/math/slepc/Makefile @@ -1,45 +1,45 @@ PORTNAME= slepc DISTVERSION= 3.22.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math devel MASTER_SITES= http://slepc.upv.es/download/distrib/ MAINTAINER= yuri@FreeBSD.org COMMENT= Scalable Library for Eigenvalue Problem Computations WWW= http://slepc.upv.es/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.md LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ liblapack.so:math/lapack \ libmetis.so:math/metis \ libmpich.so:net/mpich \ libpetsc.so:science/PETSc USES= gmake fortran python shebangfix xorg USE_XORG= x11 # not really needed, but is inherited from the PETSc setup USE_LDCONFIG= yes SHEBANG_FILES= configure SHEBANG_GLOB= *.py MAKEFILE= makefile MAKE_ENV= PETSC_DIR=${LOCALBASE} PETSC_ARCH="" SLEPC_DIR=${WRKSRC} PYTHON=${PYTHON_CMD} TEST_TARGET= test # 1 of 2568 tests fail because some file can't be opened BINARY_ALIAS= python=${PYTHON_CMD} OPTIONS_DEFINE= EXAMPLES PORTEXAMPLES= * do-configure: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./configure --prefix=${PREFIX} post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libslepc.so.${PORTVERSION} .include diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile index 2bf97ee11be6..4b20c667b5c1 100644 --- a/misc/py-pytorch/Makefile +++ b/misc/py-pytorch/Makefile @@ -1,97 +1,98 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PORTNAME}-${DISTVERSIONFULL}${EXTRACT_SUFX} # the main tarball disappears when GH_xx tags are added w/out this line DIST_SUBDIR= ${PORTNAME} MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch: Tensors and dynamic neural networks in Python WWW= https://pytorch.org/ \ https://github.com/pytorch/pytorch 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, see https://github.com/pytorch/pytorch/issues/144608 BROKEN_armv7= build fails: CMake Error at third_party/QNNPACK/CMakeLists.txt:47 (MESSAGE): Unrecognized CMAKE_SYSTEM_NAME = FreeBSD, see https://github.com/pytorch/pytorch/issues/144608 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}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} LIB_DEPENDS= libabsl_base.so:devel/abseil \ libblis.so:math/blis \ 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}fsspec>0:filesystems/py-fsspec@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR} \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}sympy>=1.13.1:math/py-sympy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.10.0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}astunparse>0:devel/py-astunparse@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}protobuf>0:devel/py-protobuf@${PY_FLAVOR} # optional dependencies USES= compiler:c++17-lang localbase:ldflags python USE_PYTHON= distutils autoplist USE_GITHUB= nodefault GH_TUPLE= pytorch:cpuinfo:1e83a2f:cpuinfo/cpuinfo-with-freebsd-support # https://github.com/pytorch/cpuinfo/pull/230/commits 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 MAKE_ENV+= USE_LAPACK=1 # needed on FreeBSD to run w/out GPU MAKE_ENV+= USE_QNNPACK=0 LDFLAGS+= -lexecinfo LDFLAGS_powerpc64le= -pthread BINARY_ALIAS= make=${GMAKE} POST_PLIST= fix-plist TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/test .include .if ${OPSYS} == FreeBSD USES+= llvm:max=15 .endif post-patch: @cd ${WRKSRC} && \ ${RM} -r third_party/cpuinfo third_party/fbgemm/third_party/cpuinfo && \ ${CP} -r cpuinfo-with-freebsd-support third_party/cpuinfo && \ ${CP} -r cpuinfo-with-freebsd-support third_party/fbgemm/third_party/cpuinfo post-install: # strip binaries @${STRIP_CMD} \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/bin/torch_shm_manager \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/_C${PYTHON_TAG}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/functorch/_C${PYTHON_TAG}.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/torch/lib/lib*.so fix-plist: # remove the stray %%PYTHON_SITELIBDIR%%/caffe2 file @${REINPLACE_CMD} -e "s|.*/caffe2$$||" ${TMPPLIST} do-test: cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} run_test.py .include diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile index 8121dbec7d1e..ebacf295b966 100644 --- a/misc/pytorch/Makefile +++ b/misc/pytorch/Makefile @@ -1,82 +1,82 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.4.1 -PORTREVISION= 9 +PORTREVISION= 10 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 \ ${PY_SETUPTOOLS} LIB_DEPENDS= libabsl_base.so:devel/abseil \ libblis.so:math/blis \ libopenblas.so:math/openblas \ 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 \ -pthread 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}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} PYTHON_BUILD_DEPENDS= ${PYTHON_PY_DEPENDS} \ ${PY_SETUPTOOLS} \ 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 # remove bundled fmt @${RM} -r ${WRKSRC}/third_party/fmt 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/science/PETSc/Makefile b/science/PETSc/Makefile index 4684b21a9b24..b7ab3e403b9f 100644 --- a/science/PETSc/Makefile +++ b/science/PETSc/Makefile @@ -1,71 +1,72 @@ PORTNAME= PETSc DISTVERSION= 3.22.4 +PORTREVISION= 1 CATEGORIES= science devel MASTER_SITES= https://web.cels.anl.gov/projects/petsc/download/release-snapshots/ DISTNAME= ${PORTNAME:tl}-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Suite of data structures and routines from Argonne National Laboratory WWW= https://petsc.org/release/ \ https://gitlab.com/petsc/petsc \ https://github.com/petsc/petsc LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libblis.so:math/blis \ libmpich.so:net/mpich USES= blaslapack cmake:indirect fortran gmake python shebangfix xorg USE_LDCONFIG= yes USE_XORG= x11 SHEBANG_FILES= configure lib/petsc/bin/*.py lib/petsc/bin/saws/SAWs.py lib/petsc/bin/saws/*.bash config/*.py \ lib/petsc/bin/petscnagfor share/petsc/chkerrconvert.py XARCH!= uname -p GNU_CONFIGURE= yes CONFIGURE_LOG= configure.log CONFIGURE_ARGS= --with-shared-libraries=1 \ --with-mpi-dir=${LOCALBASE} \ --with-python=1 --with-python-pkg-config=${LOCALBASE}/libdata/pkgconfig \ FCFLAGS="${FCFLAGS}" FFLAGS="${FCFLAGS}" \ ${CONFIGURE_ARGS_${ARCH}} CPPFLAGS="${CPPFLAGS}" \ AR=${AR} RANLIB=${RANLIB} \ MAKEFLAGS="${MAKEFLAGS}" LDFLAGS="${LDFLAGS}" LIBS="" CONFIGURE_ARGS_amd64= CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2" CONFIGURE_ARGS_i386= CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2" .if ${XARCH:M*64*} # match IDXTYPEWIDTH being set to 64 in math/metis CONFIGURE_ARGS+= --with-64-bit-indices # as opposed to 32-bit indices that are default .endif MAKEFILE= makefile TEST_TARGET= test # 152 of 11396 tests (1.3%) fail due to missing files like /usr/local/share/petsc/datafiles/meshes/square_periodic.msh (tests expect the packe to be installed) LDFLAGS+= ${LOCALBASE}/lib/libmpi.so DATADIR= ${PREFIX}/share/${PORTNAME:tl} BINARY_ALIAS= python=${PYTHON_CMD} PLIST_SUB= SHLIB=${DISTVERSION} SHL=${DISTVERSION:C/\.[0-9]$//} OPTIONS_DEFINE= METIS OPTIONS_DEFAULT= METIS METIS_DESC= Enable metis support for graph partitioning algorithms METIS_LIB_DEPENDS= libmetis.so:math/metis METIS_CONFIGURE_ON= --with-metis=1 # --with-parmetis=1 to use include/parmetis.h post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpetsc.so.${DISTVERSION} @${FIND} ${STAGEDIR}${PREFIX} -name "*.html" -delete @cd ${STAGEDIR}${PREFIX} && ${RM} -r bin/win32fe lib/petsc/conf/uninstall.py @${REINPLACE_CMD} -i '' -e 's|^PYTHON = .*|PYTHON = ${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/lib/petsc/conf/petscvariables @${REINPLACE_CMD} -i '' -e 's|#!/.*|#!${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/lib/petsc/conf/reconfigure-arch-*-c-debug.py @${RMDIR} ${STAGEDIR}${PREFIX}/lib/petsc/bin/__pycache__ # stray directory # the file /usr/local/share/petsc/examples/config/gmakegen.py is expected by some dependencies, at least by math/slepc .include diff --git a/science/elk/Makefile b/science/elk/Makefile index a092be431179..3901d4ab49f2 100644 --- a/science/elk/Makefile +++ b/science/elk/Makefile @@ -1,85 +1,85 @@ PORTNAME= elk DISTVERSION= 10.3.12 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= science MASTER_SITES= SF/${PORTNAME} PKGNAMESUFFIX= -chemistry DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= All-electron full-potential linearised augmented-planewave code WWW= http://elk.sourceforge.net/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libblas.so:math/blas \ libblis.so:math/blis \ libfftw3.so:math/fftw3 \ libfftw3f.so:math/fftw3-float \ liblapack.so:math/lapack \ libopenblas.so:math/openblas \ libwannier.so:science/wannier90 \ libxc.so:science/libxc USES= fortran gmake tar:tgz BINARY_ALIAS= make=${GMAKE} LDFLAGS+= ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so OPTIONS_DEFINE= DOCS EXAMPLES NATIVE OPENMP OPTIONS_RADIO= MPI OPTIONS_RADIO_MPI= MPICH OPENMPI OPTIONS_DEFAULT= OPENMP MPICH PARALLEL_DESC= Enable parallelizations: NATIVE_MAKE_ARGS= FFLAGS="${FFLAGS} -march=native -mtune=native" NATIVE_VARS= FFLAGS="-march=native -mtune=native" OPENMP_VARS= OPENMP_FLAGS=-fopenmp MPICH_USES= mpi:mpich MPICH_MAKE_ARGS= F90=${MPIF90} OPENMPI_USES= mpi:openmpi OPENMPI_MAKE_ARGS= F90=${MPIF90} PORTDOCS= * PORTEXAMPLES= * MAKE_JOBS_UNSAFE= yes PLIST_FILES= bin/${PORTNAME} .include .if ${GCC_DEFAULT} >= 10 # workaround for Type mismatch in argument 'cc' at (1); passed COMPLEX(8) to REAL(8) FCFLAGS+= -fallow-argument-mismatch .endif post-patch: @${SED} 's|%%GMAKE%%|${GMAKE}|; s|%%FC%%|${FC}|; \ s|%%FCFLAGS%%|${FCFLAGS}|; \ s|%%OPENMP_FLAGS%%|${OPENMP_FLAGS}|' \ < ${FILESDIR}/make.inc.in \ > ${WRKSRC}/make.inc do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} do-test: # several tests fail, see https://sourceforge.net/p/elk/discussion/897822/thread/5d7862dd8b/ @cd ${WRKSRC}/tests && ./test.sh # 1 test (test_024) fails, reported to dewhurst@mpi-halle.mpg.de on 2026-06-26 (before was: see https://sourceforge.net/p/elk/discussion/897820/thread/f7b5859624/) .include