summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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
OpenPOWER on IntegriCloud