summaryrefslogtreecommitdiff
path: root/libraries/CXSparse/autotoolize.diff
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2011-06-17 21:58:53 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-06-19 23:17:04 -0500
commit6600559a549e18085b037149531f717e869aff71 (patch)
tree16af34d10d3f41c25d408acd2ff205555485858f /libraries/CXSparse/autotoolize.diff
parentc376c25b968111b41827e287377dfd139800a9f8 (diff)
downloadslackbuilds-6600559a549e18085b037149531f717e869aff71.tar.gz
libraries/CXSparse: Updated for version 2.2.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/CXSparse/autotoolize.diff')
-rw-r--r--libraries/CXSparse/autotoolize.diff50
1 files changed, 40 insertions, 10 deletions
diff --git a/libraries/CXSparse/autotoolize.diff b/libraries/CXSparse/autotoolize.diff
index 9588bae1ef..151b75a9ae 100644
--- a/libraries/CXSparse/autotoolize.diff
+++ b/libraries/CXSparse/autotoolize.diff
@@ -3,7 +3,7 @@ new file mode 100644
--- /dev/null
+++ b/Demo/Makefile.am
@@ -0,0 +1,131 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+LDADD = $(top_builddir)/Source/libcxsparse.la
+
+noinst_HEADERS = \
@@ -134,16 +134,23 @@ new file mode 100644
+ -./cs_cl_demo3 < ../Matrix/mhd1280b
+ -./cs_idemo < ../Matrix/t2
+ -./cs_ldemo < ../Matrix/t2
+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)/cxsparse
++pkginclude_HEADERS = cs.h
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
--- /dev/null
+++ b/Makefile.am
@@ -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
+
-+pkgincludedir = $(includedir)/cxsparse
-+pkginclude_HEADERS = Include/cs.h
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = cxsparse.pc
diff --git a/Matrix/Makefile.am b/Matrix/Makefile.am
new file mode 100644
--- /dev/null
@@ -177,7 +184,7 @@ new file mode 100644
--- /dev/null
+++ b/Source/Makefile.am
@@ -0,0 +1,72 @@
-+AM_CPPFLAGS = -I$(top_srcdir)/Include
++AM_CPPFLAGS = -I$(top_srcdir)/Include $(UFCONFIG_CFLAGS)
+
+CS_SOURCE = \
+ cs_add.c \
@@ -248,14 +255,14 @@ new file mode 100644
+
+libcxsparse_la_SOURCES = cs_convert.c
+libcxsparse_la_LIBADD = libcxsparse_di.la libcxsparse_dl.la libcxsparse_ci.la libcxsparse_cl.la -lm
-+libcxsparse_la_LDFLAGS = -no-undefined -version-info 4:4:2
++libcxsparse_la_LDFLAGS = -no-undefined -version-info 4:5:2
diff --git a/configure.ac b/configure.ac
new file mode 100644
--- /dev/null
+++ b/configure.ac
-@@ -0,0 +1,31 @@
-+AC_PREREQ([2.65])
-+AC_INIT([CXSparse], [2.2.4], [davis@cise.ufl.edu])
+@@ -0,0 +1,37 @@
++AC_PREREQ([2.68])
++AC_INIT([CXSparse],[2.2.5],[davis@cise.ufl.edu])
+AC_CONFIG_SRCDIR([Source/cs_print.c])
+AC_CONFIG_HEADER([config.h])
+AM_INIT_AUTOMAKE([foreign])
@@ -269,7 +276,11 @@ new file mode 100644
+AC_CHECK_LIB([m], [sqrt])
+
+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])])
+
+AC_TYPE_SIZE_T
+
@@ -280,8 +291,27 @@ new file mode 100644
+LIBS=$LIBS_SAVED
+
+AC_CONFIG_FILES([
++ cxsparse.pc
+ Makefile
+ Demo/Makefile
++ Include/Makefile
+ Matrix/Makefile
+ Source/Makefile])
+AC_OUTPUT
+diff --git a/cxsparse.pc.in b/cxsparse.pc.in
+new file mode 100644
+--- /dev/null
++++ b/cxsparse.pc.in
+@@ -0,0 +1,12 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: @PACKAGE_NAME@
++Description: An extended version of CSparse
++Version: @PACKAGE_VERSION@
++Requires.private: ufconfig
++Libs: -L${libdir} -lcxsparse
++Libs.private: -lm
++Cflags: -I${includedir}/cxsparse