Lines 2-22
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= arpack-ng |
4 |
PORTNAME= arpack-ng |
5 |
PORTVERSION= 3.1.5 |
5 |
PORTVERSION= 3.4.0 |
6 |
PORTREVISION= 2 |
|
|
7 |
CATEGORIES= math |
6 |
CATEGORIES= math |
8 |
MASTER_SITES= http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/ \ |
7 |
MASTER_SITES= GH |
9 |
LOCAL/bf |
|
|
10 |
DISTNAME= ${PORTNAME}_${PORTVERSION} |
11 |
|
8 |
|
12 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
13 |
COMMENT+= Revised Argand library for solving large-scale eigenvalue problems |
10 |
COMMENT+= Revised Argand library for solving large-scale eigenvalue problems |
14 |
|
11 |
|
15 |
LICENSE= BSD3CLAUSE |
12 |
LICENSE= BSD3CLAUSE |
16 |
|
13 |
|
17 |
USES= fortran libtool |
14 |
USES= autoreconf:build fortran libtool |
18 |
USE_LDCONFIG= yes |
15 |
USE_LDCONFIG= yes |
19 |
|
16 |
|
|
|
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= opencollab |
19 |
|
20 |
CONFLICTS= arpack-[0-9]* |
20 |
CONFLICTS= arpack-[0-9]* |
21 |
SLAVEDIRS= math/arpack-ng-mpich |
21 |
SLAVEDIRS= math/arpack-ng-mpich |
22 |
|
22 |
|
Lines 28-40
LDFLAGS+= -L${LOCALBASE}/lib
Link Here
|
28 |
|
28 |
|
29 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
29 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
30 |
|
30 |
|
31 |
OPTIONS_DEFINE= DOCS MPI |
31 |
OPTIONS_DEFINE= DOCS MPI EXAMPLES |
32 |
OPTIONS_SUB= yes |
32 |
OPTIONS_SUB= yes |
33 |
MPI_CONFIGURE_ENABLE= mpi |
33 |
MPI_CONFIGURE_ENABLE= mpi |
34 |
MPI_LIB_DEPENDS= libmpich.so.8:net/mpich2 |
34 |
MPI_LIB_DEPENDS= libmpich.so:net/mpich2 |
35 |
MPI_CONFLICTS_INSTALL+= arpack-ng-3.* |
35 |
MPI_CONFLICTS_INSTALL+= arpack-ng-3.* |
36 |
MPI_CONFLICTS_INSTALL_OFF+= arpack-ng-mpich-3.* |
36 |
MPI_CONFLICTS_INSTALL_OFF+= arpack-ng-mpich-3.* |
37 |
|
37 |
|
|
|
38 |
PORTEXAMPLES= * |
39 |
|
38 |
.include <bsd.port.pre.mk> |
40 |
.include <bsd.port.pre.mk> |
39 |
|
41 |
|
40 |
.if ${PORT_OPTIONS:MMPI} |
42 |
.if ${PORT_OPTIONS:MMPI} |
Lines 62-68
IGNORE= unknown value of WITH_BLAS: ${WITH_BLAS}
Link Here
|
62 |
|
64 |
|
63 |
post-patch: |
65 |
post-patch: |
64 |
@${REINPLACE_CMD} -Ee 's|\(libdir\)(/pkgconfig)|(prefix)/libdata\1|' \ |
66 |
@${REINPLACE_CMD} -Ee 's|\(libdir\)(/pkgconfig)|(prefix)/libdata\1|' \ |
65 |
${WRKSRC}/Makefile.in |
67 |
${WRKSRC}/Makefile.am |
|
|
68 |
|
69 |
pre-configure: |
70 |
@cd ${WRKSRC}; ./bootstrap |
66 |
@${REINPLACE_CMD} -e '/BLAS_LIBS.*LAPACK_LIBS/ \ |
71 |
@${REINPLACE_CMD} -e '/BLAS_LIBS.*LAPACK_LIBS/ \ |
67 |
{s/LAPACK_LIBS/BLAS_LIBS/;s/BLAS_LIBS/LAPACK_LIBS/;}' \ |
72 |
{s/LAPACK_LIBS/BLAS_LIBS/;s/BLAS_LIBS/LAPACK_LIBS/;}' \ |
68 |
${WRKSRC}/Makefile.in \ |
73 |
${WRKSRC}/Makefile.in \ |
Lines 70-76
post-patch:
Link Here
|
70 |
${WRKSRC}/TESTS/Makefile.in |
75 |
${WRKSRC}/TESTS/Makefile.in |
71 |
|
76 |
|
72 |
post-build: |
77 |
post-build: |
73 |
@cd ${WRKSRC}/.libs; ${STRIP_CMD} libarpack.a libarpack.so.*.* |
78 |
@cd ${WRKSRC}/SRC/.libs; ${STRIP_CMD} libarpack.so.*.* |
74 |
|
79 |
|
75 |
post-install: |
80 |
post-install: |
76 |
.if ${PORT_OPTIONS:MDOCS} |
81 |
.if ${PORT_OPTIONS:MDOCS} |
Lines 78-83
post-install:
Link Here
|
78 |
@cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} |
83 |
@cd ${WRKSRC}/DOCUMENTS && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR} |
79 |
.endif |
84 |
.endif |
80 |
|
85 |
|
|
|
86 |
post-install-EXAMPLES-on: |
87 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
88 |
@cd ${WRKSRC}/EXAMPLES && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} |
89 |
|
81 |
check regression-test test: build |
90 |
check regression-test test: build |
82 |
@cd ${WRKSRC}; ${DO_MAKE_BUILD} check |
91 |
@cd ${WRKSRC}; ${DO_MAKE_BUILD} check |
83 |
|
92 |
|