summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-08-24 00:00:30 -0400
committerErik Hanson <erik@slackbuilds.org>2010-08-29 15:32:10 -0500
commitd0b90b7f56bc9907fe9f5ff0b844699c7cb274c2 (patch)
treea35a4299b8e2090e1f5b5ee0b2edfd3e9d1054b6
parente0c8574392f4d22565e8a968645adf8a7c438539 (diff)
downloadslackbuilds-d0b90b7f56bc9907fe9f5ff0b844699c7cb274c2.tar.gz
libraries/CAMD: Added (sparse matrix ordering routines)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r--libraries/CAMD/CAMD.SlackBuild76
-rw-r--r--libraries/CAMD/CAMD.info10
-rw-r--r--libraries/CAMD/README6
-rw-r--r--libraries/CAMD/autotoolize.diff137
-rw-r--r--libraries/CAMD/slack-desc19
5 files changed, 248 insertions, 0 deletions
diff --git a/libraries/CAMD/CAMD.SlackBuild b/libraries/CAMD/CAMD.SlackBuild
new file mode 100644
index 0000000000..8bfe65ece7
--- /dev/null
+++ b/libraries/CAMD/CAMD.SlackBuild
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+# Slackware build script for CAMD
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+PRGNAM=CAMD
+VERSION=${VERSION:-2.2.1}
+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 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/CAMD/CAMD.info b/libraries/CAMD/CAMD.info
new file mode 100644
index 0000000000..7e52e5ff59
--- /dev/null
+++ b/libraries/CAMD/CAMD.info
@@ -0,0 +1,10 @@
+PRGNAM="CAMD"
+VERSION="2.2.1"
+HOMEPAGE="http://www.cise.ufl.edu/research/sparse/camd/"
+DOWNLOAD="http://www.cise.ufl.edu/research/sparse/camd/CAMD-2.2.1.tar.gz"
+MD5SUM="5cdcc478f544fb672d8f4fade3b5f3a6"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="dsomero"
diff --git a/libraries/CAMD/README b/libraries/CAMD/README
new file mode 100644
index 0000000000..f2e8a6df5b
--- /dev/null
+++ b/libraries/CAMD/README
@@ -0,0 +1,6 @@
+CAMD is a set of routines for ordering a sparse matrix prior to Cholesky
+factorization (or for LU factorization with diagonal pivoting).
+
+This package is part of SuiteSparse.
+
+Requires UFconfig.
diff --git a/libraries/CAMD/autotoolize.diff b/libraries/CAMD/autotoolize.diff
new file mode 100644
index 0000000000..fe00b5d65a
--- /dev/null
+++ b/libraries/CAMD/autotoolize.diff
@@ -0,0 +1,137 @@
+diff --git a/Demo/Makefile.am b/Demo/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Demo/Makefile.am
+@@ -0,0 +1,37 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++LDADD = $(top_builddir)/Source/libcamd.la
++
++EXTRA_DIST = \
++ camd_demo.out \
++ camd_demo2.out \
++ camd_l_demo.out \
++ camd_simple.out
++
++# Disable the .out implicit pattern rule. Prevents GNU make from
++# adding bogus dependencies for the .out files listed above.
++%.out: %
++
++check_PROGRAMS = \
++ camd_demo \
++ camd_demo2 \
++ camd_l_demo \
++ camd_simple
++
++camd_demo_SOURCES = camd_demo.c
++camd_demo2_SOURCES = camd_demo2.c
++camd_l_demo_SOURCES = camd_l_demo.c
++camd_simple_SOURCES = camd_simple.c
++
++check-local: $(check_PROGRAMS) $(check_PROGRAMS:=.out)
++ @for i in $(check_PROGRAMS); do \
++ echo "Testing $$i"; \
++ ./$$i$(EXEEXT) > my_$$i.out; \
++ if diff -u $$i.out my_$$i.out; then \
++ echo "Test $$i PASSED."; \
++ else \
++ echo "Test $$i FAILED."; \
++ fi; \
++ done
++
++clean-local:
++ -$(RM) my_*.out
+diff --git a/Doc/Makefile.am b/Doc/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Doc/Makefile.am
+@@ -0,0 +1,14 @@
++EXTRA_DIST = ChangeLog License lesser.txt
++
++dist_noinst_SCRIPTS = cdiff docdiff
++dist_noinst_DATA = CAMD_UserGuide.tex CAMD_UserGuide.bib camd.sed
++pdf_DATA = CAMD_UserGuide.pdf
++
++%.pdf: %.tex %.bib
++ pdflatex $*
++ bibtex $*
++ pdflatex $*
++ pdflatex $*
++
++clean-local:
++ -$(RM) *.aux *.bbl *.blg *.log *.toc
+diff --git a/Makefile.am b/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Makefile.am
+@@ -0,0 +1,3 @@
++SUBDIRS = Source Demo Doc
++EXTRA_DIST = README.txt
++include_HEADERS = Include/camd.h Include/camd_internal.h
+diff --git a/Source/Makefile.am b/Source/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Source/Makefile.am
+@@ -0,0 +1,29 @@
++AM_CPPFLAGS = -I$(top_srcdir)/Include
++
++CAMDSRC = \
++ camd_1.c \
++ camd_2.c \
++ camd_aat.c \
++ camd_control.c \
++ camd_defaults.c \
++ camd_dump.c \
++ camd_info.c \
++ camd_order.c \
++ camd_postorder.c \
++ camd_preprocess.c \
++ camd_valid.c
++
++lib_LTLIBRARIES = libcamd.la
++noinst_LTLIBRARIES = libcamdi.la libcamdl.la
++
++libcamdi_la_SOURCES = $(CAMDSRC)
++libcamdi_la_LIBADD = -lm
++libcamdi_la_CPPFLAGS = $(AM_CPPFLAGS) -DDINT
++
++libcamdl_la_SOURCES = $(CAMDSRC)
++libcamdl_la_LIBADD = -lm
++libcamdl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG
++
++libcamd_la_SOURCES = camd_global.c
++libcamd_la_LIBADD = libcamdl.la libcamdi.la
++libcamd_la_LDFLAGS = -no-undefined -version-info 4:1:2
+diff --git a/configure.ac b/configure.ac
+new file mode 100644
+--- /dev/null
++++ b/configure.ac
+@@ -0,0 +1,29 @@
++AC_PREREQ([2.65])
++AC_INIT([CAMD], [2.2.1], [davis@cise.ufl.edu])
++AC_CONFIG_SRCDIR([Source/camd_global.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 stddef.h stdlib.h])
++AC_CHECK_HEADERS([UFconfig.h])
++
++AC_TYPE_SIZE_T
++
++AC_CHECK_FUNCS([sqrt])
++
++LIBS=$LIBS_SAVED
++
++AC_CONFIG_FILES([
++ Makefile
++ Demo/Makefile
++ Doc/Makefile
++ Source/Makefile])
++AC_OUTPUT
diff --git a/libraries/CAMD/slack-desc b/libraries/CAMD/slack-desc
new file mode 100644
index 0000000000..b5622b0f76
--- /dev/null
+++ b/libraries/CAMD/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------------------------------------------------------|
+CAMD: CAMD (sparse matrix ordering routines)
+CAMD:
+CAMD: CAMD is a set of routines for ordering a sparse matrix prior to
+CAMD: Cholesky factorization (or for LU factorization with diagonal
+CAMD: pivoting).
+CAMD:
+CAMD:
+CAMD:
+CAMD:
+CAMD:
+CAMD: