summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/meschach/Makefile42
-rw-r--r--math/meschach/files/makefile.in34
-rw-r--r--math/meschach/files/makefile.test41
-rw-r--r--math/meschach/files/md53
-rw-r--r--math/meschach/files/patch-sum11
-rw-r--r--math/meschach/patches/patch-aa13
-rw-r--r--math/meschach/patches/patch-ab25
-rw-r--r--math/meschach/patches/patch-ac11
-rw-r--r--math/meschach/patches/patch-ad17
-rw-r--r--math/meschach/patches/patch-ae15
-rw-r--r--math/meschach/patches/patch-af17
-rw-r--r--math/meschach/patches/patch-ag14
-rw-r--r--math/meschach/patches/patch-ah14
-rw-r--r--math/meschach/patches/patch-ai17
-rw-r--r--math/meschach/pkg/COMMENT1
-rw-r--r--math/meschach/pkg/DESCR20
-rw-r--r--math/meschach/pkg/PLIST33
17 files changed, 328 insertions, 0 deletions
diff --git a/math/meschach/Makefile b/math/meschach/Makefile
new file mode 100644
index 00000000000..ad7b273b7ef
--- /dev/null
+++ b/math/meschach/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/12/05 00:06:42 jtb Exp $
+
+DISTNAME= mesch12b
+PKGNAME= meschach-1.2b
+CATEGORIES= math
+MASTER_SITES= ftp://ftpmaths.anu.edu.au/pub/meschach/
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= ftp://ftpmaths.anu.edu/pub/meschach/meschach.html
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+GNU_CONFIGURE= YES
+WRKSRC= ${WRKDIR}
+MAKEFILE= makefile
+USE_LIBTOOL= YES
+
+CONFIGURE_ARGS+= "--with-all"
+
+pre-patch:
+ @${CP} ${FILESDIR}/makefile.in ${WRKSRC}
+
+post-patch:
+ @${SED} -e 's:%%PREFIX%%:'${PREFIX}':g' < ${FILESDIR}/makefile.test \
+ > ${WRKSRC}/Makefile
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/include/meschach
+ @for i in err.h machine.h matlab.h matrix.h meminfo.h sparse.h \
+ zmatrix.h iter.h matrix2.h oldnames.h sparse2.h zmatrix2.h ; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/include/meschach ; done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/meschach
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/meschach/tests
+ @for t in torture.c sptort.c ztorture.c memtort.c itertort.c \
+ mfuntort.c iotort.c ; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$t ${PREFIX}/share/meschach/tests ; done
+ ${INSTALL_DATA} ${WRKSRC}/Makefile ${PREFIX}/share/meschach/tests
+ ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/DOC/* ${PREFIX}/share/meschach
+ ${INSTALL_DATA} ${WRKSRC}/copyright ${PREFIX}/share/meschach
+ @for e in tutadv.c tutorial.c ; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$e ${PREFIX}/share/meschach ; done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/meschach/files/makefile.in b/math/meschach/files/makefile.in
new file mode 100644
index 00000000000..93e4fc17e58
--- /dev/null
+++ b/math/meschach/files/makefile.in
@@ -0,0 +1,34 @@
+CC = @CC@
+
+DEFS = @DEFS@
+LIBS = @LIBS@
+LIBDIR = ${PREFIX}/lib
+CFLAGS = -O2 -ansi -pedantic
+
+OBJ = copy.o err.o matrixio.o memory.o vecop.o matop.o pxop.o \
+ submat.o init.o otherio.o machine.o matlab.o ivecop.o version.o \
+ meminfo.o memstat.o lufactor.o bkpfacto.o chfactor.o qrfactor.o \
+ solve.o hsehldr.o givens.o update.o norm.o hessen.o symmeig.o \
+ schur.o svd.o fft.o mfunc.o bdfactor.o sparse.o sprow.o sparseio.o \
+ spchfctr.o splufctr.o spbkp.o spswap.o iter0.o itersym.o \
+ iternsym.o zmachine.o zcopy.o zmatio.o zmemory.o zvecop.o zmatop.o \
+ znorm.o zfunc.o zlufctr.o zsolve.o zmatlab.o zhsehldr.o \
+ zqrfctr.o zgivens.o zhessen.o zschur.o conjgrad.o lanczos.o \
+ arnoldi.o
+
+all: libmeschach
+
+libmeschach: $(OBJ)
+ @$(LIBTOOL) $(CC) -O -o libmeschach.la $(OBJ:.o=.lo) -rpath $(LIBDIR)
+
+install:
+ @$(LIBTOOL) --mode=install install -c libmeschach.la $(LIBDIR)
+
+.c.o:
+ @$(LIBTOOL) $(CC) -c $(CFLAGS) $(DEFS) $<
+
+clean:
+ rm -fr *.o *.lo *.core asx5213a.mat iotort.dat *.la
+ rm -fr torture sptort ztorture memtort itertort mfuntort iotort
+ rm -fr makefile machine.h config.status maxint macheps
+
diff --git a/math/meschach/files/makefile.test b/math/meschach/files/makefile.test
new file mode 100644
index 00000000000..bad8b0dcff5
--- /dev/null
+++ b/math/meschach/files/makefile.test
@@ -0,0 +1,41 @@
+LIBS = -L%%PREFIX%%/lib -lmeschach -lm
+
+CFLAGS = -I%%PREFIX%%/include -O2 -ansi
+
+TORTURE = torture.o sptort.o ztorture.o memtort.o itertort.o \
+ mfuntort.o iotort.o
+
+all: alltorture
+
+alltorture: torture sptort ztorture memtort itertort mfuntort iotort
+
+torture: torture.o
+ $(CC) $(CFLAGS) -O -o torture torture.o $(LIBS)
+
+sptort: sptort.o
+ $(CC) $(CFLAGS) -O -o sptort sptort.o $(LIBS)
+
+memtort: memtort.o
+ $(CC) $(CFLAGS) -O -o memtort memtort.o $(LIBS)
+
+ztorture: ztorture.o
+ $(CC) $(CFLAGS) -O -o ztorture ztorture.o $(LIBS)
+
+itertort: itertort.o
+ $(CC) $(CFLAGS) -O -o itertort itertort.o $(LIBS)
+
+iotort: iotort.o
+ $(CC) $(CFLAGS) -O -o iotort iotort.o $(LIBS)
+
+mfuntort: mfuntort.o
+ $(CC) $(CFLAGS) -O -o mfuntort mfuntort.o $(LIBS)
+
+tstmove: tstmove.o
+ $(CC) $(CFLAGS) -O -o tstmove tstmove.o $(LIBS)
+
+tstpxvec: tstpxvec.o
+ $(CC) $(CFLAGS) -O -o tstpxvec tstpxvec.o $(LIBS)
+
+clean:
+ rm -fr *.o *.core iotort.dat torture sptort ztorture \
+ memtort itertort mfuntort iotort asx5213a.mat
diff --git a/math/meschach/files/md5 b/math/meschach/files/md5
new file mode 100644
index 00000000000..98d652feedc
--- /dev/null
+++ b/math/meschach/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/12/05 00:06:42 jtb Exp $
+
+MD5 (mesch12b.tar.gz) = 723c03eb7c167e11bf5c3f3ac67c46a0
diff --git a/math/meschach/files/patch-sum b/math/meschach/files/patch-sum
new file mode 100644
index 00000000000..12f8ef45575
--- /dev/null
+++ b/math/meschach/files/patch-sum
@@ -0,0 +1,11 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/12/05 00:06:46 jtb Exp $
+
+MD5 (patch-aa) = 0757d096829045cc9f31a7b4d04ede12
+MD5 (patch-ab) = e485a0e4bf155b034574ff7d8a5a56b2
+MD5 (patch-ac) = ec6c5fa67a871486788c6bf0947dcd4b
+MD5 (patch-ad) = 4fe5b068b95ebc6ba977e31ccbc4f670
+MD5 (patch-ae) = 0ea40cc87eece572a59e065f97c6bb63
+MD5 (patch-af) = 5804a7760600d709eb6c6ff92207fccf
+MD5 (patch-ag) = 69eb772ca3acd67f25eebd46c587efbc
+MD5 (patch-ah) = 0e1a984a4737fd0ba17eb01c4d48c888
+MD5 (patch-ai) = f21adb1e4001a8b84255c2b1fe79a39e
diff --git a/math/meschach/patches/patch-aa b/math/meschach/patches/patch-aa
new file mode 100644
index 00000000000..5137acd3e18
--- /dev/null
+++ b/math/meschach/patches/patch-aa
@@ -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.
diff --git a/math/meschach/patches/patch-ab b/math/meschach/patches/patch-ab
new file mode 100644
index 00000000000..e74fdc97380
--- /dev/null
+++ b/math/meschach/patches/patch-ab
@@ -0,0 +1,25 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/12/05 00:06:46 jtb Exp $
+
+--- machine.h.in.orig Mon Nov 20 03:33:32 2000
++++ machine.h.in
+@@ -208,13 +208,13 @@
+ #endif
+
+ /* for non-ANSI systems */
+-#ifndef HUGE_VAL
+-#define HUGE_VAL HUGE
+-#else
+-#ifndef HUGE
+-#define HUGE HUGE_VAL
+-#endif
+-#endif
++/* #ifndef HUGE_VAL */
++/* #define HUGE_VAL HUGE */
++/* #else */
++/* #ifndef HUGE */
++/* #define HUGE HUGE_VAL */
++/* #endif */
++/* #endif */
+
+
+ #ifdef ANSI_C
diff --git a/math/meschach/patches/patch-ac b/math/meschach/patches/patch-ac
new file mode 100644
index 00000000000..aae7bdf9d7e
--- /dev/null
+++ b/math/meschach/patches/patch-ac
@@ -0,0 +1,11 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/12/05 00:06:46 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>
+
diff --git a/math/meschach/patches/patch-ad b/math/meschach/patches/patch-ad
new file mode 100644
index 00000000000..e44cbab967f
--- /dev/null
+++ b/math/meschach/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/12/05 00:06:49 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__)
diff --git a/math/meschach/patches/patch-ae b/math/meschach/patches/patch-ae
new file mode 100644
index 00000000000..d62578aa87c
--- /dev/null
+++ b/math/meschach/patches/patch-ae
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.1.1.1 2000/12/05 00:06:49 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__)
diff --git a/math/meschach/patches/patch-af b/math/meschach/patches/patch-af
new file mode 100644
index 00000000000..fd428a7ad52
--- /dev/null
+++ b/math/meschach/patches/patch-af
@@ -0,0 +1,17 @@
+$NetBSD: patch-af,v 1.1.1.1 2000/12/05 00:06:49 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);
diff --git a/math/meschach/patches/patch-ag b/math/meschach/patches/patch-ag
new file mode 100644
index 00000000000..e2fd944d4ea
--- /dev/null
+++ b/math/meschach/patches/patch-ag
@@ -0,0 +1,14 @@
+$NetBSD: patch-ag,v 1.1.1.1 2000/12/05 00:06:49 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__)
diff --git a/math/meschach/patches/patch-ah b/math/meschach/patches/patch-ah
new file mode 100644
index 00000000000..01515eb0ab5
--- /dev/null
+++ b/math/meschach/patches/patch-ah
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1.1.1 2000/12/05 00:06:49 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>
+
+
diff --git a/math/meschach/patches/patch-ai b/math/meschach/patches/patch-ai
new file mode 100644
index 00000000000..1ea7f2160fb
--- /dev/null
+++ b/math/meschach/patches/patch-ai
@@ -0,0 +1,17 @@
+$NetBSD: patch-ai,v 1.1.1.1 2000/12/05 00:06:49 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__)
diff --git a/math/meschach/pkg/COMMENT b/math/meschach/pkg/COMMENT
new file mode 100644
index 00000000000..056a061136b
--- /dev/null
+++ b/math/meschach/pkg/COMMENT
@@ -0,0 +1 @@
+Library of C Routines for Matrix Computations
diff --git a/math/meschach/pkg/DESCR b/math/meschach/pkg/DESCR
new file mode 100644
index 00000000000..a17860f1b6a
--- /dev/null
+++ b/math/meschach/pkg/DESCR
@@ -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.
diff --git a/math/meschach/pkg/PLIST b/math/meschach/pkg/PLIST
new file mode 100644
index 00000000000..7714d448522
--- /dev/null
+++ b/math/meschach/pkg/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/05 00:06:46 jtb 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.la
+lib/libmeschach.so.0.0
+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
+@dirrm share/meschach/tests
+@dirrm share/meschach
+@dirrm include/meschach