Lines 6-33
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= scalapack |
8 |
PORTNAME= scalapack |
9 |
PORTVERSION= 1.7 |
9 |
PORTVERSION= 1.7.4 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= math |
10 |
CATEGORIES= math |
12 |
MASTER_SITES= ftp://ftp.netlib.org/scalapack/ |
11 |
MASTER_SITES= ftp://ftp.netlib.org/scalapack/ |
13 |
DISTNAME= SCALAPACK |
12 |
DISTFILES= scalapack-${PORTVERSION}.tgz manpages.tgz |
14 |
DISTFILES= scalapack.tgz manpages.tgz |
|
|
15 |
.if !defined(NOPORTDOCS) |
13 |
.if !defined(NOPORTDOCS) |
16 |
DISTFILES+= scalapack_install.ps scalapackqref.ps \ |
14 |
DISTFILES+= scalapack_install.ps scalapackqref.ps \ |
17 |
lawn100.ps pblasqref.ps manual.ps design.ps \ |
15 |
lawn100.ps pblasqref.ps manual.ps design.ps \ |
18 |
pumma_refmanual.ps trans.ps |
16 |
pumma_refmanual.ps trans.ps |
19 |
.endif |
17 |
.endif |
20 |
DIST_SUBDIR= scalapack |
18 |
DIST_SUBDIR= scalapack |
21 |
EXTRACT_ONLY= scalapack.tgz manpages.tgz |
19 |
EXTRACT_ONLY= scalapack-${PORTVERSION}.tgz manpages.tgz |
22 |
|
20 |
|
23 |
MAINTAINER= maho@FreeBSD.org |
21 |
MAINTAINER= maho@FreeBSD.org |
24 |
COMMENT= The ScaLAPACK Scalable LAPACK library |
22 |
COMMENT= The ScaLAPACK Scalable LAPACK library |
25 |
|
23 |
|
26 |
BUILD_DEPENDS= ${LOCALBASE}/mpich2/lib/libmpich.a:${PORTSDIR}/net/mpich2 \ |
24 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \ |
27 |
${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \ |
|
|
28 |
${LOCALBASE}/bin/f2c:${PORTSDIR}/lang/f2c |
25 |
${LOCALBASE}/bin/f2c:${PORTSDIR}/lang/f2c |
29 |
LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack \ |
26 |
LIB_DEPENDS= lapack:${PORTSDIR}/math/lapack |
30 |
atlas:${PORTSDIR}/math/atlas |
|
|
31 |
|
27 |
|
32 |
CONFLICTS= elmer-mathlibs-1* |
28 |
CONFLICTS= elmer-mathlibs-1* |
33 |
|
29 |
|
Lines 35-41
Link Here
|
35 |
|
31 |
|
36 |
ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \ |
32 |
ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \ |
37 |
REDIST/SRC SRC TOOLS TOOLS/LAPACK |
33 |
REDIST/SRC SRC TOOLS TOOLS/LAPACK |
38 |
BLAS= -lf77blas -latlas |
|
|
39 |
|
34 |
|
40 |
DATADIR= ${PREFIX}/share/${PORTNAME:U} |
35 |
DATADIR= ${PREFIX}/share/${PORTNAME:U} |
41 |
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:U} |
36 |
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:U} |
Lines 45-50
Link Here
|
45 |
.include "files/manpages" |
40 |
.include "files/manpages" |
46 |
|
41 |
|
47 |
.include <bsd.port.pre.mk> |
42 |
.include <bsd.port.pre.mk> |
|
|
43 |
|
44 |
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS) |
45 |
WITH_ATLAS= yes |
46 |
.endif |
47 |
|
48 |
.if defined(WITH_ATLAS) |
49 |
LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas |
50 |
BLAS= -lf77blas -latlas |
51 |
.else |
52 |
LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas |
53 |
BLAS= -lblas |
54 |
.endif |
55 |
|
56 |
.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun) |
57 |
WITH_OPENMPI= yes |
58 |
.endif |
59 |
|
60 |
.if defined(WITH_OPENMPI) |
61 |
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi |
62 |
RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi |
63 |
EXTRA_PATCHES+= ${FILESDIR}/SLmake.inc-openmpi.diff |
64 |
.else |
65 |
BUILD_DEPENDS+= ${LOCALBASE}/mpich2/lib/libmpich.a:${PORTSDIR}/net/mpich2 |
66 |
EXTRA_PATCHES+= ${FILESDIR}/SLmake.inc-mpich.diff |
67 |
.endif |
48 |
|
68 |
|
49 |
.if defined(WITH_OPTIMIZED_FLAGS) |
69 |
.if defined(WITH_OPTIMIZED_FLAGS) |
50 |
.if ${ARCH} == "amd64" |
70 |
.if ${ARCH} == "amd64" |