Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

20
math/meschach/DESCR Normal file
View File

@@ -0,0 +1,20 @@
The Meschach Library is a numerical library of C routines for performing
calculations on matrices and vectors. It is intended for solving systems of
linear equations (dense and sparse), solve least squares problems,
computing eigenvalues and eigenvectors, etc. We do not claim that it
contains every useful algorithm in numerical linear algebra, but it does
provide a basis on which more advanced algorithms can be built. The library
is for people who know something about the C programming language,
something of how to solve the numerical problem they are faced with but do
not want to have the hassle of building all the necessary routines from the
scratch. The library is not a loose collection of numerical routines but it
comprises a coherent system. The current version is enhanced with many
features comparing with previous versions. Since the memory requirements
are nontrivial for large problems we have paid more attention to
allocation/deallocation of memory.
The source code is available to be perused, used and passed on without
cost, while ensuring that the quality of the software is not compromised.
The software is copyrighted; however, the copyright agreement follows in
the footsteps of the Free Software Foundation in preventing abuse that
occurs with totally public domain software.

44
math/meschach/Makefile Normal file
View File

@@ -0,0 +1,44 @@
# $NetBSD: Makefile,v 1.19 2012/09/11 23:04:23 asau Exp $
DISTNAME= mesch12b
PKGNAME= meschach-1.2b
CATEGORIES= math
MASTER_SITES= http://www.math.uiowa.edu/~dstewart/meschach/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.math.uiowa.edu/~dstewart/meschach/
COMMENT= Library of C Routines for Matrix Computations
WRKSRC= ${WRKDIR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-all
MAKE_FILE= makefile
USE_BSD_MAKEFILE= yes
MAKE_FLAGS+= MKPROFILE=yes
INSTALLATION_DIRS= include/meschach lib share/meschach/tests
BUILDLINK_TRANSFORM+= rm:-Werror
pre-patch:
${CP} ${FILESDIR}/makefile.in ${WRKSRC}
post-patch:
${SED} -e 's:@PREFIX@:'${PREFIX}':g' ${FILESDIR}/makefile.test \
> ${WRKSRC}/Makefile
post-install:
cd ${WRKSRC} && ${INSTALL_DATA} err.h machine.h matlab.h \
matrix.h meminfo.h sparse.h zmatrix.h iter.h matrix2.h \
oldnames.h sparse2.h zmatrix2.h ${DESTDIR}${PREFIX}/include/meschach/
cd ${WRKSRC} && ${INSTALL_DATA} torture.c sptort.c ztorture.c \
memtort.c itertort.c mfuntort.c iotort.c \
${DESTDIR}${PREFIX}/share/meschach/tests/
${INSTALL_DATA} ${WRKSRC}/Makefile ${DESTDIR}${PREFIX}/share/meschach/tests
cd ${WRKSRC} && ${INSTALL_DATA} README ./DOC/* \
${DESTDIR}${PREFIX}/share/meschach/
${INSTALL_DATA} ${WRKSRC}/copyright ${DESTDIR}${PREFIX}/share/meschach
cd ${WRKSRC} && ${INSTALL_DATA} tutadv.c tutorial.c \
${DESTDIR}${PREFIX}/share/meschach/
.include "../../mk/bsd.pkg.mk"

33
math/meschach/PLIST Normal file
View File

@@ -0,0 +1,33 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:05:45 joerg Exp $
include/meschach/err.h
include/meschach/iter.h
include/meschach/machine.h
include/meschach/matlab.h
include/meschach/matrix.h
include/meschach/matrix2.h
include/meschach/meminfo.h
include/meschach/oldnames.h
include/meschach/sparse.h
include/meschach/sparse2.h
include/meschach/zmatrix.h
include/meschach/zmatrix2.h
lib/libmeschach.a
lib/libmeschach.so
lib/libmeschach.so.0
lib/libmeschach.so.0.0
lib/libmeschach_p.a
lib/libmeschach_pic.a
share/meschach/README
share/meschach/copyright
share/meschach/fnindex.txt
share/meschach/tests/Makefile
share/meschach/tests/iotort.c
share/meschach/tests/itertort.c
share/meschach/tests/memtort.c
share/meschach/tests/mfuntort.c
share/meschach/tests/sptort.c
share/meschach/tests/torture.c
share/meschach/tests/ztorture.c
share/meschach/tutadv.c
share/meschach/tutorial.c
share/meschach/tutorial.txt

14
math/meschach/distinfo Normal file
View File

@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.6 2007/11/30 19:22:18 rillig Exp $
SHA1 (mesch12b.tar.gz) = a4e052d9512786284faa890bf57b9ae5aaa96a84
RMD160 (mesch12b.tar.gz) = 391bb7786b54f18e8d5f368cd9dc20d1fcb7c63b
Size (mesch12b.tar.gz) = 220668 bytes
SHA1 (patch-aa) = 8a9687ce01e2dd0960604267af6a9f87eb4e306b
SHA1 (patch-ab) = 3a03bc882b5262ea9ac30e5afa354fdce29aa988
SHA1 (patch-ac) = 68047257af409d72cd56834109258d576c0b80b8
SHA1 (patch-ad) = 812da331ae588084b724cd2fcd9c687cb890304d
SHA1 (patch-ae) = 81174ede21f1eb57725dc338170edc50a983f08a
SHA1 (patch-af) = eae651b15c164becf1024f25bf7ebfbdac7b295c
SHA1 (patch-ag) = 1966f9572e45d5353d7822c47342b6edd7f87f74
SHA1 (patch-ah) = d29a3d06418e9a4af5ed179ac59abcb5c72633e3
SHA1 (patch-ai) = 8a007e68989b65b1e10a1f68029747f267922de3

View File

@@ -0,0 +1,24 @@
LIB= meschach
SHLIB_MAJOR= 0
SHLIB_MINOR= 0
CPPFLAGS+= @DEFS@
LDADD+= @LIBS@
LIBDIR= ${PREFIX}/lib
NOLINT= 1
SRCS= copy.c err.c matrixio.c memory.c vecop.c matop.c pxop.c \
submat.c init.c otherio.c machine.c matlab.c ivecop.c version.c \
meminfo.c memstat.c lufactor.c bkpfacto.c chfactor.c qrfactor.c \
solve.c hsehldr.c givens.c update.c norm.c hessen.c symmeig.c \
schur.c svd.c fft.c mfunc.c bdfactor.c sparse.c sprow.c sparseio.c \
spchfctr.c splufctr.c spbkp.c spswap.c iter0.c itersym.c \
iternsym.c zmachine.c zcopy.c zmatio.c zmemory.c zvecop.c zmatop.c \
znorm.c zfunc.c zlufctr.c zsolve.c zmatlab.c zhsehldr.c \
zqrfctr.c zgivens.c zhessen.c zschur.c conjgrad.c lanczos.c \
arnoldi.c
.include <bsd.lib.mk>

View File

@@ -0,0 +1,15 @@
TORTURE= torture sptort ztorture memtort itertort mfuntort iotort
CPPFLAGS+= -I@PREFIX@/include
LDFLAGS+= -Wl,-R@PREFIX@/lib -L@PREFIX@/lib
LIBS= -lmeschach -lm
all: $(TORTURE)
$(TORTURE): $(TORTURE:=.o)
$(CC) $(CPPFLAGS) $(CFLAGS) $@.o $(LDFLAGS) $(LIBS) -o $@
clean:
rm -fr *.o *.core iotort.dat torture sptort ztorture \
memtort itertort mfuntort iotort asx5213a.mat

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.1.1.1 2000/12/05 00:06:46 jtb Exp $
--- configure.orig Fri Nov 3 14:36:12 2000
+++ configure
@@ -22,7 +22,7 @@
# Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
# --with-PACKAGE unless this script has special code to handle it.
-
+PATH=$PATH:`pwd`
for arg
do
# Handle --exec-prefix with a space before the argument.

View File

@@ -0,0 +1,29 @@
$NetBSD: patch-ab,v 1.4 2007/11/30 19:22:19 rillig Exp $
--- machine.h.in.orig 1995-03-27 15:37:41.000000000 +0000
+++ machine.h.in 2007-11-30 19:19:57.000000000 +0000
@@ -119,6 +119,8 @@
/* if the system has complex.h */
#ifdef HAVE_COMPLEX_H
#include <complex.h>
+#undef /* prevent autoconf from modifying this line */ \
+ complex /* zmachine.h defines a structure of that name. */
#endif
/* If prototypes are available & ANSI_C not yet defined, then define it,
@@ -211,6 +213,7 @@
#endif
/* for non-ANSI systems */
+#ifndef ANSI_C
#ifndef HUGE_VAL
#define HUGE_VAL HUGE
#else
@@ -218,6 +221,7 @@
#define HUGE HUGE_VAL
#endif
#endif
+#endif
#ifdef ANSI_C

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-ac,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- iotort.c.orig Fri Jan 14 00:46:45 1994
+++ iotort.c
@@ -31,4 +31,4 @@
-#include "sparse.h"
-#include "zmatrix.h"
+#include "meschach/sparse.h"
+#include "meschach/zmatrix.h"

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ad,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- memtort.c.orig Fri Jan 14 00:46:45 1994
+++ memtort.c
@@ -32,9 +32,9 @@
#include <stdio.h>
#include <math.h>
-#include "matrix2.h"
-#include "sparse2.h"
-#include "zmatrix2.h"
+#include "meschach/matrix2.h"
+#include "meschach/sparse2.h"
+#include "meschach/zmatrix2.h"
#define errmesg(mesg) printf("Error: %s error: line %d\n",mesg,__LINE__)

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ae,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- mfuntort.c.orig Fri Jan 14 01:08:28 1994
+++ mfuntort.c
@@ -30,8 +30,8 @@
#include <stdio.h>
#include <math.h>
-#include "matrix.h"
-#include "matrix2.h"
+#include "meschach/matrix.h"
+#include "meschach/matrix2.h"
#define errmesg(mesg) printf("Error: %s error: line %d\n",mesg,__LINE__)

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-af,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- sptort.c.orig Mon Feb 28 23:22:35 1994
+++ sptort.c
@@ -30,9 +30,9 @@
#include <stdio.h>
#include <math.h>
-#include "matrix2.h"
-#include "sparse2.h"
-#include "iter.h"
+#include "meschach/matrix2.h"
+#include "meschach/sparse2.h"
+#include "meschach/iter.h"
#define errmesg(mesg) printf("Error: %s error: line %d\n",mesg,__LINE__)
#define notice(mesg) printf("# Testing %s...\n",mesg);

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ag,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- torture.c.orig Mon Dec 12 20:01:07 1994
+++ torture.c
@@ -32,7 +32,7 @@
#include <stdio.h>
-#include "matrix2.h"
+#include "meschach/matrix2.h"
#include <math.h>
-#include "matlab.h"
+#include "meschach/matlab.h"
#define errmesg(mesg) printf("Error: %s error: line %d\n",mesg,__LINE__)

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ah,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- ztorture.c.orig Mon Dec 12 20:01:19 1994
+++ ztorture.c
@@ -33,7 +33,7 @@
#include <stdio.h>
-#include "zmatrix2.h"
+#include "meschach/zmatrix2.h"
#include <math.h>
-#include "matlab.h"
+#include "meschach/matlab.h"

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ai,v 1.2 2001/05/10 23:43:26 jtb Exp $
--- itertort.c.orig Mon Nov 20 20:39:11 2000
+++ itertort.c
@@ -31,9 +31,9 @@
*/
#include <stdio.h>
-#include "matrix2.h"
-#include "sparse2.h"
-#include "iter.h"
+#include "meschach/matrix2.h"
+#include "meschach/sparse2.h"
+#include "meschach/iter.h"
#include <math.h>
#define errmesg(mesg) printf("Error: %s error: line %d\n",mesg,__LINE__)