mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
libraries/UFconfig: Added (SuiteSparse common library)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
0a1ad7bde5
commit
014e328575
5 changed files with 160 additions and 0 deletions
3
libraries/UFconfig/README
Normal file
3
libraries/UFconfig/README
Normal file
|
@ -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.
|
76
libraries/UFconfig/UFconfig.SlackBuild
Normal file
76
libraries/UFconfig/UFconfig.SlackBuild
Normal file
|
@ -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}
|
10
libraries/UFconfig/UFconfig.info
Normal file
10
libraries/UFconfig/UFconfig.info
Normal file
|
@ -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"
|
52
libraries/UFconfig/autotoolize.diff
Normal file
52
libraries/UFconfig/autotoolize.diff
Normal file
|
@ -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)
|
19
libraries/UFconfig/slack-desc
Normal file
19
libraries/UFconfig/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue