2018-10-03 07:41:14 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= deal.II
|
|
|
|
DISTVERSIONPREFIX= v
|
2020-10-02 00:14:03 +00:00
|
|
|
DISTVERSION= 9.2.0.20201001 # 9.2.0 breaks with invalid linker flag -l-pthread
|
2018-10-06 21:17:44 +00:00
|
|
|
CATEGORIES= math
|
2018-10-03 07:41:14 +00:00
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Finite element Differential Equations Analysis Library (DEAL)
|
|
|
|
|
2019-05-27 23:29:39 +00:00
|
|
|
LICENSE= LGPL21
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
2018-10-03 07:41:14 +00:00
|
|
|
|
2018-10-06 21:17:44 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/config.hpp:devel/boost-libs
|
2020-10-02 00:14:03 +00:00
|
|
|
LIB_DEPENDS= libboost_serialization.so:devel/boost-libs \
|
|
|
|
libhdf5.so:science/hdf5 \
|
2018-10-03 07:41:14 +00:00
|
|
|
libmetis.so:math/metis \
|
|
|
|
libtbb.so:devel/tbb
|
|
|
|
|
2019-05-27 23:29:39 +00:00
|
|
|
USES= blaslapack:gotoblas cmake compiler:c++17-lang localbase:ldflags
|
2018-10-03 07:41:14 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ${PORTNAME:tl:S/.//}
|
|
|
|
GH_PROJECT= ${PORTNAME:tl:S/.//}
|
2020-10-02 00:14:03 +00:00
|
|
|
GH_TAGNAME= 803d21ff957e349b3799cd3ef2c840bc78734305
|
2018-10-03 07:41:14 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
CMAKE_OFF= DEAL_II_ALLOW_BUNDLED DEAL_II_COMPONENT_EXAMPLES \
|
2018-10-06 21:17:44 +00:00
|
|
|
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
|
2018-10-03 07:41:14 +00:00
|
|
|
|
2020-12-29 11:45:19 +00:00
|
|
|
OPTIONS_DEFINE= ADOLC ARPACK GSL LAPACK MPI NETCDF OPENCASCADE PETSC SCALAPACK SUNDIALS
|
2020-10-02 00:14:03 +00:00
|
|
|
OPTIONS_DEFAULT= GSL LAPACK # SUNDIALS
|
2018-10-03 07:41:14 +00:00
|
|
|
|
2018-10-06 21:17:44 +00:00
|
|
|
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
|
2018-10-03 07:41:14 +00:00
|
|
|
LAPACK_USES= fortran
|
|
|
|
LAPACK_CMAKE_BOOL= DEAL_II_WITH_LAPACK
|
2018-10-06 21:17:44 +00:00
|
|
|
LAPACK_CMAKE_ON= -DLAPACK_LINKER_FLAGS:STRING="${LDFLAGS}"
|
|
|
|
LAPACK_LIB_DEPENDS= libopenblas.so:math/openblas
|
2018-10-03 07:41:14 +00:00
|
|
|
|
2020-04-18 18:52:47 +00:00
|
|
|
MPI_DESC= MPI support (math/sundials must be compiled with MPI)
|
2018-10-03 07:41:14 +00:00
|
|
|
MPI_USES= fortran
|
|
|
|
MPI_CMAKE_BOOL= DEAL_II_WITH_MPI
|
2018-10-06 21:17:44 +00:00
|
|
|
MPI_CMAKE_ON= -DMPI_LINKER_FLAGS:STRING="${LDFLAGS}"
|
2018-10-03 07:41:14 +00:00
|
|
|
MPI_LIB_DEPENDS= libboost_iostreams.so:devel/boost-libs \
|
2020-04-18 18:52:47 +00:00
|
|
|
libmpich.so:net/mpich
|
2018-10-03 07:41:14 +00:00
|
|
|
|
|
|
|
NETCDF_DESC= Compile with Netcdf (only with MPI)
|
|
|
|
NETCDF_CMAKE_BOOL= DEAL_II_WITH_NETCDF
|
|
|
|
NETCDF_CMAKE_ON= -DNETCDF_INCLUDE_DIR:STRING=${LOCALBASE}/include -DNETCDF_CPLUSPLUS_LIBRARY:STRING=${LOCALBASE}/lib/libnetcdf_c++4.so
|
|
|
|
NETCDF_BROKEN= see https://github.com/dealii/dealii/issues/7263
|
|
|
|
|
2018-10-06 21:17:44 +00:00
|
|
|
OPENCASCADE_DESC= Compile with OpenCascade
|
2018-10-03 07:41:14 +00:00
|
|
|
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_CMAKE_BOOL= DEAL_II_WITH_PETSC
|
|
|
|
PETSC_LIB_DEPENDS= libpetsc.so:science/PETSc
|
|
|
|
PETSC_BROKEN= see https://github.com/dealii/dealii/issues/7260
|
|
|
|
|
|
|
|
SCALAPACK_DESC= Compile with ScaLAPACK (only with MPI)
|
|
|
|
SCALAPACK_CMAKE_BOOL= DEAL_II_WITH_SCALAPACK
|
|
|
|
SCALAPACK_IMPLIES= MPI LAPACK
|
2020-10-02 00:14:03 +00:00
|
|
|
SCALAPACK_LIB_DEPENDS= libscalapack.so:math/scalapack
|
2018-10-03 07:41:14 +00:00
|
|
|
|
2018-10-06 21:17:44 +00:00
|
|
|
SUNDIALS_DESC= Compile with SUNDIALS
|
|
|
|
SUNDIALS_CMAKE_BOOL= DEAL_II_WITH_SUNDIALS
|
|
|
|
SUNDIALS_LIB_DEPENDS= libsundials_arkode.so:math/sundials
|
2020-10-02 00:14:03 +00:00
|
|
|
SUNDIALS_BROKEN= Build fails with: Required variable "SUNDIALS_LIB_PAR" set to NOTFOUND
|
|
|
|
|
|
|
|
post-patch: # unbundle boost
|
|
|
|
@${RM} -r ${WRKSRC}/dealii/bundled/boost-*
|
2018-10-06 21:17:44 +00:00
|
|
|
|
2019-05-27 23:29:39 +00:00
|
|
|
post-stage:
|
|
|
|
@${RM} ${STAGEDIR}${PREFIX}/*.log
|
|
|
|
|
2018-10-03 07:41:14 +00:00
|
|
|
.include <bsd.port.mk>
|