summaryrefslogtreecommitdiff
path: root/science/psi3
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2007-01-09 15:18:31 +0000
committerMaho Nakata <maho@FreeBSD.org>2007-01-09 15:18:31 +0000
commitb26b7a7eb62895b63f0ee4fc68495f6ebf4214b8 (patch)
tree070da445140da7626086a4c2e25eb200838b46ca /science/psi3
parentMigrate to gfrotran. (diff)
Migrate to gfortran.
BLAS is now user settable (math/blas or math/atlas).
Notes
Notes: svn path=/head/; revision=181866
Diffstat (limited to 'science/psi3')
-rw-r--r--science/psi3/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/science/psi3/Makefile b/science/psi3/Makefile
index cc82eb1bbde8..ffc62e88c7c2 100644
--- a/science/psi3/Makefile
+++ b/science/psi3/Makefile
@@ -20,18 +20,31 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= maho@FreeBSD.org
COMMENT= An electronic structure programs for high-accuracy computations
-LIB_DEPENDS= atlas:${PORTSDIR}/math/atlas
+.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
+WITH_ATLAS= yes
+.endif
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
+BLAS= -lf77blas -latlas
+LAPACK= -lalapack
+.else
+LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
+LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack
+BLAS= -lblas
+LAPACK= -llapack
+.endif
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:259
-
+WANT_FORTRAN= yes
+USE_GCC= 4.2+
CONFIGURE_ARGS= --with-cc=${CC} \
--with-cxx=${CXX} \
--with-fc=${FC} \
- --with-lapack="-lalapack -lcblas" \
- --with-blas="-lf77blas -latlas" \
+ --with-lapack="${LAPACK}" \
+ --with-blas="${BLAS}" \
--datadir=${PREFIX}/share/psi3 \
--with-libdirs="-L${LOCALBASE}/lib" \
--with-libs="-lcompat"
@@ -39,7 +52,7 @@ CONFIGURE_ARGS= --with-cc=${CC} \
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-BROKEN= "Does not compile on FreeBSD 4.x"
+BROKEN= Does not compile on FreeBSD 4.x
.endif
.if defined(WITH_OPTIMIZED_FLAGS)