summaryrefslogtreecommitdiff
path: root/math/lapack++
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2007-01-12 06:33:18 +0000
committerMaho Nakata <maho@FreeBSD.org>2007-01-12 06:33:18 +0000
commit8ab34e753949152a13969017faefb6414de28ee7 (patch)
treead050fcf2a45f3b2a0cbfbcb93d22b33eb15bcc5 /math/lapack++
parent* Use gfortran42 only and not gcc42. (diff)
* Use gfortran42 only and not gcc42.
* Bump portrevision.
Notes
Notes: svn path=/head/; revision=182143
Diffstat (limited to 'math/lapack++')
-rw-r--r--math/lapack++/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/math/lapack++/Makefile b/math/lapack++/Makefile
index accc16d7c061..f65d4e0d0a06 100644
--- a/math/lapack++/Makefile
+++ b/math/lapack++/Makefile
@@ -7,6 +7,7 @@
PORTNAME= lapack++
PORTVERSION= 2.5.0
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://math.nist.gov/lapack++/:doc
@@ -22,8 +23,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= maho@FreeBSD.org
COMMENT= Linear Algebra PACKage in C++, a wrapper for LAPACK
-WANT_FORTRAN= yes
-USE_GCC= 4.2+
+.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
@@ -35,6 +35,11 @@ LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
.endif
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
+
GNU_CONFIGURE= yes
USE_GMAKE= yes
.if defined(WITH_ATLAS)
@@ -50,6 +55,7 @@ LAPACK_LIB= -L${LOCALBASE}/lib -llapack
#lapack++ forces to use atlas when detected, so we should disable here.
CONFIGURE_ARGS+= --with-blas="${BLAS_LIB}" --with-lapack="${LAPACK_LIB}" --disable-atlas
+CONFIGURE_ENV+= FC="${FC}" F77="${F77}"
do-install:
@(cd ${WRKSRC} ; ${GMAKE} install)
@@ -61,4 +67,4 @@ do-install:
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/lapackppman1_1.ps.gz ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>