From 7afe95e883debb0fce229d6143f2e03cba2c3cca Mon Sep 17 00:00:00 2001 From: jtb Date: Fri, 2 Feb 2001 01:24:09 +0000 Subject: Initial import of superlu: ANSI C routine library for the solution of sparse linear systems --- math/superlu/Makefile | 23 ++++++++++++++++++ math/superlu/files/md5 | 3 +++ math/superlu/files/patch-sum | 3 +++ math/superlu/patches/patch-aa | 55 +++++++++++++++++++++++++++++++++++++++++++ math/superlu/pkg/COMMENT | 1 + math/superlu/pkg/DESCR | 8 +++++++ math/superlu/pkg/PLIST | 5 ++++ 7 files changed, 98 insertions(+) create mode 100644 math/superlu/Makefile create mode 100644 math/superlu/files/md5 create mode 100644 math/superlu/files/patch-sum create mode 100644 math/superlu/patches/patch-aa create mode 100644 math/superlu/pkg/COMMENT create mode 100644 math/superlu/pkg/DESCR create mode 100644 math/superlu/pkg/PLIST (limited to 'math/superlu') diff --git a/math/superlu/Makefile b/math/superlu/Makefile new file mode 100644 index 00000000000..98b2d95209d --- /dev/null +++ b/math/superlu/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/02/02 01:24:09 jtb Exp $ + +DISTNAME= superlu_2.0 +PKGNAME= superlu-2.0 +CATEGORIES= math +MASTER_SITES= http://www.nersc.gov/~xiaoye/SuperLU/ + +MAINTAINER= jtb@netbsd.org +HOMEPAGE= http://www.nersc.gov/~xiaoye/SuperLU/ + +DEPENDS+= blas-[0-9]*:../../math/blas + +WRKSRC= ${WRKDIR}/SuperLU +EVAL_PREFIX+= BLAS_PREFIX=blas +ALL_TARGET= superlulib + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libsuperlu.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/SRC/supermatrix.h ${PREFIX}/include + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/superlu + ${INSTALL_DATA} ${WRKSRC}/INSTALL/ug.ps ${PREFIX}/share/doc/superlu + +.include "../../mk/bsd.pkg.mk" diff --git a/math/superlu/files/md5 b/math/superlu/files/md5 new file mode 100644 index 00000000000..75554b07cdc --- /dev/null +++ b/math/superlu/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/02/02 01:24:09 jtb Exp $ + +MD5 (superlu_2.0.tar.gz) = 7caefbcce0db31c55d64e41039318eca diff --git a/math/superlu/files/patch-sum b/math/superlu/files/patch-sum new file mode 100644 index 00000000000..f0bd5b2cf7e --- /dev/null +++ b/math/superlu/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/02/02 01:24:09 jtb Exp $ + +MD5 (patch-aa) = f63f17e70265f63adfb13ff40b3ed65d diff --git a/math/superlu/patches/patch-aa b/math/superlu/patches/patch-aa new file mode 100644 index 00000000000..fd97af5b5ef --- /dev/null +++ b/math/superlu/patches/patch-aa @@ -0,0 +1,55 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/02/02 01:24:09 jtb Exp $ + +--- make.inc.orig Tue Feb 15 21:29:45 2000 ++++ make.inc +@@ -16,30 +16,31 @@ + # + # The machine (platform) identifier to append to the library names + # +-PLAT = _solaris ++PLAT = + + # + # The name of the libraries to be created/linked to + # +-TMGLIB = tmglib$(PLAT).a +-SUPERLULIB = superlu$(PLAT).a +-BLASLIB = ../blas$(PLAT).a ++TMGLIB = tmglib.a ++SUPERLULIB = libsuperlu.a ++BLASDEF = -DUSE_VENDOR_BLAS ++BLASLIB = -L${BLAS_PREFIX}/lib -lblas + + # + # The archiver and the flag(s) to use when building archive (library) + # If your system has no ranlib, set RANLIB = echo. + # +-ARCH = ar +-ARCHFLAGS = cr +-RANLIB = ranlib ++ARCH = $(AR) ++ARCHFLAGS = cru ++#RANLIB = ranlib + +-CC = cc +-CFLAGS = -xO3 -xcg92 ++# CC = cc ++#CFLAGS = -xO3 -xcg92 + #CFLAGS = -Wall -O2 +-FORTRAN = f77 +-FFLAGS = -O +-LOADER = cc +-LOADOPTS = #-xO3 ++FORTRAN = $(FC) ++#FFLAGS = -O ++LOADER = $(CC) ++LOADOPTS = $(LDFLAGS) + + # + # C preprocessor defs for compilation (-DNoChange, -DAdd_, or -DUpCase) +@@ -48,4 +49,4 @@ + # + # The directory in which Matlab is installed + # +-MATLAB = /usr/sww/matlab ++# MATLAB = /usr/sww/matlab diff --git a/math/superlu/pkg/COMMENT b/math/superlu/pkg/COMMENT new file mode 100644 index 00000000000..f73d990fcfb --- /dev/null +++ b/math/superlu/pkg/COMMENT @@ -0,0 +1 @@ +ANSI C routine library for the solution of sparse linear systems diff --git a/math/superlu/pkg/DESCR b/math/superlu/pkg/DESCR new file mode 100644 index 00000000000..ff615a572a1 --- /dev/null +++ b/math/superlu/pkg/DESCR @@ -0,0 +1,8 @@ +SuperLU contains a set of subroutines to solve a sparse linear system +A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The +columns of A may be preordered before factorization; the preordering +for sparsity is completely separate from the factorization. + +SuperLU is implemented in ANSI C, and must be compiled with standard +ANSI C compilers. It provides functionality for both real and complex +matrices, in both single and double precision. diff --git a/math/superlu/pkg/PLIST b/math/superlu/pkg/PLIST new file mode 100644 index 00000000000..7ce3deb0be0 --- /dev/null +++ b/math/superlu/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/02 01:24:09 jtb Exp $ +include/supermatrix.h +lib/libsuperlu.a +share/doc/superlu/ug.ps +@dirrm share/doc/superlu -- cgit v1.2.3