aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2004-07-14 04:56:42 +0000
committerMaho Nakata <maho@FreeBSD.org>2004-07-14 04:56:42 +0000
commitf482f755d548582041647fa2e30c3d0c163fd5dc (patch)
treeda1b7dea1cbcfac00c353ec7b869d8bdeccc2973 /math
parent94bcc3f41a01f6d82cf1206b51d7d79373679cb7 (diff)
Notes
Diffstat (limited to 'math')
-rw-r--r--math/lapack++/Makefile16
-rw-r--r--math/lapack++/files/patch-makefile.def4
2 files changed, 18 insertions, 2 deletions
diff --git a/math/lapack++/Makefile b/math/lapack++/Makefile
index 3ae0416431d7..631ec928f934 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 c1bc73f1707e..7ac546974384 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