aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2006-07-09 09:55:09 +0800
committermaho <maho@FreeBSD.org>2006-07-09 09:55:09 +0800
commit78c49a07dae615034a4fa2ab56029d62414a1bcb (patch)
tree44e755bdbff14247b881e31117ae046632e48f0d /math
parent952ef967be746e53e6941b5f18f6611869452fe1 (diff)
downloadfreebsd-ports-gnome-78c49a07dae615034a4fa2ab56029d62414a1bcb.tar.gz
freebsd-ports-gnome-78c49a07dae615034a4fa2ab56029d62414a1bcb.tar.zst
freebsd-ports-gnome-78c49a07dae615034a4fa2ab56029d62414a1bcb.zip
Now blas part can be replaceable.
Diffstat (limited to 'math')
-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)