mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
* Migrate to gfortran.
* Bump port revision. * Use gfortran compiled atlas/blas/lapack.
This commit is contained in:
parent
8bc8522a45
commit
506e651f7d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181957
2 changed files with 20 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= scalapack
|
PORTNAME= scalapack
|
||||||
PORTVERSION= 1.7.4
|
PORTVERSION= 1.7.4
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= math
|
CATEGORIES= math
|
||||||
MASTER_SITES= ftp://ftp.netlib.org/scalapack/
|
MASTER_SITES= ftp://ftp.netlib.org/scalapack/
|
||||||
DISTFILES= scalapack-${PORTVERSION}.tgz manpages.tgz
|
DISTFILES= scalapack-${PORTVERSION}.tgz manpages.tgz
|
||||||
|
@ -26,7 +27,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libblacs.a:${PORTSDIR}/math/blacs \
|
||||||
|
|
||||||
CONFLICTS= elmer-mathlibs-1*
|
CONFLICTS= elmer-mathlibs-1*
|
||||||
|
|
||||||
F77?= f77
|
WANT_FORTRAN= yes
|
||||||
|
USE_GCC= 4.2+
|
||||||
|
|
||||||
ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \
|
ARCH2FIX= PBLAS/SRC PBLAS/SRC/PBBLAS PBLAS/SRC/PTOOLS PBLAS/SRC/PTZBLAS \
|
||||||
REDIST/SRC SRC TOOLS TOOLS/LAPACK
|
REDIST/SRC SRC TOOLS TOOLS/LAPACK
|
||||||
|
@ -43,13 +45,12 @@ SUB_FILES= pkg-message
|
||||||
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
||||||
WITH_ATLAS= yes
|
WITH_ATLAS= yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_ATLAS)
|
.if defined(WITH_ATLAS)
|
||||||
LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
|
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
||||||
BLAS= -lf77blas -latlas
|
BLAS= -lf77blas -latlas
|
||||||
.else
|
.else
|
||||||
LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas
|
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
||||||
LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack
|
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
||||||
BLAS= -lblas
|
BLAS= -lblas
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -80,9 +81,9 @@ CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's,@BLAS@,${BLAS},g; s,@WRKSRC@,${WRKSRC},g ; s,@LOCALBASE@,${LOCALBASE},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,^ARCH *.= ar,ARCMD = ar,' ${WRKSRC}/SLmake.inc
|
@${REINPLACE_CMD} -e 's,@BLAS@,${BLAS},g; s,@WRKSRC@,${WRKSRC},g ; s,@LOCALBASE@,${LOCALBASE},g ; s,@CC@,${CC},g ; s,@CFLAGS@,${CFLAGS},g ; s,@F77@,${F77},g ; s,@FFLAGS@,${FFLAGS},g ; s,@F77EXTRAFLAGS@,${F77EXTRAFLAGS},g ; s,^ARCH *.= ar,ARCMD = ar,' ${WRKSRC}/SLmake.inc
|
||||||
.for mkf in ${ARCH2FIX}
|
.for mkf in ${ARCH2FIX}
|
||||||
${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${mkf}/Makefile
|
@${REINPLACE_CMD} -e 's|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${mkf}/Makefile
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
|
|
|
@ -60,3 +60,15 @@
|
||||||
#
|
#
|
||||||
PBLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
|
PBLIBS = $(SCALAPACKLIB) $(FBLACSLIB) $(BLASLIB) $(SMPLIB)
|
||||||
PRLIBS = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
|
PRLIBS = $(SCALAPACKLIB) $(CBLACSLIB) $(SMPLIB)
|
||||||
|
|
||||||
|
--- SLmake.inc~ Wed Jan 10 16:50:13 2007
|
||||||
|
+++ SLmake.inc Wed Jan 10 16:54:40 2007
|
||||||
|
@@ -82,7 +82,7 @@
|
||||||
|
# C preprocessor defs for compilation
|
||||||
|
# (-DNoChange, -DAdd_, -DUpCase, or -Df77IsF2C)
|
||||||
|
#
|
||||||
|
-CDEFS = -Df77IsF2C -DNO_IEEE $(USEMPI)
|
||||||
|
+CDEFS = -DAdd_ -DNO_IEEE $(USEMPI)
|
||||||
|
#
|
||||||
|
# The archiver and the flag(s) to use when building archive (library)
|
||||||
|
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo
|
||||||
|
|
Loading…
Add table
Reference in a new issue