aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2006-11-19 11:44:11 +0800
committermaho <maho@FreeBSD.org>2006-11-19 11:44:11 +0800
commitd4a01d98ad20803645d31f32fab207621ff30dfe (patch)
tree5c10d7b3754c8498f1bf1d72422d56c572109f27 /math
parent1bdef5cfcd4cbbf3afe91a2eb98a5fc9d5620b18 (diff)
downloadfreebsd-ports-gnome-d4a01d98ad20803645d31f32fab207621ff30dfe.tar.gz
freebsd-ports-gnome-d4a01d98ad20803645d31f32fab207621ff30dfe.tar.zst
freebsd-ports-gnome-d4a01d98ad20803645d31f32fab207621ff30dfe.zip
Make it possible to use math/blas instead of math/atlas.
Diffstat (limited to 'math')
-rw-r--r--math/octave-devel/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/math/octave-devel/Makefile b/math/octave-devel/Makefile
index 62f2367241cf..35ea1d790b27 100644
--- a/math/octave-devel/Makefile
+++ b/math/octave-devel/Makefile
@@ -22,7 +22,6 @@ BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot \
${LOCALBASE}/lib/libcxsparse.a:${PORTSDIR}/math/suitesparse
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \
- atlas.1:${PORTSDIR}/math/atlas \
hdf5:${PORTSDIR}/science/hdf5
LATEST_LINK= octave-devel
@@ -36,6 +35,22 @@ USE_AUTOTOOLS= autoconf:259 autoheader:259
INFO= octave liboctave
MAN1= octave.1 octave-bug.1 mkoctfile.1 octave-config.1
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
+WITH_ATLAS= yes
+.endif
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
+BLAS= -lf77blas -lcblas -latlas
+LAPACK= -lalapack
+.else
+LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas
+LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack
+BLAS= -lblas
+LAPACK= -llapack
+.endif
+
OCTAVE_VERSION= ${PORTVERSION}
GNU_HOST= ${ARCH}-portbld-freebsd${OSREL}
PLIST_SUB= OCTAVE_VERSION=${OCTAVE_VERSION} GNU_HOST=${GNU_HOST}
@@ -56,15 +71,13 @@ CONFIGURE_ENV+= GPERF="${LOCALBASE}/bin/gperf" \
CC="${CC}" \
CXX="${CXX}"
CONFIGURE_ARGS= --host=${GNU_HOST} \
- --with-blas="-L${LOCALBASE}/lib -lf77blas -lcblas -latlas" \
- --with-lapack=-lalapack \
+ --with-blas="-L${LOCALBASE}/lib ${BLAS}" \
+ --with-lapack="${LAPACK}" \
--enable-shared
SUB_FILES= octave
SUB_LIST= OCTAVE_VERSION="${OCTAVE_VERSION}" GNU_HOST="${GNU_HOST}"
-.include <bsd.port.pre.mk>
-
pre-configure:
@cd ${WRKSRC}/scripts ; autoconf259