diff options
author | thierry <thierry@FreeBSD.org> | 2006-04-25 03:51:56 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2006-04-25 03:51:56 +0800 |
commit | bb55662de36878117474bf8c661c7d88c22b9484 (patch) | |
tree | 23f879714acb87cd420f6653d4c1e394df783536 /math | |
parent | 0019810bb91dc3ea4927307c6a994463cdcd4b01 (diff) | |
download | freebsd-ports-gnome-bb55662de36878117474bf8c661c7d88c22b9484.tar.gz freebsd-ports-gnome-bb55662de36878117474bf8c661c7d88c22b9484.tar.zst freebsd-ports-gnome-bb55662de36878117474bf8c661c7d88c22b9484.zip |
BLAS and some Libraries from Scalapack used by Elmer FEM package.
These libraries, as most Elmer packages, are built with a F90 compiler.
Submitted by: Pedro F. Giffuni <giffunip@asme.org>
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/elmer-mathlibs/Makefile | 39 | ||||
-rw-r--r-- | math/elmer-mathlibs/distinfo | 3 | ||||
-rw-r--r-- | math/elmer-mathlibs/files/patch-acx_elmer.m4 | 20 | ||||
-rw-r--r-- | math/elmer-mathlibs/files/patch-src+Makefile.in | 11 | ||||
-rw-r--r-- | math/elmer-mathlibs/files/patch-src+arpack+Makefile.in | 14 | ||||
-rw-r--r-- | math/elmer-mathlibs/files/patch-src+blas+Makefile.in | 14 | ||||
-rw-r--r-- | math/elmer-mathlibs/files/patch-src+lapack+Makefile.in | 14 | ||||
-rw-r--r-- | math/elmer-mathlibs/pkg-descr | 5 |
9 files changed, 121 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index f420d6da3d04..3dc61029c9ef 100644 --- a/math/Makefile +++ b/math/Makefile @@ -45,6 +45,7 @@ SUBDIR += drgeo SUBDIR += e SUBDIR += eispack + SUBDIR += elmer-mathlibs SUBDIR += elmer-umfpack SUBDIR += emacs-calc SUBDIR += emc2 diff --git a/math/elmer-mathlibs/Makefile b/math/elmer-mathlibs/Makefile new file mode 100644 index 000000000000..481b9cc6a178 --- /dev/null +++ b/math/elmer-mathlibs/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: Elmer-mathlibs +# Date created: 5 Jan 2006 +# Whom: Pedro Giffuni <giffunip@asme.org> +# +# $FreeBSD$ +# + +PORTNAME= mathlibs +PORTVERSION= 1.0.0 +CATEGORIES= math +MASTER_SITES= ftp://ftp.funet.fi/pub/sci/physics/elmer/ +PKGNAMEPREFIX= elmer- + +MAINTAINER= giffunip@asme.org +COMMENT= Math libraries build with F90 for used by ELMER FEM + +BUILD_DEPENDS= ${FC}:${PORTSDIR}/lang/gfortran + +CONFLICTS= atlas-[0-9]* blas-[0-9]* arpack-[0-9]* lapack-[0-9]* scalapack-[0-9]* + +USE_GCC= 4.1+ +WITH_FORTRAN= yes +FC= ${LOCALBASE}/bin/gfortran41 +F77= ${FC} + +CONFIGURE_ENV+= F77=${FC} + +GNU_CONFIGURE= yes +ALL_TARGET= + +PLIST_FILES= lib/libarpack.a lib/libblas.a lib/liblapack.a + +.include <bsd.port.pre.mk> + +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" +FFLAGS+= -fPIC +.endif + +.include <bsd.port.post.mk> diff --git a/math/elmer-mathlibs/distinfo b/math/elmer-mathlibs/distinfo new file mode 100644 index 000000000000..35e749e11003 --- /dev/null +++ b/math/elmer-mathlibs/distinfo @@ -0,0 +1,3 @@ +MD5 (mathlibs-1.0.0.tar.gz) = 0380195d0728117e89732eadbdf094ee +SHA256 (mathlibs-1.0.0.tar.gz) = 6f988302e654136ba05dc7e38fee3b22749a86287e3cd19e84665e49d1098e80 +SIZE (mathlibs-1.0.0.tar.gz) = 2599235 diff --git a/math/elmer-mathlibs/files/patch-acx_elmer.m4 b/math/elmer-mathlibs/files/patch-acx_elmer.m4 new file mode 100644 index 000000000000..c4dd656de721 --- /dev/null +++ b/math/elmer-mathlibs/files/patch-acx_elmer.m4 @@ -0,0 +1,20 @@ +--- acx_elmer.m4.orig Thu May 26 03:29:28 2005 ++++ acx_elmer.m4 Mon Feb 6 00:13:22 2006 +@@ -1105,7 +1105,7 @@ + ;; + esac + FCFLAGS="$FCFLAGS $FPICFLAG" +-FFLAGS="$FFLAGS $FPICFLAG" ++FFLAGS="$FFLAGS -fPIC $FPICFLAG" + CFLAGS="$CFLAGS $CPICFLAG" + CXXFLAGS="$CXXFLAGS $CXXPICFLAG" + ]) +@@ -1147,7 +1147,7 @@ + ;; + *-*-freebsd*) + SH_LD='$(CC)' +- SH_LDFLAGS="-shared" ++ SH_LDFLAGS="-shared -fPIC" + ;; + alpha*-dec-osf*) + SH_LDFLAGS="-shared" diff --git a/math/elmer-mathlibs/files/patch-src+Makefile.in b/math/elmer-mathlibs/files/patch-src+Makefile.in new file mode 100644 index 000000000000..6ca5f809fa41 --- /dev/null +++ b/math/elmer-mathlibs/files/patch-src+Makefile.in @@ -0,0 +1,11 @@ +--- src/Makefile.in.orig Mon Feb 6 00:15:44 2006 ++++ src/Makefile.in Mon Feb 6 00:16:14 2006 +@@ -83,7 +83,7 @@ + EGREP = @EGREP@ + EXEEXT = @EXEEXT@ + F77 = @F77@ +-FFLAGS = @FFLAGS@ ++FFLAGS = @FFLAGS@ -fPIC + GREP = @GREP@ + INSTALL_DATA = @INSTALL_DATA@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ diff --git a/math/elmer-mathlibs/files/patch-src+arpack+Makefile.in b/math/elmer-mathlibs/files/patch-src+arpack+Makefile.in new file mode 100644 index 000000000000..cee6d30bc73a --- /dev/null +++ b/math/elmer-mathlibs/files/patch-src+arpack+Makefile.in @@ -0,0 +1,14 @@ +--- src/arpack/Makefile.in.orig Mon Feb 6 00:28:49 2006 ++++ src/arpack/Makefile.in Mon Feb 6 00:29:34 2006 +@@ -91,9 +91,9 @@ + am_libarpack_a_OBJECTS = $(am__objects_1) + libarpack_a_OBJECTS = $(am_libarpack_a_OBJECTS) + DEFAULT_INCLUDES = -I. -I$(srcdir) +-F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) ++F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) -fPIC + F77LD = $(F77) +-F77LINK = $(F77LD) $(AM_FFLAGS) $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ ++F77LINK = $(F77LD) $(AM_FFLAGS) $(FFLAGS) -fPIC $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ + COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) diff --git a/math/elmer-mathlibs/files/patch-src+blas+Makefile.in b/math/elmer-mathlibs/files/patch-src+blas+Makefile.in new file mode 100644 index 000000000000..ffae63daad03 --- /dev/null +++ b/math/elmer-mathlibs/files/patch-src+blas+Makefile.in @@ -0,0 +1,14 @@ +--- src/blas/Makefile.in.orig Mon Feb 6 00:25:57 2006 ++++ src/blas/Makefile.in Mon Feb 6 00:27:06 2006 +@@ -107,9 +107,9 @@ + ztrsv.$(OBJEXT) + libblas_a_OBJECTS = $(am_libblas_a_OBJECTS) + DEFAULT_INCLUDES = -I. -I$(srcdir) +-F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) ++F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) -fPIC + F77LD = $(F77) +-F77LINK = $(F77LD) $(AM_FFLAGS) $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ ++F77LINK = $(F77LD) $(AM_FFLAGS) $(FFLAGS) -fPIC $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ + SOURCES = $(libblas_a_SOURCES) + DIST_SOURCES = $(libblas_a_SOURCES) diff --git a/math/elmer-mathlibs/files/patch-src+lapack+Makefile.in b/math/elmer-mathlibs/files/patch-src+lapack+Makefile.in new file mode 100644 index 000000000000..2d71526202a1 --- /dev/null +++ b/math/elmer-mathlibs/files/patch-src+lapack+Makefile.in @@ -0,0 +1,14 @@ +--- src/lapack/Makefile.in.orig Mon Feb 6 00:30:22 2006 ++++ src/lapack/Makefile.in Mon Feb 6 00:30:49 2006 +@@ -493,9 +493,9 @@ + zupmtr.$(OBJEXT) + liblapack_a_OBJECTS = $(am_liblapack_a_OBJECTS) + DEFAULT_INCLUDES = -I. -I$(srcdir) +-F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) ++F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) -fPIC + F77LD = $(F77) +-F77LINK = $(F77LD) $(AM_FFLAGS) $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ ++F77LINK = $(F77LD) $(AM_FFLAGS) $(FFLAGS) -fPIC $(AM_LDFLAGS) $(LDFLAGS) -o \ + $@ + SOURCES = $(liblapack_a_SOURCES) + DIST_SOURCES = $(liblapack_a_SOURCES) diff --git a/math/elmer-mathlibs/pkg-descr b/math/elmer-mathlibs/pkg-descr new file mode 100644 index 000000000000..9dc5b7b866a6 --- /dev/null +++ b/math/elmer-mathlibs/pkg-descr @@ -0,0 +1,5 @@ +BLAS and some Libraries from Scalapack used by Elmer FEM package. + +These libraries, as most Elmer packages, are built with a F90 compiler. + +WWW: http://www.csc.fi/elmer/ |