blob: 345a2be48e7cef837927e7b5faa184b8bde03cde (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Created by: Pedro Giffuni
# $FreeBSD$
PORTNAME= hypre
DISTVERSIONPREFIX= v
DISTVERSION= 2.15.1
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
COMMENT= Scalable Linear Solvers and Multigrid Methods
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/../COPYING.LESSER
BROKEN_powerpc64= fails to compile: ./DistributedMatrixPilutSolver.h:97:20: expected ')' before '->' token
USES= blaslapack fortran gmake localbase # gmake is only for the 'test' target
USE_GITHUB= yes
GH_ACCOUNT= LLNL
USE_LDCONFIG= yes
WRKSRC_SUBDIR= src
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-blas --with-blas-lib=${BLASLIB} \
--with-lapack --with-lapack-lib=${LAPACKLIB} \
--enable-shared
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= MPI
OPTIONS_SINGLE_MPI= NOMPI MPICH OPENMPI
OPTIONS_DEFAULT= MPICH
NOMPI_DESC= Build without parallel processing support
NOMPI_CONFIGURE_ON= --without-MPI
MPICH_DESC= Parallel processing support via MPICH
MPICH_LIB_DEPENDS= libmpich.so:net/mpich
MPICH_CONFIGURE_ENV= CC=${LOCALBASE}/bin/mpicc CXX=${LOCALBASE}/bin/mpicxx
MPICH_CONFIGURE_WITH= MPI-include=${LOCALBASE}/include \
MPI-lib-dirs=${LOCALBASE}/lib
OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi
OPENMPI_CONFIGURE_ENV= CC=${LOCALBASE}/mpi/openmpi/bin/mpicc \
CXX=${LOCALBASE}/mpi/openmpi/bin/mpicxx
OPENMPI_CONFIGURE_WITH= MPI-include=${LOCALBASE}/mpi/openmpi/include \
MPI-lib-dirs=${LOCALBASE}/mpi/openmpi/lib
TEST_TARGET= check
SHL3= ${PORTVERSION}
SHL2= ${SHL3:R}
SHL1= ${SHL2:R}
do-install:
${INSTALL_DATA} ${WRKSRC}/hypre/include/* ${STAGEDIR}${PREFIX}/include
${INSTALL_LIB} ${WRKSRC}/hypre/lib/libHYPRE-${SHL3}.so \
${STAGEDIR}${PREFIX}/lib/libHYPRE.so.${SHL2}
${RLN} ${STAGEDIR}${PREFIX}/lib/libHYPRE.so.${SHL2} \
${STAGEDIR}${PREFIX}/lib/libHYPRE.so.${SHL1}
${RLN} ${STAGEDIR}${PREFIX}/lib/libHYPRE.so.${SHL2} \
${STAGEDIR}${PREFIX}/lib/libHYPRE.so
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../docs/*.pdf \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|