summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/blacs/Makefile9
-rw-r--r--math/blocksolve95/Makefile8
-rw-r--r--math/lapack++/Makefile12
-rw-r--r--math/lapack95/Makefile8
4 files changed, 25 insertions, 12 deletions
diff --git a/math/blacs/Makefile b/math/blacs/Makefile
index 568c9e324a94..fd058d8a45ca 100644
--- a/math/blacs/Makefile
+++ b/math/blacs/Makefile
@@ -7,7 +7,7 @@
PORTNAME= blacs
PORTVERSION= 1.7
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= math
MASTER_SITES= ftp://ftp.netlib.org/blacs/
DISTNAME= BLACS
@@ -41,8 +41,10 @@ RUN_DEPENDS= ${LOCALBASE}/mpich2/bin/mpirun:${PORTSDIR}/net/mpich2
EXTRA_PATCHES+= ${FILESDIR}/Bmake.inc-mpich.diff
.endif
-WANT_FORTRAN=yes
-USE_GCC=4.2+
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
MAKE_ENV= "FC=${FC}" "F77=${F77}"
USE_GMAKE=yes
F77EXTRAFLAGS= #-w -fno-globals -fugly-complex
@@ -73,6 +75,7 @@ pre-configure:
do-build:
(cd ${WRKSRC}; make mpi; make tester)
+# (cd ${WRKSRC}_SHARED; make mpi; make tester)
do-install:
${INSTALL_DATA} ${WRKSRC}/LIB/blacsCinit_MPI-FreeBSD-${DEBUG_LEVEL}.a ${PREFIX}/lib/libblacsc.a
diff --git a/math/blocksolve95/Makefile b/math/blocksolve95/Makefile
index 74583ac59cb6..6cefa4edcb82 100644
--- a/math/blocksolve95/Makefile
+++ b/math/blocksolve95/Makefile
@@ -7,7 +7,7 @@
PORTNAME= blocksolve95
PORTVERSION= 3.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= math parallel
MASTER_SITES= ftp://info.mcs.anl.gov/pub/BlockSolve95/ \
ftp://ftp.irisa.fr/pub/mirrors/BlockSolve95/
@@ -32,8 +32,10 @@ MPIDIR= ${LOCALBASE}/mpich2
PETSC_ARCH= freebsd
BOPT?= O
-WANT_FORTRAN= yes
-USE_GCC=4.2+
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
FFLAGS+= -O2
INCLUDES= BMmsg.h BSdepend.h BSlog.h BSmy_blas.h BSprivate.h BSsparse.h
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>
diff --git a/math/lapack95/Makefile b/math/lapack95/Makefile
index 6df89b92c4a9..baed389a761c 100644
--- a/math/lapack95/Makefile
+++ b/math/lapack95/Makefile
@@ -7,7 +7,7 @@
PORTNAME= lapack95
PORTVERSION= 1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ftp://ftp.netlib.org/lapack95/
DISTNAME= ${PORTNAME}
@@ -38,8 +38,10 @@ BLAS= -lblas
LAPACK= -llapack
.endif
-WANT_FORTRAN= yes
-USE_GCC= 4.2+
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
WRKSRC= ${WRKDIR}/LAPACK95
FORTRAN_FIXED=
FORTRAN_FREE=# -free