summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-08-24 00:03:34 -0400
committerErik Hanson <erik@slackbuilds.org>2010-08-29 15:32:11 -0500
commitdc0ae3d41494863aa4c6367aefaa76a2ce0fe35f (patch)
tree445f02b7ee82b65de1db56eed97baaa20a90d5f2 /libraries
parent75441e0412cc400f65323a602e6196fe510ca5a8 (diff)
downloadslackbuilds-dc0ae3d41494863aa4c6367aefaa76a2ce0fe35f.tar.gz
libraries/CXSparse: Added (sparse matrix routines)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/CXSparse/CXSparse.SlackBuild76
-rw-r--r--libraries/CXSparse/CXSparse.info10
-rw-r--r--libraries/CXSparse/README6
-rw-r--r--libraries/CXSparse/autotoolize.diff287
-rw-r--r--libraries/CXSparse/slack-desc19
5 files changed, 398 insertions, 0 deletions
diff --git a/libraries/CXSparse/CXSparse.SlackBuild b/libraries/CXSparse/CXSparse.SlackBuild
new file mode 100644
index 0000000000..0395eecec5
--- /dev/null
+++ b/libraries/CXSparse/CXSparse.SlackBuild
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+# Slackware build script for CXSparse
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+PRGNAM=CXSparse
+VERSION=${VERSION:-2.2.4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$(uname -m) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="README.txt Doc/ChangeLog Doc/License.txt Doc/lesser.txt"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM
+chown -R root:root .
+chmod -R u+w,go+r-w,a-st .
+
+patch -p1 < $CWD/autotoolize.diff
+autoreconf -vif
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/CXSparse/CXSparse.info b/libraries/CXSparse/CXSparse.info
new file mode 100644
index 0000000000..fb8815a558
--- /dev/null
+++ b/libraries/CXSparse/CXSparse.info
@@ -0,0 +1,10 @@
+PRGNAM="CXSparse"
+VERSION="2.2.4"
+HOMEPAGE="http://www.cise.ufl.edu/research/sparse/CXSparse/"
+DOWNLOAD="http://www.cise.ufl.edu/research/sparse/CXSparse/versions/CXSparse-2.2.4.tar.gz"
+MD5SUM="043286037931a96b379b40bf89e44317"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="dsomero"
diff --git a/libraries/CXSparse/README b/libraries/CXSparse/README
new file mode 100644
index 0000000000..a09c32079f
--- /dev/null
+++ b/libraries/CXSparse/README
@@ -0,0 +1,6 @@
+CXSparse is an extended version of CSparse, with support for double or
+complex matrices, with int or long integers.
+
+This package is part of SuiteSparse.
+
+Requires UFconfig.
diff --git a/libraries/CXSparse/autotoolize.diff b/libraries/CXSparse/autotoolize.diff
new file mode 100644
index 0000000000..9588bae1ef
--- /dev/null
+++ b/libraries/CXSparse/autotoolize.diff
@@ -0,0 +1,287 @@
+diff --git a/Demo/Makefile.am b/Demo/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Demo/Makefile.am
+@@ -0,0 +1,131 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++LDADD = $(top_builddir)/Source/libcxsparse.la
++
++noinst_HEADERS = \
++ cs_demo.h \
++ cs_ci_demo.h \
++ cs_cl_demo.h \
++ cs_di_demo.h \
++ cs_dl_demo.h
++
++check_PROGRAMS = \
++ cs_demo1 \
++ cs_demo2 \
++ cs_demo3 \
++ cs_ci_demo1 \
++ cs_ci_demo2 \
++ cs_ci_demo3 \
++ cs_cl_demo1 \
++ cs_cl_demo2 \
++ cs_cl_demo3 \
++ cs_di_demo1 \
++ cs_di_demo2 \
++ cs_di_demo3 \
++ cs_dl_demo1 \
++ cs_dl_demo2 \
++ cs_dl_demo3 \
++ cs_idemo \
++ cs_ldemo
++
++cs_demo1_SOURCES = cs_demo1.c
++cs_demo2_SOURCES = cs_demo2.c cs_demo.c
++cs_demo3_SOURCES = cs_demo3.c cs_demo.c
++cs_ci_demo1_SOURCES = cs_ci_demo1.c
++cs_ci_demo2_SOURCES = cs_ci_demo2.c cs_ci_demo.c
++cs_ci_demo3_SOURCES = cs_ci_demo3.c cs_ci_demo.c
++cs_cl_demo1_SOURCES = cs_cl_demo1.c
++cs_cl_demo2_SOURCES = cs_cl_demo2.c cs_cl_demo.c
++cs_cl_demo3_SOURCES = cs_cl_demo3.c cs_cl_demo.c
++cs_di_demo1_SOURCES = cs_di_demo1.c
++cs_di_demo2_SOURCES = cs_di_demo2.c cs_di_demo.c
++cs_di_demo3_SOURCES = cs_di_demo3.c cs_di_demo.c
++cs_dl_demo1_SOURCES = cs_dl_demo1.c
++cs_dl_demo2_SOURCES = cs_dl_demo2.c cs_dl_demo.c
++cs_dl_demo3_SOURCES = cs_dl_demo3.c cs_dl_demo.c
++
++cs_idemo_SOURCES = cs_idemo.c
++cs_ldemo_SOURCES = cs_ldemo.c
++cs_ldemo_CPPFLAGS = $(AM_CPPFLAGS) -DCS_LONG
++
++MATRICES = \
++ ../Matrix/ash219 \
++ ../Matrix/bcsstk01 \
++ ../Matrix/bcsstk16 \
++ ../Matrix/c4 \
++ ../Matrix/c_mbeacxc \
++ ../Matrix/c_west0067 \
++ ../Matrix/fs_183_1 \
++ ../Matrix/lp_afiro \
++ ../Matrix/mbeacxc \
++ ../Matrix/mhd1280b \
++ ../Matrix/neumann \
++ ../Matrix/qc324 \
++ ../Matrix/t1 \
++ ../Matrix/t2 \
++ ../Matrix/t3 \
++ ../Matrix/t4 \
++ ../Matrix/west0067 \
++ ../Matrix/young1c
++
++check-local: $(check_PROGRAMS) $(MATRICES)
++ -./cs_demo1 < ../Matrix/t1
++ -./cs_demo2 < ../Matrix/t1
++ -./cs_demo2 < ../Matrix/fs_183_1
++ -./cs_demo2 < ../Matrix/west0067
++ -./cs_demo2 < ../Matrix/lp_afiro
++ -./cs_demo2 < ../Matrix/ash219
++ -./cs_demo2 < ../Matrix/mbeacxc
++ -./cs_demo2 < ../Matrix/bcsstk01
++ -./cs_demo3 < ../Matrix/bcsstk01
++ -./cs_demo2 < ../Matrix/bcsstk16
++ -./cs_demo3 < ../Matrix/bcsstk16
++ -./cs_di_demo1 < ../Matrix/t1
++ -./cs_di_demo2 < ../Matrix/t1
++ -./cs_di_demo2 < ../Matrix/fs_183_1
++ -./cs_di_demo2 < ../Matrix/west0067
++ -./cs_di_demo2 < ../Matrix/lp_afiro
++ -./cs_di_demo2 < ../Matrix/ash219
++ -./cs_di_demo2 < ../Matrix/mbeacxc
++ -./cs_di_demo2 < ../Matrix/bcsstk01
++ -./cs_di_demo3 < ../Matrix/bcsstk01
++ -./cs_di_demo2 < ../Matrix/bcsstk16
++ -./cs_di_demo3 < ../Matrix/bcsstk16
++ -./cs_dl_demo1 < ../Matrix/t1
++ -./cs_dl_demo2 < ../Matrix/t1
++ -./cs_dl_demo2 < ../Matrix/fs_183_1
++ -./cs_dl_demo2 < ../Matrix/west0067
++ -./cs_dl_demo2 < ../Matrix/lp_afiro
++ -./cs_dl_demo2 < ../Matrix/ash219
++ -./cs_dl_demo2 < ../Matrix/mbeacxc
++ -./cs_dl_demo2 < ../Matrix/bcsstk01
++ -./cs_dl_demo3 < ../Matrix/bcsstk01
++ -./cs_dl_demo2 < ../Matrix/bcsstk16
++ -./cs_dl_demo3 < ../Matrix/bcsstk16
++ -./cs_ci_demo1 < ../Matrix/t2
++ -./cs_ci_demo2 < ../Matrix/t2
++ -./cs_ci_demo2 < ../Matrix/t3
++ -./cs_ci_demo2 < ../Matrix/t4
++ -./cs_ci_demo2 < ../Matrix/c_west0067
++ -./cs_ci_demo2 < ../Matrix/c_mbeacxc
++ -./cs_ci_demo2 < ../Matrix/young1c
++ -./cs_ci_demo2 < ../Matrix/qc324
++ -./cs_ci_demo2 < ../Matrix/neumann
++ -./cs_ci_demo2 < ../Matrix/c4
++ -./cs_ci_demo3 < ../Matrix/c4
++ -./cs_ci_demo2 < ../Matrix/mhd1280b
++ -./cs_ci_demo3 < ../Matrix/mhd1280b
++ -./cs_cl_demo1 < ../Matrix/t2
++ -./cs_cl_demo2 < ../Matrix/t2
++ -./cs_cl_demo2 < ../Matrix/t3
++ -./cs_cl_demo2 < ../Matrix/t4
++ -./cs_cl_demo2 < ../Matrix/c_west0067
++ -./cs_cl_demo2 < ../Matrix/c_mbeacxc
++ -./cs_cl_demo2 < ../Matrix/young1c
++ -./cs_cl_demo2 < ../Matrix/qc324
++ -./cs_cl_demo2 < ../Matrix/neumann
++ -./cs_cl_demo2 < ../Matrix/c4
++ -./cs_cl_demo3 < ../Matrix/c4
++ -./cs_cl_demo2 < ../Matrix/mhd1280b
++ -./cs_cl_demo3 < ../Matrix/mhd1280b
++ -./cs_idemo < ../Matrix/t2
++ -./cs_ldemo < ../Matrix/t2
+diff --git a/Makefile.am b/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Makefile.am
+@@ -0,0 +1,5 @@
++SUBDIRS = Source Matrix Demo
++EXTRA_DIST = README.txt Doc/ChangeLog Doc/License.txt Doc/lesser.txt
++
++pkgincludedir = $(includedir)/cxsparse
++pkginclude_HEADERS = Include/cs.h
+diff --git a/Matrix/Makefile.am b/Matrix/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Matrix/Makefile.am
+@@ -0,0 +1,23 @@
++dist_noinst_DATA = \
++ ash219 \
++ bcsstk01 \
++ bcsstk16 \
++ c4 \
++ c_ibm32a \
++ c_ibm32b \
++ c_mbeacxc \
++ c_west0067 \
++ fs_183_1 \
++ ibm32a \
++ ibm32b \
++ lp_afiro \
++ mbeacxc \
++ mhd1280b \
++ neumann \
++ qc324 \
++ t1 \
++ t2 \
++ t3 \
++ t4 \
++ west0067 \
++ young1c
+diff --git a/Source/Makefile.am b/Source/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Source/Makefile.am
+@@ -0,0 +1,72 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++
++CS_SOURCE = \
++ cs_add.c \
++ cs_amd.c \
++ cs_chol.c \
++ cs_cholsol.c \
++ cs_compress.c \
++ cs_counts.c \
++ cs_cumsum.c \
++ cs_dfs.c \
++ cs_dmperm.c \
++ cs_droptol.c \
++ cs_dropzeros.c \
++ cs_dupl.c \
++ cs_entry.c \
++ cs_ereach.c \
++ cs_etree.c \
++ cs_fkeep.c \
++ cs_gaxpy.c \
++ cs_happly.c \
++ cs_house.c \
++ cs_ipvec.c \
++ cs_leaf.c \
++ cs_load.c \
++ cs_lsolve.c \
++ cs_ltsolve.c \
++ cs_lu.c \
++ cs_lusol.c \
++ cs_malloc.c \
++ cs_maxtrans.c \
++ cs_multiply.c \
++ cs_norm.c \
++ cs_permute.c \
++ cs_pinv.c \
++ cs_post.c \
++ cs_print.c \
++ cs_pvec.c \
++ cs_qr.c \
++ cs_qrsol.c \
++ cs_randperm.c \
++ cs_reach.c \
++ cs_scatter.c \
++ cs_scc.c \
++ cs_schol.c \
++ cs_spsolve.c \
++ cs_sqr.c \
++ cs_symperm.c \
++ cs_tdfs.c \
++ cs_transpose.c \
++ cs_updown.c \
++ cs_usolve.c \
++ cs_util.c \
++ cs_utsolve.c
++
++lib_LTLIBRARIES = libcxsparse.la
++noinst_LTLIBRARIES = libcxsparse_di.la libcxsparse_dl.la libcxsparse_ci.la libcxsparse_cl.la
++
++libcxsparse_di_la_SOURCES = $(CS_SOURCE)
++
++libcxsparse_dl_la_SOURCES = $(CS_SOURCE)
++libcxsparse_dl_la_CPPFLAGS = $(AM_CPPFLAGS) -DCS_LONG
++
++libcxsparse_ci_la_SOURCES = $(CS_SOURCE)
++libcxsparse_ci_la_CPPFLAGS = $(AM_CPPFLAGS) -DCS_COMPLEX
++
++libcxsparse_cl_la_SOURCES = $(CS_SOURCE)
++libcxsparse_cl_la_CPPFLAGS = $(AM_CPPFLAGS) -DCS_LONG -DCS_COMPLEX
++
++libcxsparse_la_SOURCES = cs_convert.c
++libcxsparse_la_LIBADD = libcxsparse_di.la libcxsparse_dl.la libcxsparse_ci.la libcxsparse_cl.la -lm
++libcxsparse_la_LDFLAGS = -no-undefined -version-info 4:4:2
+diff --git a/configure.ac b/configure.ac
+new file mode 100644
+--- /dev/null
++++ b/configure.ac
+@@ -0,0 +1,31 @@
++AC_PREREQ([2.65])
++AC_INIT([CXSparse], [2.2.4], [davis@cise.ufl.edu])
++AC_CONFIG_SRCDIR([Source/cs_print.c])
++AC_CONFIG_HEADER([config.h])
++AM_INIT_AUTOMAKE([foreign])
++LT_INIT
++
++AC_PROG_INSTALL
++AC_PROG_CC
++
++LIBS_SAVED=$LIBS
++
++AC_CHECK_LIB([m], [sqrt])
++
++AC_CHECK_HEADERS([limits.h stdlib.h])
++AC_CHECK_HEADERS([UFconfig.h])
++
++AC_TYPE_SIZE_T
++
++AC_FUNC_MALLOC
++AC_FUNC_REALLOC
++AC_CHECK_FUNCS([sqrt])
++
++LIBS=$LIBS_SAVED
++
++AC_CONFIG_FILES([
++ Makefile
++ Demo/Makefile
++ Matrix/Makefile
++ Source/Makefile])
++AC_OUTPUT
diff --git a/libraries/CXSparse/slack-desc b/libraries/CXSparse/slack-desc
new file mode 100644
index 0000000000..771139f36d
--- /dev/null
+++ b/libraries/CXSparse/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+CXSparse: CXSparse (sparse matrix routines)
+CXSparse:
+CXSparse: CXSparse is an extended version of CSparse, with support for
+CXSparse: double or complex matrices, with int or long integers.
+CXSparse:
+CXSparse:
+CXSparse:
+CXSparse:
+CXSparse:
+CXSparse:
+CXSparse: