Update arpack96 (last release 2002) and switch to arpack-ng 3.8.0.

Initially from Volker Schlecht, with help from sthen@ and landry@

OK sthen@ and landry@
This commit is contained in:
martin 2022-05-23 16:49:24 +00:00
parent aeacfca488
commit 88b0cf0622
6 changed files with 74 additions and 48 deletions

View File

@ -1,43 +1,48 @@
COMMENT= solve large scale eigenvalue problems
COMMENT-main = F77 subroutines for solving large scale eigenvalue problems
COMMENT-mpi = openmpi for arpack
DISTNAME= arpack96
PKGNAME= arpack-96
REVISION= 8
SHARED_LIBS= arpack 1.0
CATEGORIES= math
GH_TAGNAME = 3.8.0
DISTNAME = arpack-ng-${GH_TAGNAME}
PKGNAME = arpack-${GH_TAGNAME}
GH_ACCOUNT = opencollab
GH_PROJECT = arpack-ng
HOMEPAGE= http://www.caam.rice.edu/software/ARPACK/
MULTI_PACKAGES = -main -mpi
FLAVORS = no_mpi
FLAVOR ?=
# BSD license (not in distfile)
PERMIT_PACKAGE= Yes
SHARED_LIBS += arpack 2.0
SHARED_LIBS += parpack 1.0
MASTER_SITES= ${HOMEPAGE}SRC/
DISTFILES= ${DISTNAME}.tar.gz patch.tar.gz ug.ps.gz
DIST_SUBDIR= arpack
CATEGORIES = math
MODULES= fortran
MODFORTRAN_COMPILER = gfortran
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
HOMEPAGE = https://github.com/opencollab/arpack-ng
LIB_DEPENDS = math/lapack \
math/blas
WANTLIB = lapack>=1 blas>=1 m
# BSD 3-Clause
PERMIT_PACKAGE = Yes
WRKDIST= ${WRKDIR}/ARPACK
WRKSRC= ${WRKDIST}/SRC
PICFLAG= -fPIC
MAKE_FILE= ${FILESDIR}/Makefile
MAKE_ENV= SHLIB_MAJOR=${LIBarpack_VERSION:R} \
SHLIB_MINOR=${LIBarpack_VERSION:E} \
FC="${MODFORTRAN_COMPILER} -cpp" \
CC=${MODFORTRAN_COMPILER} \
NOPROFILE=1
FAKE_FLAGS= LIBDIR=${LOCALBASE}/lib DEBUGLIBS=no
MODULES = fortran \
devel/cmake
NO_TEST= Yes
CONFIGURE_ARGS += -DBUILD_SHARED_LIBS:BOOL=ON \
-D ICB=ON
post-extract:
@cd ${WRKDIST}/UTIL && mv *.f ${WRKSRC}
LIB_DEPENDS-main = math/lapack \
math/blas
WANTLIB += lapack blas m
LIB_DEPENDS-mpi = devel/openmpi \
math/arpack,-main
WANTLIB-mpi += ${WANTLIB} arpack execinfo pciaccess pthread util z
WANTLIB-mpi += mpi mpi_mpifh mpi_usempi_ignore_tkr
WANTLIB-mpi += mpi_usempif08 open-pal open-rte
.include <bsd.port.arch.mk>
.if ${BUILD_PACKAGES:M-mpi}
CONFIGURE_ARGS += -D MPI=ON
.endif
post-install:
.for i in BAND COMPLEX NONSYM SIMPLE SVD SYM
@ -49,7 +54,6 @@ post-install:
${PREFIX}/share/examples/arpack
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/arpack
${INSTALL_DATA} ${WRKDIST}/DOCUMENTS/* ${PREFIX}/share/doc/arpack
${INSTALL_DATA} ${WRKDIR}/ug.ps ${PREFIX}/share/doc/arpack
${INSTALL_DATA} ${FILESDIR}/LICENSE ${PREFIX}/share/doc/arpack
${INSTALL_DATA} ${WRKDIST}/COPYING ${PREFIX}/share/doc/arpack
.include <bsd.port.mk>

View File

@ -1,6 +1,2 @@
SHA256 (arpack/arpack96.tar.gz) = xqR+yjCiVsuuYOacYGJRuEtqDzUrpSey3L1Hic6F7Pw=
SHA256 (arpack/patch.tar.gz) = r4kU1gr0fkn7rVWBLQpdCnBA+6kMk+XvGo2I0yAn060=
SHA256 (arpack/ug.ps.gz) = /x+qx0v8QkQpVZBhMnVuzX8ANIA4mNUH29G8lg9vSrA=
SIZE (arpack/arpack96.tar.gz) = 636865
SIZE (arpack/patch.tar.gz) = 226473
SIZE (arpack/ug.ps.gz) = 248543
SHA256 (arpack-ng-3.8.0.tar.gz) = raWus4eIdDgzByOckjW3FqihcMbQlqZiW/1SmETfAD0=
SIZE (arpack-ng-3.8.0.tar.gz) = 1014494

View File

@ -1,5 +1,8 @@
ARPACK is a collection of Fortran77 subroutines designed to solve large
scale eigenvalue problems.
It is a fork of the Rice University ARPACK, that was created as a joint project
between Debian, Octave and Scilab and is now a community project maintained by
a few volunteers.
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
@ -24,3 +27,6 @@ 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.
Flavors:
mpi - Build with OpenMPI support

View File

@ -0,0 +1 @@
openmpi support for arpack

View File

@ -1,16 +1,32 @@
lib/libarpack.a
@pkgpath math/arpack
include/arpack/
include/arpack/arpack.h
include/arpack/arpack.hpp
include/arpack/arpackdef.h
include/arpack/arpackicb.h
include/arpack/debug.h
include/arpack/debug_c.h
include/arpack/debug_c.hpp
include/arpack/stat.h
include/arpack/stat_c.h
include/arpack/stat_c.hpp
lib/cmake/
lib/cmake/arpack-ng/
lib/cmake/arpack-ng/arpack-ng-config-version.cmake
lib/cmake/arpack-ng/arpack-ng-config.cmake
@lib lib/libarpack.so.${LIBarpack_VERSION}
lib/pkgconfig/arpack.pc
share/doc/arpack/
share/doc/arpack/LICENSE
share/doc/arpack/COPYING
share/doc/arpack/README
share/doc/arpack/debug.doc
share/doc/arpack/ex-complex.doc
share/doc/arpack/ex-nonsym.doc
share/doc/arpack/ex-sym.doc
share/doc/arpack/stat.doc
share/doc/arpack/ug.ps
share/examples/arpack/
share/examples/arpack/BAND/
share/examples/arpack/BAND/Makefile.am
share/examples/arpack/BAND/README
share/examples/arpack/BAND/cnband.f
share/examples/arpack/BAND/cnbdr1.f
@ -31,7 +47,6 @@ share/examples/arpack/BAND/dsbdr3.f
share/examples/arpack/BAND/dsbdr4.f
share/examples/arpack/BAND/dsbdr5.f
share/examples/arpack/BAND/dsbdr6.f
share/examples/arpack/BAND/makefile
share/examples/arpack/BAND/snband.f
share/examples/arpack/BAND/snbdr1.f
share/examples/arpack/BAND/snbdr2.f
@ -52,17 +67,18 @@ share/examples/arpack/BAND/znbdr2.f
share/examples/arpack/BAND/znbdr3.f
share/examples/arpack/BAND/znbdr4.f
share/examples/arpack/COMPLEX/
share/examples/arpack/COMPLEX/Makefile.am
share/examples/arpack/COMPLEX/README
share/examples/arpack/COMPLEX/cndrv1.f
share/examples/arpack/COMPLEX/cndrv2.f
share/examples/arpack/COMPLEX/cndrv3.f
share/examples/arpack/COMPLEX/cndrv4.f
share/examples/arpack/COMPLEX/makefile
share/examples/arpack/COMPLEX/zndrv1.f
share/examples/arpack/COMPLEX/zndrv2.f
share/examples/arpack/COMPLEX/zndrv3.f
share/examples/arpack/COMPLEX/zndrv4.f
share/examples/arpack/NONSYM/
share/examples/arpack/NONSYM/Makefile.am
share/examples/arpack/NONSYM/README
share/examples/arpack/NONSYM/dndrv1.f
share/examples/arpack/NONSYM/dndrv2.f
@ -70,7 +86,6 @@ share/examples/arpack/NONSYM/dndrv3.f
share/examples/arpack/NONSYM/dndrv4.f
share/examples/arpack/NONSYM/dndrv5.f
share/examples/arpack/NONSYM/dndrv6.f
share/examples/arpack/NONSYM/makefile
share/examples/arpack/NONSYM/sndrv1.f
share/examples/arpack/NONSYM/sndrv2.f
share/examples/arpack/NONSYM/sndrv3.f
@ -79,22 +94,23 @@ share/examples/arpack/NONSYM/sndrv5.f
share/examples/arpack/NONSYM/sndrv6.f
share/examples/arpack/README
share/examples/arpack/SIMPLE/
share/examples/arpack/SIMPLE/Makefile.am
share/examples/arpack/SIMPLE/README
share/examples/arpack/SIMPLE/cnsimp.f
share/examples/arpack/SIMPLE/debug.h
share/examples/arpack/SIMPLE/dnsimp.f
share/examples/arpack/SIMPLE/dssimp.f
share/examples/arpack/SIMPLE/makefile
share/examples/arpack/SIMPLE/snsimp.f
share/examples/arpack/SIMPLE/sssimp.f
share/examples/arpack/SIMPLE/znsimp.f
share/examples/arpack/SVD/
share/examples/arpack/SVD/Makefile.am
share/examples/arpack/SVD/README
share/examples/arpack/SVD/debug.h
share/examples/arpack/SVD/dsvd.f
share/examples/arpack/SVD/makefile
share/examples/arpack/SVD/ssvd.f
share/examples/arpack/SYM/
share/examples/arpack/SYM/Makefile.am
share/examples/arpack/SYM/README
share/examples/arpack/SYM/dsdrv1.f
share/examples/arpack/SYM/dsdrv2.f
@ -102,7 +118,6 @@ share/examples/arpack/SYM/dsdrv3.f
share/examples/arpack/SYM/dsdrv4.f
share/examples/arpack/SYM/dsdrv5.f
share/examples/arpack/SYM/dsdrv6.f
share/examples/arpack/SYM/makefile
share/examples/arpack/SYM/ssdrv1.f
share/examples/arpack/SYM/ssdrv2.f
share/examples/arpack/SYM/ssdrv3.f

View File

@ -0,0 +1,4 @@
include/arpack/parpack.h
include/arpack/parpack.hpp
@lib lib/libparpack.so.${LIBparpack_VERSION}
lib/pkgconfig/parpack.pc