Skip to content

Commit

Permalink
New port: math/dune-fem: DUNE framework: Finite Element Methods, Fini…
Browse files Browse the repository at this point in the history
…te Volume Methods, etc
  • Loading branch information
yurivict committed Jan 17, 2021
1 parent 9745dac commit 9600471
Show file tree
Hide file tree
Showing 6 changed files with 615 additions and 0 deletions.
1 change: 1 addition & 0 deletions math/Makefile
Expand Up @@ -227,6 +227,7 @@
SUBDIR += dune-alugrid
SUBDIR += dune-common
SUBDIR += dune-curvedgeometry
SUBDIR += dune-fem
SUBDIR += dune-functions
SUBDIR += dune-geometry
SUBDIR += dune-grid
Expand Down
55 changes: 55 additions & 0 deletions math/dune-fem/Makefile
@@ -0,0 +1,55 @@
# $FreeBSD$

PORTNAME= dune-fem
DISTVERSION= 2.6.0rc3
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
COMMENT= DUNE framework: Finite Element Methods, Finite Volume Methods, etc

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
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 \
libugS2.so:math/dune-uggrid \
libmetis.so:math/metis \
libopenblas.so:math/openblas \
libtbb.so:devel/tbb
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

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_COMMIT= d1b565ab01047e44508c23bb9ba3e3b4491cd8a7

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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions math/dune-fem/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1610838614
SHA256 (dune-fem-dune-fem-d1b565ab01047e44508c23bb9ba3e3b4491cd8a7_GL0.tar.gz) = 609f5ba4927baa228be52e37a9a8147ac6f23cd64722912a5246925ec3d64a64
SIZE (dune-fem-dune-fem-d1b565ab01047e44508c23bb9ba3e3b4491cd8a7_GL0.tar.gz) = 1955688
14 changes: 14 additions & 0 deletions math/dune-fem/files/patch-CMakeLists.txt
@@ -0,0 +1,14 @@
--- CMakeLists.txt.orig 2018-08-20 20:54:13 UTC
+++ CMakeLists.txt
@@ -27,7 +27,10 @@ dune_project()
include(DuneMPI)

#add sub_directories
-dune_add_subdirs(dune lib doc cmake/modules)
+dune_add_subdirs(dune lib cmake/modules)
+if (FREEBSD_INSTALL_DOCS)
+dune_add_subdirs(doc)
+endif()

# finalize the dune project, e.g. generating config.h etc.
finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
8 changes: 8 additions & 0 deletions math/dune-fem/pkg-descr
@@ -0,0 +1,8 @@
dune-fem is a module of the DUNE Numerics framework for solving partial
differential equations (PDEs) with grid-based methods.

dune-fem is a Distributed and Unified Numerics Environment module which defines
interfaces for implementing discretization methods like Finite Element Methods
(FEM) and Finite Volume Methods (FV) and Discontinuous Galerkin Methods (DG).

WWW: https://www.dune-project.org/

0 comments on commit 9600471

Please sign in to comment.