aboutsummaryrefslogtreecommitdiff
path: root/math/scalapack
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2006-07-09 01:55:09 +0000
committerMaho Nakata <maho@FreeBSD.org>2006-07-09 01:55:09 +0000
commit959d82bd5b1564db15902b58e65a64deb5c22a3f (patch)
tree9cbd780e3bb38fba91ca5b1059343b53c1bc145d /math/scalapack
parentec29e4e549fc88e6c284e42f44ee37a00be16e66 (diff)
downloadports-959d82bd5b1564db15902b58e65a64deb5c22a3f.tar.gz
ports-959d82bd5b1564db15902b58e65a64deb5c22a3f.zip
Notes
Diffstat (limited to 'math/scalapack')
-rw-r--r--math/scalapack/Makefile3
-rw-r--r--math/scalapack/files/patch-SLmake.inc2
2 files changed, 3 insertions, 2 deletions
diff --git a/math/scalapack/Makefile b/math/scalapack/Makefile
index c1037f1cdef4..9e4bc2387e43 100644
--- a/math/scalapack/Makefile
+++ b/math/scalapack/Makefile
@@ -35,6 +35,7 @@ F77?= f77
ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \
REDIST/SRC SRC TOOLS TOOLS/LAPACK
+BLAS= -lf77blas -latlas
DATADIR= ${PREFIX}/share/${PORTNAME:U}
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:U}
@@ -57,7 +58,7 @@ CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops
.endif
.endif
post-patch:
- ${REINPLACE_CMD} -e 's,@WRKSRC@,${WRKSRC},g ; s,@PREFIX@,${PREFIX},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,^ARCH *.= ar,ARCMD = ar,' ${WRKSRC}/SLmake.inc
+ ${REINPLACE_CMD} -e 's,@BLAS@,${BLAS},g; s,@WRKSRC@,${WRKSRC},g ; s,@PREFIX@,${PREFIX},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,^ARCH *.= ar,ARCMD = ar,' ${WRKSRC}/SLmake.inc
.for mkf in ${ARCH2FIX}
${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${mkf}/Makefile
.endfor
diff --git a/math/scalapack/files/patch-SLmake.inc b/math/scalapack/files/patch-SLmake.inc
index fe3915e06b33..3cb679a9e177 100644
--- a/math/scalapack/files/patch-SLmake.inc
+++ b/math/scalapack/files/patch-SLmake.inc
@@ -56,7 +56,7 @@
#
SCALAPACKLIB = $(home)/libscalapack.a
-BLASLIB = /usr/local/lib/libf77blas.a /usr/local/lib/libatlas.a
-+BLASLIB = -L@PREFIX@/lib -lf77blas -latlas
++BLASLIB = -L@PREFIX@/lib @BLAS%
#
PBLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
PRLIBS = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)