blob: de09efd1086f71c5be8ec62ce335a46a89f42136 (
plain)
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
|
PORTNAME= hypre
DISTVERSIONPREFIX= v
DISTVERSION= 2.25.0
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= Scalable Linear Solvers and Multigrid Methods
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/../LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/../LICENSE-MIT
USES= blaslapack cmake:testing fortran localbase
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= hypre-space
WRKSRC_SUBDIR= src
CMAKE_ON= HYPRE_ENABLE_SHARED HYPRE_WITH_OPENMP
CMAKE_TESTING_ON= HYPRE_BUILD_TESTS # tests are only built and not run, see https://github.com/hypre-space/hypre/issues/502
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
OPTIONS_DEFAULT= MPICH
NOMPI_DESC= Build without parallel processing support
NOMPI_CMAKE_ON= -DHYPRE_WITH_MPI=OFF
MPICH_LIB_DEPENDS= libmpich.so:net/mpich
MPICH_CONFIGURE_ENV= CC=${LOCALBASE}/bin/mpicc CXX=${LOCALBASE}/bin/mpicxx
OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMPI_CONFIGURE_ENV= CC=${LOCALBASE}/mpi/openmpi/bin/mpicc \
CXX=${LOCALBASE}/mpi/openmpi/bin/mpicxx
OPENMPI_BROKEN= doesn't switch to openmpi in cmake build
PORTDOCS= *
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} usr-manual ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|