summaryrefslogtreecommitdiffstats
path: root/math/superlu_mt
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-12 08:18:07 +0000
committermaho <maho@FreeBSD.org>2007-01-12 08:18:07 +0000
commit9d4e7591115f018ce6c5b5af06c9f393a41e043a (patch)
tree56e7bc0596a8a220a92d4aacb1047d69fa08f126 /math/superlu_mt
parent345189ce9adb3c6462a4634e3ad2dbb2a8aa8d28 (diff)
downloadFreeBSD-ports-9d4e7591115f018ce6c5b5af06c9f393a41e043a.zip
FreeBSD-ports-9d4e7591115f018ce6c5b5af06c9f393a41e043a.tar.gz
* Use gfortran42 only and not gcc42.
* Bump portrevision.
Diffstat (limited to 'math/superlu_mt')
-rw-r--r--math/superlu_mt/Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/math/superlu_mt/Makefile b/math/superlu_mt/Makefile
index b049820..6b22e4d 100644
--- a/math/superlu_mt/Makefile
+++ b/math/superlu_mt/Makefile
@@ -7,6 +7,7 @@
PORTNAME= superlu_mt
DISTVERSION= 1.0.20050524
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://crd.lbl.gov/~xiaoye/SuperLU/ \
http://crd.lbl.gov/~xiaoye/:doc
@@ -20,21 +21,25 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Routines for performing multithreaded sparse factorization
-.ifdef WITH_ATLAS
-LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
+
+.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
+WITH_ATLAS= yes
+.endif
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
+BLAS_LIBS= -lf77blas -latlas
.else
-LIB_DEPENDS= blas.1:${PORTSDIR}/math/blas
+LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
+BLAS_LIBS= -lblas
.endif
WRKSRC= ${WRKDIR}/SuperLU_MT
ALL_TARGET= superlulib
-.ifdef WITH_ATLAS
-BLAS_LIBS= -lf77blas -latlas
-.else
-BLAS_LIBS?= -lblas
-.endif
-
ARCH2FIX= CBLAS/Makefile make.alpha make.exemplar TESTING/MATGEN/Makefile \
make.origin make.inc make.pthreads SRC/Makefile
OpenPOWER on IntegriCloud