libraries/CSparse: Updated for version 2.2.5.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Kyle Guinn 2011-05-31 21:49:31 -04:00 committed by Robby Workman
parent cece546129
commit 4f98c71e04
3 changed files with 42 additions and 12 deletions

View file

@ -4,7 +4,7 @@
# Written by Kyle Guinn <elyk03@gmail.com> # Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM=CSparse PRGNAM=CSparse
VERSION=${VERSION:-2.2.4} VERSION=${VERSION:-2.2.5}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -37,6 +37,9 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
# Recommended by SuiteSparse
SLKCFLAGS="$SLKCFLAGS -fexceptions -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
set -e set -e
rm -rf $PKG rm -rf $PKG
@ -52,14 +55,16 @@ patch -p1 < $CWD/autotoolize.diff
autoreconf -vif autoreconf -vif
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--infodir=/usr/info \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-shared \
--disable-static \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make

View file

@ -1,8 +1,8 @@
PRGNAM="CSparse" PRGNAM="CSparse"
VERSION="2.2.4" VERSION="2.2.5"
HOMEPAGE="http://www.cise.ufl.edu/research/sparse/CSparse/" HOMEPAGE="http://www.cise.ufl.edu/research/sparse/CSparse/"
DOWNLOAD="http://www.cise.ufl.edu/research/sparse/CSparse/versions/CSparse-2.2.4.tar.gz" DOWNLOAD="http://www.cise.ufl.edu/research/sparse/CSparse/versions/CSparse-2.2.5.tar.gz"
MD5SUM="99b02361ba0083427ef16ca9610b7e76" MD5SUM="74da840c9de1312e5575d0b21b00b12e"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn" MAINTAINER="Kyle Guinn"

View file

@ -49,16 +49,23 @@ new file mode 100644
+ -./cs_demo2 < ../Matrix/bcsstk16 + -./cs_demo2 < ../Matrix/bcsstk16
+ -./cs_demo3 < ../Matrix/bcsstk01 + -./cs_demo3 < ../Matrix/bcsstk01
+ -./cs_demo3 < ../Matrix/bcsstk16 + -./cs_demo3 < ../Matrix/bcsstk16
diff --git a/Include/Makefile.am b/Include/Makefile.am
new file mode 100644
--- /dev/null
+++ b/Include/Makefile.am
@@ -0,0 +1,2 @@
+pkgincludedir = $(includedir)/csparse
+pkginclude_HEADERS = cs.h
diff --git a/Makefile.am b/Makefile.am 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,5 @@ @@ -0,0 +1,5 @@
+SUBDIRS = Source Matrix Demo +SUBDIRS = Include Source Matrix Demo
+EXTRA_DIST = README.txt Doc/ChangeLog Doc/License.txt Doc/lesser.txt +EXTRA_DIST = README.txt Doc/ChangeLog Doc/License.txt Doc/lesser.txt
+ +
+pkgincludedir = $(includedir)/csparse +pkgconfigdir = $(libdir)/pkgconfig
+pkginclude_HEADERS = Include/cs.h +pkgconfig_DATA = csparse.pc
diff --git a/Matrix/Makefile.am b/Matrix/Makefile.am diff --git a/Matrix/Makefile.am b/Matrix/Makefile.am
new file mode 100644 new file mode 100644
--- /dev/null --- /dev/null
@ -141,14 +148,14 @@ new file mode 100644
+lib_LTLIBRARIES = libcsparse.la +lib_LTLIBRARIES = libcsparse.la
+libcsparse_la_SOURCES = $(CSPARSESRC) +libcsparse_la_SOURCES = $(CSPARSESRC)
+libcsparse_la_LIBADD = -lm +libcsparse_la_LIBADD = -lm
+libcsparse_la_LDFLAGS = -no-undefined -version-info 4:4:2 +libcsparse_la_LDFLAGS = -no-undefined -version-info 4:5:2
diff --git a/configure.ac b/configure.ac 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,30 @@ @@ -0,0 +1,32 @@
+AC_PREREQ([2.65]) +AC_PREREQ([2.68])
+AC_INIT([CSparse], [2.2.4], [davis@cise.ufl.edu]) +AC_INIT([CSparse],[2.2.5],[davis@cise.ufl.edu])
+AC_CONFIG_SRCDIR([Source/cs_print.c]) +AC_CONFIG_SRCDIR([Source/cs_print.c])
+AC_CONFIG_HEADER([config.h]) +AC_CONFIG_HEADER([config.h])
+AM_INIT_AUTOMAKE([foreign]) +AM_INIT_AUTOMAKE([foreign])
@ -172,8 +179,26 @@ new file mode 100644
+LIBS=$LIBS_SAVED +LIBS=$LIBS_SAVED
+ +
+AC_CONFIG_FILES([ +AC_CONFIG_FILES([
+ csparse.pc
+ Makefile + Makefile
+ Demo/Makefile + Demo/Makefile
+ Include/Makefile
+ Matrix/Makefile + Matrix/Makefile
+ Source/Makefile]) + Source/Makefile])
+AC_OUTPUT +AC_OUTPUT
diff --git a/csparse.pc.in b/csparse.pc.in
new file mode 100644
--- /dev/null
+++ b/csparse.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Description: A concise sparse matrix package
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lcsparse
+Libs.private: -lm
+Cflags: -I${includedir}/csparse