diff options
author | Kyle Guinn <elyk03@gmail.com> | 2011-06-19 10:30:25 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-06-19 23:17:05 -0500 |
commit | dd030eb17685f407cef63f19118b066503f70f44 (patch) | |
tree | 0294082e3b57feadf7f2a65962d2dd3404d967ae /libraries | |
parent | d34b25d8363e9bea5af2244bbf90d6f7b64f7bfd (diff) |
libraries/KLU: Updated for version 1.1.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/KLU/KLU.SlackBuild | 9 | ||||
-rw-r--r-- | libraries/KLU/KLU.info | 6 | ||||
-rw-r--r-- | libraries/KLU/autotoolize.diff | 86 | ||||
-rw-r--r-- | libraries/KLU/slack-desc | 2 |
4 files changed, 75 insertions, 28 deletions
diff --git a/libraries/KLU/KLU.SlackBuild b/libraries/KLU/KLU.SlackBuild index d521097e48190..c3f248b845026 100644 --- a/libraries/KLU/KLU.SlackBuild +++ b/libraries/KLU/KLU.SlackBuild @@ -4,7 +4,7 @@ # Written by Kyle Guinn <elyk03@gmail.com> PRGNAM=KLU -VERSION=${VERSION:-1.1.1} +VERSION=${VERSION:-1.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -37,6 +37,9 @@ else LIBDIRSUFFIX="" fi +# Recommended by SuiteSparse +SLKCFLAGS="$SLKCFLAGS -fexceptions -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" + set -e rm -rf $PKG @@ -52,14 +55,16 @@ 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 \ + --infodir=/usr/info \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-shared \ + --disable-static \ --build=$ARCH-slackware-linux make diff --git a/libraries/KLU/KLU.info b/libraries/KLU/KLU.info index 82b73057ca135..c02f7f88efc89 100644 --- a/libraries/KLU/KLU.info +++ b/libraries/KLU/KLU.info @@ -1,8 +1,8 @@ PRGNAM="KLU" -VERSION="1.1.1" +VERSION="1.1.2" HOMEPAGE="http://www.cise.ufl.edu/research/sparse/klu/" -DOWNLOAD="http://www.cise.ufl.edu/research/sparse/klu/KLU-1.1.1.tar.gz" -MD5SUM="ab0f4faf5fe200b0286ee6a21853c414" +DOWNLOAD="http://www.cise.ufl.edu/research/sparse/klu/KLU-1.1.2.tar.gz" +MD5SUM="234ea0466d19559408bda3ab573bdef9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Kyle Guinn" diff --git a/libraries/KLU/autotoolize.diff b/libraries/KLU/autotoolize.diff index 5fd6db0b91ee3..690e34a9ed7be 100644 --- a/libraries/KLU/autotoolize.diff +++ b/libraries/KLU/autotoolize.diff @@ -3,7 +3,7 @@ new file mode 100644 --- /dev/null +++ b/Demo/Makefile.am @@ -0,0 +1,44 @@ -+AM_CPPFLAGS = -I$(top_srcdir)/Include ++AM_CPPFLAGS = -I$(top_srcdir)/Include $(AMD_CFLAGS) $(BTF_CFLAGS) $(COLAMD_CFLAGS) $(CHOLMOD_CFLAGS) +LDADD = $(top_builddir)/Source/libklu.la + +EXTRA_DIST = \ @@ -21,10 +21,10 @@ new file mode 100644 +klu_simple_SOURCES = klu_simple.c + +kludemo_SOURCES = kludemo.c -+kludemo_LDADD = $(LDADD) -lcholmod -lm ++kludemo_LDADD = $(LDADD) $(CHOLMOD_LIBS) -lm + +kluldemo_SOURCES = kluldemo.c -+kluldemo_LDADD = $(LDADD) -lcholmod -lm ++kluldemo_LDADD = $(LDADD) $(CHOLMOD_LIBS) -lm + +MATRICES = \ + ../Matrix/1c.mtx \ @@ -93,14 +93,23 @@ new file mode 100644 +#clean-local: +# -$(RM) *.aux *.bbl *.blg *.log *.toc +# -$(RM) $(SRC) +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)/klu ++pkginclude_HEADERS = klu.h klu_internal.h klu_version.h diff --git a/Makefile.am b/Makefile.am new file mode 100644 --- /dev/null +++ b/Makefile.am -@@ -0,0 +1,3 @@ -+SUBDIRS = Source User Matrix Demo Doc +@@ -0,0 +1,5 @@ ++SUBDIRS = Include Source User Matrix Demo Doc +EXTRA_DIST = README.txt -+include_HEADERS = Include/klu.h Include/klu_internal.h Include/klu_version.h ++ ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = klu.pc diff --git a/Matrix/Makefile.am b/Matrix/Makefile.am new file mode 100644 --- /dev/null @@ -122,7 +131,7 @@ new file mode 100644 --- /dev/null +++ b/Source/Makefile.am @@ -0,0 +1,40 @@ -+AM_CPPFLAGS = -I$(top_srcdir)/Include ++AM_CPPFLAGS = -I$(top_srcdir)/Include $(AMD_CFLAGS) $(BTF_CFLAGS) $(COLAMD_CFLAGS) + +noinst_LTLIBRARIES = libklud.la libkluz.la libklul.la libkluzl.la + @@ -160,29 +169,31 @@ new file mode 100644 + +lib_LTLIBRARIES = libklu.la +libklu_la_SOURCES = -+libklu_la_LIBADD = libklud.la libkluz.la libklul.la libkluzl.la -lamd -lbtf -lcolamd -+libklu_la_LDFLAGS = -no-undefined -version-info 2:1:1 ++libklu_la_LIBADD = libklud.la libkluz.la libklul.la libkluzl.la $(AMD_LIBS) $(BTF_LIBS) $(COLAMD_LIBS) ++libklu_la_LDFLAGS = -no-undefined -version-info 2:2:1 diff --git a/User/Makefile.am b/User/Makefile.am new file mode 100644 --- /dev/null +++ b/User/Makefile.am -@@ -0,0 +1,9 @@ -+AM_CPPFLAGS = -I$(top_srcdir)/Include +@@ -0,0 +1,11 @@ ++AM_CPPFLAGS = -I$(top_srcdir)/Include $(AMD_CFLAGS) $(BTF_CFLAGS) $(COLAMD_CFLAGS) $(CHOLMOD_CFLAGS) $(UFCONFIG_CFLAGS) + +EXTRA_DIST = README.txt + -+include_HEADERS = klu_cholmod.h ++pkgincludedir = $(includedir)/klu ++pkginclude_HEADERS = klu_cholmod.h ++ +lib_LTLIBRARIES = libklu_cholmod.la +libklu_cholmod_la_SOURCES = klu_cholmod.c klu_l_cholmod.c -+libklu_cholmod_la_LIBADD = -lcholmod -+libklu_cholmod_la_LDFLAGS = -no-undefined -version-info 2:1:1 ++libklu_cholmod_la_LIBADD = $(CHOLMOD_LIBS) ++libklu_cholmod_la_LDFLAGS = -no-undefined -version-info 2:2:1 diff --git a/configure.ac b/configure.ac new file mode 100644 --- /dev/null +++ b/configure.ac -@@ -0,0 +1,35 @@ -+AC_PREREQ([2.65]) -+AC_INIT([KLU], [1.1.1], [davis@cise.ufl.edu]) +@@ -0,0 +1,49 @@ ++AC_PREREQ([2.68]) ++AC_INIT([KLU],[1.1.2],[davis@cise.ufl.edu]) +AC_CONFIG_SRCDIR([Source/klu.c]) +AC_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE([foreign]) @@ -194,13 +205,25 @@ new file mode 100644 +LIBS_SAVED=$LIBS + +AC_CHECK_LIB([m], [sqrt]) -+AC_CHECK_LIB([amd], [amd_order]) -+AC_CHECK_LIB([btf], [btf_order]) -+AC_CHECK_LIB([colamd], [colamd_recommended]) -+AC_CHECK_LIB([cholmod], [cholmod_start]) + +AC_CHECK_HEADERS([limits.h stdlib.h]) -+AC_CHECK_HEADERS([UFconfig.h]) ++ ++PKG_PROG_PKG_CONFIG ++PKG_CHECK_MODULES([UFCONFIG],[ufconfig], ++ [], ++ [AC_MSG_ERROR([cannot find ufconfig])]) ++PKG_CHECK_MODULES([AMD],[amd], ++ [], ++ [AC_MSG_ERROR([cannot find amd])]) ++PKG_CHECK_MODULES([BTF],[btf], ++ [], ++ [AC_MSG_ERROR([cannot find btf])]) ++PKG_CHECK_MODULES([COLAMD],[colamd], ++ [], ++ [AC_MSG_ERROR([cannot find colamd])]) ++PKG_CHECK_MODULES([CHOLMOD],[cholmod], ++ [], ++ [AC_MSG_ERROR([cannot find cholmod])]) + +AC_TYPE_SIZE_T + @@ -209,10 +232,29 @@ new file mode 100644 +LIBS=$LIBS_SAVED + +AC_CONFIG_FILES([ ++ klu.pc + Makefile + Demo/Makefile + Doc/Makefile ++ Include/Makefile + Matrix/Makefile + Source/Makefile + User/Makefile]) +AC_OUTPUT +diff --git a/klu.pc.in b/klu.pc.in +new file mode 100644 +--- /dev/null ++++ b/klu.pc.in +@@ -0,0 +1,12 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: @PACKAGE_NAME@ ++Description: Sparse LU factorization for circuit simulation ++Version: @PACKAGE_VERSION@ ++Requires.private: amd btf colamd ++Libs: -L${libdir} -lklu ++Libs.private: -lm ++Cflags: -I${includedir}/klu diff --git a/libraries/KLU/slack-desc b/libraries/KLU/slack-desc index 0b65eadf824bb..191cb33a556b6 100644 --- a/libraries/KLU/slack-desc +++ b/libraries/KLU/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':'. |-----handy-ruler------------------------------------------------------| -KLU: KLU (sparse matrix factorizing routines) +KLU: KLU (sparse matrix factoring routines) KLU: KLU: KLU is a sparse LU factorization algorithm well-suited for use in KLU: circuit simulation. |