summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2008-03-08 09:29:12 +0000
committerMaho Nakata <maho@FreeBSD.org>2008-03-08 09:29:12 +0000
commit7bbcb8511efe5784905e62ee9d368df620c0195b (patch)
tree5035be9e23b0b509b4e843021bb93fdb6e051f2c /math
parent- Add mirror. (diff)
Better BLAS/LAPACK support.
Notes
Notes: svn path=/head/; revision=208640
Diffstat (limited to 'math')
-rw-r--r--math/octave/Makefile24
1 files changed, 17 insertions, 7 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index 68babf8b240b..3a9042395d03 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -45,18 +45,28 @@ BUILD_DEPENDS+= info:${PORTSDIR}/print/texinfo
BROKEN= Fails to install
.endif
-.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
-WITH_ATLAS= yes
+USE_BLAS?= reference
+
+.if exists(${LOCALBASE}/lib/libgoto.so)
+USE_BLAS= gotoblas
+.elif exists(${LOCALBASE}/lib/libatlas_r.so)
+USE_BLAS= atlas
.endif
-.if defined(WITH_ATLAS)
-LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
-BLAS= -lf77blas -latlas
-LAPACK= -lalapack
-.else
+
+. if ${USE_BLAS} == reference
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
BLAS= -lblas
LAPACK= -llapack
+.elif ${USE_BLAS} == gotoblas
+LIB_DEPENDS+= goto:${PORTSDIR}/math/gotoblas
+LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
+BLAS= -lgotop
+LAPACK= -lgotop -llapack
+.elif ${USE_BLAS} == atlas
+LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
+BLAS= -lptf77blas -lptcblas -latlas_r
+LAPACK= -lalapack_r
.endif
USE_FORTRAN= yes