diff options
author | maho <maho@FreeBSD.org> | 2004-07-14 04:56:42 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2004-07-14 04:56:42 +0000 |
commit | 8bd90202408ab0181adf6004d23ff2fae7bb7f47 (patch) | |
tree | c592543d7575f34c10958fa5c22c5b281d6afa01 /math/lapack++ | |
parent | 6a7b170e43fe301a80ef2d7fda32c54c04419268 (diff) | |
download | FreeBSD-ports-8bd90202408ab0181adf6004d23ff2fae7bb7f47.zip FreeBSD-ports-8bd90202408ab0181adf6004d23ff2fae7bb7f47.tar.gz |
Some options for BLAS are available (though they are hidden by default).
Diffstat (limited to 'math/lapack++')
-rw-r--r-- | math/lapack++/Makefile | 16 | ||||
-rw-r--r-- | math/lapack++/files/patch-makefile.def | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/math/lapack++/Makefile b/math/lapack++/Makefile index 3ae0416..631ec92 100644 --- a/math/lapack++/Makefile +++ b/math/lapack++/Makefile @@ -24,9 +24,25 @@ COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas WRKSRC= ${WRKDIR}/Lapackpp1.1a +USE_REINPLACE= yes + +#ATLAS_BLAS +#BLAS_LIB= -lf77blas -latlas +#LAPACK_LIB= -lalapack -lcblas + +#Vanilla BLAS +#BLAS_LIB= -lblas +#LAPACK_LIB= -llapack + +#SMP version (KSE required) +#BLAS_LIB= -lptf77blas -latlas_r ${PTHREAD_LIBS} +#LAPACK_LIB= -lalapack_r -lptcblas ${PTHREAD_LIBS} post-patch: @(cd ${WRKSRC} ; ${MV} makefile Makefile) + @${REINPLACE_CMD} -e 's+%%BLAS_LIB%%+${BLAS_LIB}+g;' \ + -e 's+%%LAPACK_LIB%%+${LAPACK_LIB}+g;' \ + ${WRKSRC}/makefile.def do-install: .for i in libblas++ liblamatrix++ liblapack++ diff --git a/math/lapack++/files/patch-makefile.def b/math/lapack++/files/patch-makefile.def index c1bc73f..7ac5469 100644 --- a/math/lapack++/files/patch-makefile.def +++ b/math/lapack++/files/patch-makefile.def @@ -29,8 +29,8 @@ +# +# FreeBSD +# -+BLAS_LIB = -lf77blas -latlas -+LAPACK_LIB = -lalapack -lcblas ++BLAS_LIB = %%BLAS_LIB%% ++LAPACK_LIB = %%LAPACK_LIB%% FLIBS = -lm -lg2c # # Sun |