blob: fa7ee5340027e67c45c40aeeb1b602b33b6f32d3 (
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
69
70
71
72
73
74
75
76
77
78
|
# Created by: bf <bf@FreeBSD.org>
# $FreeBSD$
PORTNAME= arpack-ng
DISTVERSION= 3.6.3
PORTREVISION= 3
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Revised Argand library for solving large-scale eigenvalue problems
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libmpich.so:net/mpich # MPI is incremental: it adds the libparpack.so lib, it is a candidate for a sub-package
USES= autoreconf:build fortran libtool
USE_GITHUB= yes
GH_ACCOUNT= opencollab
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-blas="${BLAS}" \
--with-lapack="${LAPACK}" \
--enable-mpi \
--disable-static \
--enable-icb
LDFLAGS+= -L${LOCALBASE}/lib
TEST_TARGET= check
USE_LDCONFIG= yes
PORTDOCS= *
PORTEXAMPLES= *
CONFLICTS_INSTALL= arpack
OPTIONS_DEFINE= DOCS EXAMPLES
WITH_BLAS?= blas
.if ${WITH_BLAS} == "gotoblas"
BLAS= -lgoto2p
LAPACK= -lgoto2p
LIB_DEPENDS+= libgoto2p.so:math/gotoblas
.elif ${WITH_BLAS} == "atlas"
BLAS= -lptf77blas
LAPACK= -lalapack -lptcblas
LIB_DEPENDS+= libptf77blas.so:math/atlas
.elif ${WITH_BLAS} == "blas"
BLAS= -lblas
LAPACK= -llapack
LIB_DEPENDS+= libblas.so:math/blas \
liblapack.so:math/lapack
.else
IGNORE= unknown value of WITH_BLAS: ${WITH_BLAS}
.endif
post-patch:
@${REINPLACE_CMD} -Ee 's|\(libdir\)(/pkgconfig)|(prefix)/libdata\1|' ${WRKSRC}/Makefile.am
pre-configure:
@cd ${WRKSRC}; ./bootstrap
@${REINPLACE_CMD} -e '/BLAS_LIBS.*LAPACK_LIBS/ \
{s/LAPACK_LIBS/BLAS_LIBS/;s/BLAS_LIBS/LAPACK_LIBS/;}' \
${WRKSRC}/Makefile.in \
${WRKSRC}/arpack.pc.in \
${WRKSRC}/TESTS/Makefile.in
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*arpack.so.*.*
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/EXAMPLES && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|