1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

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>
This commit is contained in:
Thierry Thomas 2006-04-24 19:51:56 +00:00
parent 50542d86ac
commit 8315488dab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160355
9 changed files with 121 additions and 0 deletions

View File

@ -45,6 +45,7 @@
SUBDIR += drgeo
SUBDIR += e
SUBDIR += eispack
SUBDIR += elmer-mathlibs
SUBDIR += elmer-umfpack
SUBDIR += emacs-calc
SUBDIR += emc2

View File

@ -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>

View File

@ -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

View File

@ -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"

View File

@ -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@

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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/