diff options
-rw-r--r-- | libraries/BTF/BTF.SlackBuild | 76 | ||||
-rw-r--r-- | libraries/BTF/BTF.info | 10 | ||||
-rw-r--r-- | libraries/BTF/README | 7 | ||||
-rw-r--r-- | libraries/BTF/autotoolize.diff | 52 | ||||
-rw-r--r-- | libraries/BTF/slack-desc | 19 |
5 files changed, 164 insertions, 0 deletions
diff --git a/libraries/BTF/BTF.SlackBuild b/libraries/BTF/BTF.SlackBuild new file mode 100644 index 0000000000..b1b413a834 --- /dev/null +++ b/libraries/BTF/BTF.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/sh + +# Slackware build script for BTF +# Written by Kyle Guinn <elyk03@gmail.com> + +PRGNAM=BTF +VERSION=${VERSION:-1.1.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/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/BTF/BTF.info b/libraries/BTF/BTF.info new file mode 100644 index 0000000000..ba87114644 --- /dev/null +++ b/libraries/BTF/BTF.info @@ -0,0 +1,10 @@ +PRGNAM="BTF" +VERSION="1.1.1" +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/btf/" +DOWNLOAD="http://www.cise.ufl.edu/research/sparse/btf/BTF-1.1.1.tar.gz" +MD5SUM="dc7127df9d208ffd10cafcbbb343ab0c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Kyle Guinn" +EMAIL="elyk03@gmail.com" +APPROVED="dsomero" diff --git a/libraries/BTF/README b/libraries/BTF/README new file mode 100644 index 0000000000..6bfdf25c11 --- /dev/null +++ b/libraries/BTF/README @@ -0,0 +1,7 @@ +BTF permutes an unsymmetric matrix (square or rectangular) into its block +upper triangular form (more precisely, it computes a Dulmage-Mendelsohn +decomposition). + +This package is part of SuiteSparse. + +Requires UFconfig. diff --git a/libraries/BTF/autotoolize.diff b/libraries/BTF/autotoolize.diff new file mode 100644 index 0000000000..8d07052b0a --- /dev/null +++ b/libraries/BTF/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,3 @@ ++SUBDIRS = Source ++EXTRA_DIST = README.txt Doc/ChangeLog Doc/lesser.txt ++include_HEADERS = Include/btf.h Include/btf_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,18 @@ ++AM_CPPFLAGS = -I$(top_srcdir)/Include ++ ++BTFSRC = \ ++ btf_maxtrans.c \ ++ btf_order.c \ ++ btf_strongcomp.c ++ ++lib_LTLIBRARIES = libbtf.la ++noinst_LTLIBRARIES = libbtfi.la libbtfl.la ++ ++libbtfi_la_SOURCES = $(BTFSRC) ++ ++libbtfl_la_SOURCES = $(BTFSRC) ++libbtfl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG ++ ++libbtf_la_SOURCES = ++libbtf_la_LIBADD = libbtfi.la libbtfl.la ++libbtf_la_LDFLAGS = -no-undefined -version-info 2:1:1 +diff --git a/configure.ac b/configure.ac +new file mode 100644 +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,16 @@ ++AC_PREREQ([2.65]) ++AC_INIT([BTF], [1.1.1], [davis@cise.ufl.edu]) ++AC_CONFIG_SRCDIR([Source/btf_order.c]) ++AC_CONFIG_HEADER([config.h]) ++AM_INIT_AUTOMAKE([foreign]) ++LT_INIT ++ ++AC_PROG_INSTALL ++AC_PROG_CC ++ ++AC_CHECK_HEADERS([UFconfig.h]) ++ ++AC_CONFIG_FILES([ ++ Makefile ++ Source/Makefile]) ++AC_OUTPUT diff --git a/libraries/BTF/slack-desc b/libraries/BTF/slack-desc new file mode 100644 index 0000000000..3e1274958e --- /dev/null +++ b/libraries/BTF/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------------------------------------------------------| +BTF: BTF (matrix permuting routines) +BTF: +BTF: BTF permutes an unsymmetric matrix (square or rectangular) into its +BTF: block upper triangular form (more precisely, it computes a +BTF: Dulmage-Mendelsohn decomposition). +BTF: +BTF: +BTF: +BTF: +BTF: +BTF: |