aboutsummaryrefslogtreecommitdiff
path: root/math/dune-fem/Makefile
blob: 0d9cf9aea5b7bda2b2029e817c6749e19b653925 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
PORTNAME=	dune-fem
DISTVERSION=	2.8.0.5
PORTREVISION=	21
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 \
		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 \
		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 <bsd.port.mk>