summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-08-24 00:06:14 -0400
committerErik Hanson <erik@slackbuilds.org>2010-08-29 15:32:11 -0500
commit014e3285759819dbdde45c94b94e099d0dbe10d0 (patch)
treee724d2b38da9b2c65f9fb95e8d11f7978f859dd1 /libraries
parent0a1ad7bde563d1e99ac78a0b30f54693e2684cfa (diff)
downloadslackbuilds-014e3285759819dbdde45c94b94e099d0dbe10d0.tar.gz
libraries/UFconfig: Added (SuiteSparse common library)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/UFconfig/README3
-rw-r--r--libraries/UFconfig/UFconfig.SlackBuild76
-rw-r--r--libraries/UFconfig/UFconfig.info10
-rw-r--r--libraries/UFconfig/autotoolize.diff52
-rw-r--r--libraries/UFconfig/slack-desc19
5 files changed, 160 insertions, 0 deletions
diff --git a/libraries/UFconfig/README b/libraries/UFconfig/README
new file mode 100644
index 0000000000..f470ec39f6
--- /dev/null
+++ b/libraries/UFconfig/README
@@ -0,0 +1,3 @@
+UFconfig is a common configuration library for the SuiteSparse family of
+sparse matrix packages, including SuiteSparseQR, AMD, COLAMD, CCOLAMD,
+CHOLMOD, KLU, BTF, LDL, CXSparse, RBio, and UMFPACK.
diff --git a/libraries/UFconfig/UFconfig.SlackBuild b/libraries/UFconfig/UFconfig.SlackBuild
new file mode 100644
index 0000000000..dcab743407
--- /dev/null
+++ b/libraries/UFconfig/UFconfig.SlackBuild
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+# Slackware build script for UFconfig
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+PRGNAM=UFconfig
+VERSION=${VERSION:-3.5.0}
+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"
+
+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/UFconfig/UFconfig.info b/libraries/UFconfig/UFconfig.info
new file mode 100644
index 0000000000..e4ec22c0d7
--- /dev/null
+++ b/libraries/UFconfig/UFconfig.info
@@ -0,0 +1,10 @@
+PRGNAM="UFconfig"
+VERSION="3.5.0"
+HOMEPAGE="http://www.cise.ufl.edu/research/sparse/UFconfig/"
+DOWNLOAD="http://www.cise.ufl.edu/research/sparse/UFconfig/UFconfig-3.5.0.tar.gz"
+MD5SUM="526413bbbc94f987cf79619d9110bab4"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="dsomero"
diff --git a/libraries/UFconfig/autotoolize.diff b/libraries/UFconfig/autotoolize.diff
new file mode 100644
index 0000000000..d892f083ed
--- /dev/null
+++ b/libraries/UFconfig/autotoolize.diff
@@ -0,0 +1,52 @@
+diff --git a/Makefile.am b/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/Makefile.am
+@@ -0,0 +1,9 @@
++SUBDIRS = xerbla
++
++EXTRA_DIST = README.txt
++
++include_HEADERS = UFconfig.h
++
++lib_LTLIBRARIES = libufconfig.la
++libufconfig_la_SOURCES = UFconfig.c
++libufconfig_la_LDFLAGS = -no-undefined -version-info 8:0:5
+diff --git a/configure.ac b/configure.ac
+new file mode 100644
+--- /dev/null
++++ b/configure.ac
+@@ -0,0 +1,21 @@
++AC_PREREQ([2.65])
++AC_INIT([UFconfig], [3.5.0], [davis@cise.ufl.edu])
++AC_CONFIG_SRCDIR([UFconfig.c])
++AC_CONFIG_HEADER([config.h])
++AM_INIT_AUTOMAKE([foreign])
++LT_INIT
++
++AC_PROG_INSTALL
++AC_PROG_CC
++AC_PROG_F77
++
++AC_CHECK_HEADERS([limits.h stdlib.h])
++
++AC_TYPE_SIZE_T
++
++AC_FUNC_MALLOC
++
++AC_CONFIG_FILES([
++ Makefile
++ xerbla/Makefile])
++AC_OUTPUT
+diff --git a/xerbla/Makefile.am b/xerbla/Makefile.am
+new file mode 100644
+--- /dev/null
++++ b/xerbla/Makefile.am
+@@ -0,0 +1,7 @@
++noinst_HEADERS = xerbla.h
++noinst_LTLIBRARIES = libxerbla.la libcerbla.la
++
++libxerbla_la_SOURCES = xerbla.f
++libxerbla_la_FFLAGS = $(AM_FFLAGS)
++libcerbla_la_SOURCES = xerbla.c
++libcerbla_la_CFLAGS = $(AM_CFLAGS)
diff --git a/libraries/UFconfig/slack-desc b/libraries/UFconfig/slack-desc
new file mode 100644
index 0000000000..dc0e79b508
--- /dev/null
+++ b/libraries/UFconfig/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------------------------------------------------------|
+UFconfig: UFconfig (SuiteSparse common library)
+UFconfig:
+UFconfig: UFconfig is a common configuration library for the SuiteSparse
+UFconfig: family of sparse matrix packages, including SuiteSparseQR, AMD,
+UFconfig: COLAMD, CCOLAMD, CHOLMOD, KLU, BTF, LDL, CXSparse, RBio,
+UFconfig: and UMFPACK.
+UFconfig:
+UFconfig:
+UFconfig:
+UFconfig:
+UFconfig: