mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Argand Library (serial version)
Submitted by: Pedro F. Giffuni <giffunip@yahoo.com>
This commit is contained in:
parent
f113f69db8
commit
621e11e202
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80169
@ -8,6 +8,7 @@
|
||||
SUBDIR += abs
|
||||
SUBDIR += add
|
||||
SUBDIR += apc
|
||||
SUBDIR += arpack
|
||||
SUBDIR += asir2000
|
||||
SUBDIR += atlas
|
||||
SUBDIR += biggles
|
||||
|
56
math/arpack/Makefile
Normal file
56
math/arpack/Makefile
Normal file
@ -0,0 +1,56 @@
|
||||
# New ports collection makefile for: arpack
|
||||
# Date created: 31 Jan 2003
|
||||
# Whom: Pedro F. Giffuni
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= arpack
|
||||
PORTVERSION= 96
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= http://www.caam.rice.edu/software/ARPACK/SRC/
|
||||
DISTFILES= ${PORTNAME}${PORTVERSION}.tar.gz patch.tar.Z
|
||||
|
||||
PATCH_SITES= http://www.caam.rice.edu/software/ARPACK/SRC/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Argand Library (serial version)
|
||||
|
||||
DIST_SUBDIR= arpack
|
||||
|
||||
WRKSRC= ${WRKDIR}/ARPACK
|
||||
ALL_TARGET= lib
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/f2c:${PORTSDIR}/lang/f2c
|
||||
|
||||
MAKE_ENV= HOME=${WRKSRC}
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
pre-patch:
|
||||
@(cd ${WRKSRC}; tar -xzf ${DISTDIR}/${DIST_SUBDIR}/patch.tar.Z)
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's+%FC%+${FC}+g;' ${WRKSRC}/ARmake.inc
|
||||
@${REINPLACE_CMD} -e 's+%FFLAGS%+${FFLAGS}+g;' ${WRKSRC}/ARmake.inc
|
||||
|
||||
do-install:
|
||||
${INSTALL} ${WRKSRC}/libarpack.a ${PREFIX}/lib
|
||||
(${MKDIR} ${WRKSRC}/include ;\
|
||||
cd ${WRKSRC}/include ;\
|
||||
f2c -C++ -P ${WRKSRC}/SRC/*.f ;\
|
||||
f2c -C++ -P ${WRKSRC}/BLAS/*.f ;\
|
||||
f2c -C++ -P ${WRKSRC}/LAPACK/*.f ;\
|
||||
${CAT} *.P | ${GREP} -v :ref: > arpack.h)
|
||||
${INSTALL_DATA} ${WRKSRC}/include/arpack.h ${PREFIX}/include
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} $(PREFIX)/share/doc/arpack
|
||||
-${GZIP_CMD} ${GZIP} ${WRKSRC}/DOCUMENTS/ex-*.doc
|
||||
${CP} $(WRKSRC)/DOCUMENTS/ex-*.doc.gz $(PREFIX)/share/doc/arpack/
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
math/arpack/distinfo
Normal file
2
math/arpack/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (arpack/arpack96.tar.gz) = fffaa970198b285676f4156cebc8626e
|
||||
MD5 (arpack/patch.tar.Z) = f323dafc1610d45fb98987cf76a7d344
|
52
math/arpack/files/patch-Armake.inc
Normal file
52
math/arpack/files/patch-Armake.inc
Normal file
@ -0,0 +1,52 @@
|
||||
--- ARmake.inc.orig Sat Apr 27 04:12:57 1996
|
||||
+++ ARmake.inc Mon May 5 20:12:25 2003
|
||||
@@ -25,14 +25,14 @@
|
||||
# | other than your home directory. |
|
||||
# %--------------------------------------%
|
||||
#
|
||||
-home = $(HOME)/ARPACK
|
||||
+home = $(HOME)
|
||||
#
|
||||
# %--------------------------------------%
|
||||
# | The platform identifier to suffix to |
|
||||
# | the end of library names |
|
||||
# %--------------------------------------%
|
||||
#
|
||||
-PLAT = SUN4
|
||||
+PLAT = FBSD
|
||||
#
|
||||
# %------------------------------------------------------%
|
||||
# | The directories to find the various pieces of ARPACK |
|
||||
@@ -57,9 +57,9 @@
|
||||
# | The name of the libraries to be created/linked to |
|
||||
# %---------------------------------------------------%
|
||||
#
|
||||
-ARPACKLIB = $(home)/libarpack_$(PLAT).a
|
||||
-LAPACKLIB =
|
||||
-BLASLIB =
|
||||
+ARPACKLIB = $(home)/libarpack.a
|
||||
+LAPACKLIB = $(home)/liblapack.a
|
||||
+BLASLIB = $(home)/libblas.a
|
||||
#
|
||||
ALIBS = $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB)
|
||||
#
|
||||
@@ -101,8 +101,8 @@
|
||||
# | for your system. |
|
||||
# %-----------------------------------------%
|
||||
#
|
||||
-FC = f77
|
||||
-FFLAGS = -O -cg89
|
||||
+FC = %FC%
|
||||
+FFLAGS = %FFLAGS%
|
||||
|
||||
LDFLAGS =
|
||||
CD = cd
|
||||
@@ -112,7 +112,7 @@
|
||||
LN = ln
|
||||
LNFLAGS = -s
|
||||
|
||||
-MAKE = /bin/make
|
||||
+MAKE ?= /usr/bin/make
|
||||
|
||||
RM = rm
|
||||
RMFLAGS = -f
|
22
math/arpack/pkg-descr
Normal file
22
math/arpack/pkg-descr
Normal file
@ -0,0 +1,22 @@
|
||||
ARPACK is a collection of Fortran77 subroutines designed to solve large
|
||||
scale eigenvalue problems.
|
||||
|
||||
The package is designed to compute a few eigenvalues and corresponding
|
||||
eigenvectors of a general n by n matrix A. It is most appropriate for large
|
||||
sparse or structured matrices A where structured means that a matrix-vector
|
||||
product w <- Av requires order n rather than the usual order n**2 floating
|
||||
point operations. This software is based upon an algorithmic variant of the
|
||||
Arnoldi process called the Implicitly Restarted Arnoldi Method (IRAM). When
|
||||
the matrix A is symmetric it reduces to a variant of the Lanczos process
|
||||
called the Implicitly Restarted Lanczos Method (IRLM). These variants may be
|
||||
viewed as a synthesis of the Arnoldi/Lanczos process with the Implicitly
|
||||
Shifted QR technique that is suitable for large scale problems. For many
|
||||
standard problems, a matrix factorization is not required. Only the action
|
||||
of the matrix on a vector is needed. ARPACK software is capable of solving
|
||||
large scale symmetric, nonsymmetric, and generalized eigenproblems from
|
||||
significant application areas. The software is designed to compute a few (k)
|
||||
eigenvalues with user specified features such as those of largest real part
|
||||
or largest magnitude. Storage requirements are on the order of n*k locations.
|
||||
No auxiliary storage is required. A set of Schur basis vectors for the desired
|
||||
k-dimensional eigen-space is computed which is numerically orthogonal to working
|
||||
precision. Numerically accurate eigenvectors are available on request.
|
6
math/arpack/pkg-plist
Normal file
6
math/arpack/pkg-plist
Normal file
@ -0,0 +1,6 @@
|
||||
include/arpack.h
|
||||
lib/libarpack.a
|
||||
share/doc/arpack/ex-complex.doc.gz
|
||||
share/doc/arpack/ex-nonsym.doc.gz
|
||||
share/doc/arpack/ex-sym.doc.gz
|
||||
@dirrm share/doc/arpack
|
Loading…
Reference in New Issue
Block a user