DESCR

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.

Makefile

# $NetBSD: Makefile,v 1.16 2009/12/11 17:09:51 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

PKG_DESTDIR_SUPPORT= user-destdir

WRKSRC= ${WRKDIR}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-all
MAKE_FILE= makefile
USE_BSD_MAKEFILE= yes

INSTALLATION_DIRS= include/meschach lib share/meschach/tests

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"

PLIST

@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

distinfo

$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