academic/suitesparseconfig: Updated for version 4.5.3.

Signed-off-by: Kyle Guinn <elyk03@gmail.com>
This commit is contained in:
Kyle Guinn 2016-11-18 22:23:34 -06:00 committed by David Spencer
parent 2cd63223ba
commit d1283f4227
3 changed files with 21 additions and 17 deletions

View file

@ -2,7 +2,7 @@ diff --git a/Makefile.am b/Makefile.am
new file mode 100644 new file mode 100644
--- /dev/null --- /dev/null
+++ b/Makefile.am +++ b/Makefile.am
@@ -0,0 +1,16 @@ @@ -0,0 +1,15 @@
+SUBDIRS = xerbla +SUBDIRS = xerbla
+ +
+EXTRA_DIST = README.txt +EXTRA_DIST = README.txt
@ -12,7 +12,6 @@ new file mode 100644
+#pkginclude_HEADERS = SuiteSparse_config.h +#pkginclude_HEADERS = SuiteSparse_config.h
+include_HEADERS = SuiteSparse_config.h +include_HEADERS = SuiteSparse_config.h
+ +
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = suitesparseconfig.pc +pkgconfig_DATA = suitesparseconfig.pc
+ +
+lib_LTLIBRARIES = libsuitesparseconfig.la +lib_LTLIBRARIES = libsuitesparseconfig.la
@ -23,12 +22,12 @@ diff --git a/configure.ac b/configure.ac
new file mode 100644 new file mode 100644
--- /dev/null --- /dev/null
+++ b/configure.ac +++ b/configure.ac
@@ -0,0 +1,37 @@ @@ -0,0 +1,39 @@
+# -*- Autoconf -*- +# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script. +# Process this file with autoconf to produce a configure script.
+ +
+AC_PREREQ([2.69]) +AC_PREREQ([2.69])
+AC_INIT([SuiteSparse_config],[4.4.6],[DrTimothyAldenDavis@gmail.com],[suitesparseconfig],[http://www.suitesparse.com/]) +AC_INIT([SuiteSparse_config],[4.5.3],[DrTimothyAldenDavis@gmail.com],[suitesparseconfig],[http://www.suitesparse.com/])
+AC_CONFIG_SRCDIR([SuiteSparse_config.c]) +AC_CONFIG_SRCDIR([SuiteSparse_config.c])
+AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([foreign]) +AM_INIT_AUTOMAKE([foreign])
@ -39,7 +38,7 @@ new file mode 100644
+AC_PROG_CC +AC_PROG_CC
+AC_PROG_F77 +AC_PROG_F77
+ +
+LIBS_SAVED=$LIBS +AS_VAR_SET([LIBS_SAVED], [$LIBS])
+ +
+# Checks for libraries. +# Checks for libraries.
+AC_CHECK_LIB([m], [sqrt]) +AC_CHECK_LIB([m], [sqrt])
@ -54,12 +53,14 @@ new file mode 100644
+AC_FUNC_MALLOC +AC_FUNC_MALLOC
+AC_CHECK_FUNCS([clock_gettime sqrt]) +AC_CHECK_FUNCS([clock_gettime sqrt])
+ +
+LIBS=$LIBS_SAVED +AS_VAR_SET([LIBS], [$LIBS_SAVED])
+ +
+PKG_INSTALLDIR
+AC_CONFIG_FILES([ +AC_CONFIG_FILES([
+ suitesparseconfig.pc + suitesparseconfig.pc
+ Makefile + Makefile
+ xerbla/Makefile]) + xerbla/Makefile
+])
+AC_OUTPUT +AC_OUTPUT
diff --git a/suitesparseconfig.pc.in b/suitesparseconfig.pc.in diff --git a/suitesparseconfig.pc.in b/suitesparseconfig.pc.in
new file mode 100644 new file mode 100644

View file

@ -25,14 +25,14 @@
PRGNAM=suitesparseconfig PRGNAM=suitesparseconfig
SRCNAM=SuiteSparse SRCNAM=SuiteSparse
SUBDIR=SuiteSparse_config SUBDIR=SuiteSparse_config
VERSION=${VERSION:-4.4.6} VERSION=${VERSION:-4.5.3}
SRCVER=${SRCVER:-4.4.6} SRCVER=${SRCVER:-4.5.3}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i486 ;; i?86) ARCH=i586 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
esac esac
@ -48,6 +48,9 @@ DOCS="README.txt"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
@ -73,11 +76,9 @@ cd $SRCNAM/$SUBDIR
chown -R root:root . chown -R root:root .
chmod -R u+w,go-w,a+rX-st . chmod -R u+w,go-w,a+rX-st .
patch -p1 < $CWD/autotoolize.diff patch -p1 < $CWD/patches/autotoolize.diff
autoreconf -vif autoreconf -vif
CFLAGS="$SLKCFLAGS" \
FFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
@ -89,7 +90,9 @@ FFLAGS="$SLKCFLAGS" \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
--disable-dependency-tracking \ --disable-dependency-tracking \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux \
CFLAGS="$SLKCFLAGS" \
FFLAGS="$SLKCFLAGS" \
make make
make check make check

View file

@ -1,8 +1,8 @@
PRGNAM="suitesparseconfig" PRGNAM="suitesparseconfig"
VERSION="4.4.6" VERSION="4.5.3"
HOMEPAGE="http://faculty.cse.tamu.edu/davis/suitesparse.html" HOMEPAGE="http://faculty.cse.tamu.edu/davis/suitesparse.html"
DOWNLOAD="http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.4.6.tar.gz" DOWNLOAD="http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.3.tar.gz"
MD5SUM="131a3a5e2dee784cd946284e44ce9af2" MD5SUM="8ec57324585df3c6483ad7f556afccbd"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""