aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2010-02-16 06:18:57 +0000
committerMaho Nakata <maho@FreeBSD.org>2010-02-16 06:18:57 +0000
commit8b22127138fce0239b54390e686529065b4b9271 (patch)
treee62a991b0a8176024f555a397965b29d111166ce
parent6eb28fda55a045828e9f3428b7288c335cd0673e (diff)
downloadports-8b22127138fce0239b54390e686529065b4b9271.tar.gz
ports-8b22127138fce0239b54390e686529065b4b9271.zip
Notes
-rw-r--r--math/superlu/Makefile16
-rw-r--r--math/superlu/files/patch-make.inc2
2 files changed, 10 insertions, 8 deletions
diff --git a/math/superlu/Makefile b/math/superlu/Makefile
index da5a9d03c4a6..d201105956db 100644
--- a/math/superlu/Makefile
+++ b/math/superlu/Makefile
@@ -21,9 +21,11 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= maho@FreeBSD.org
COMMENT= A library of routines for performing sparse factorization
+.include <bsd.port.pre.mk>
+
USE_BLAS?= reference
-.if exists(${LOCALBASE}/lib/libgoto.so)
+.if exists(${LOCALBASE}/lib/libgoto2.so)
USE_BLAS= gotoblas
.elif exists(${LOCALBASE}/lib/libatlas_r.so)
USE_BLAS= atlas
@@ -31,13 +33,13 @@ USE_BLAS= atlas
. if ${USE_BLAS} == reference
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
-BLAS_LIBS= -lblas
+BLAS= -lblas
.elif ${USE_BLAS} == gotoblas
-LIB_DEPENDS+= goto:${PORTSDIR}/math/gotoblas
-BLAS_LIBS= -lgotop
+LIB_DEPENDS+= goto2:${PORTSDIR}/math/gotoblas
+BLAS= -lgoto2p
.elif ${USE_BLAS} == atlas
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
-BLAS_LIBS= -lptf77blas -lptcblas -latlas_r
+BLAS= -lptf77blas -lptcblas -latlas_r
.endif
USE_FORTRAN= yes
@@ -50,7 +52,7 @@ ARCH2FIX= SRC/Makefile TESTING/MATGEN/Makefile CBLAS/Makefile make.inc \
MAKE_INC/make.alpha MAKE_INC/make.inc
pre-build:
- @${REINPLACE_CMD} -e 's+%%BLAS_LIBS%%+-L${LOCALBASE}/lib ${BLAS_LIBS}+ ; \
+ @${REINPLACE_CMD} -e 's+%%BLAS%%+-L${LOCALBASE}/lib ${BLAS}+ ; \
s+%%CC%%+${CC}+; s+%%FC%%+${FC}+; \
s+%%CFLAGS%%+${CFLAGS}+; \
s+%%FFLAGS%%+${FFLAGS}+' \
@@ -76,4 +78,4 @@ regression-test: build
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} testing )
@(cd ${WRKSRC}/TESTING && ${CAT} *.out )
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/math/superlu/files/patch-make.inc b/math/superlu/files/patch-make.inc
index 1a4a4502344a..d59436f52450 100644
--- a/math/superlu/files/patch-make.inc
+++ b/math/superlu/files/patch-make.inc
@@ -5,7 +5,7 @@
TMGLIB = libtmglib.a
SUPERLULIB = libsuperlu_3.0.a
-BLASLIB = ../libblas.a
-+BLASLIB = %%BLAS_LIBS%%
++BLASLIB = %%BLAS%%
#
# The archiver and the flag(s) to use when building archive (library)