changeset 1371:c9905856c931

new packages: metis suitesparse
author Alois Schlögl <alois.schloegl@gmail.com>
date Tue, 16 Nov 2010 19:03:38 +0100
parents b1f3e339a54b
children 4c3f4e0e3194
files src/metis-undef-log2.patch src/metis.mk src/suitesparse.mk
diffstat 3 files changed, 87 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/metis-undef-log2.patch	Tue Nov 16 19:03:38 2010 +0100
@@ -0,0 +1,31 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+diff urM a/metis-4.0/Lib/util.c b/metis-4.0/Lib/util.c
+*** a/metis-4.0/Lib/util.c	1998-11-30 17:26:50.000000000 +0100
+--- b/metis-4.0/Lib/util.c	2010-06-21 23:32:33.783674276 +0200
+@@ -506,13 +506,3 @@
+    }
+  }
+  
+- /*************************************************************************
+- * This function returns the log2(x)
+- **************************************************************************/
+- int log2(int a)
+- {
+-   int i;
+- 
+-   for (i=1; a > 1; i++, a = a>>1);
+-   return i-1;
+- }
+
+diff urM a/metis-4.0/Lib/proto.h b/metis-4.0/Lib/proto.h
+*** a/metis-4.0/Lib/proto.h	1998-11-30 17:26:50.000000000 +0100
+--- b/metis-4.0/Lib/proto.h	2010-06-21 23:33:24.194921631 +0200
+@@ -459,4 +459,3 @@
+  void srand48(long);
+  int ispow2(int);
+  void InitRandom(int);
+- int log2(int);
+  
+  
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/metis.mk	Tue Nov 16 19:03:38 2010 +0100
@@ -0,0 +1,28 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# metis
+PKG             := metis
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 4.0
+$(PKG)_CHECKSUM := 580568308e1fa40e5a7a77cacbf27f865d6c01af
+$(PKG)_SUBDIR   := metis-4.0
+$(PKG)_FILE     := metis-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE  := http://glaros.dtc.umn.edu
+$(PKG)_URL      := http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.tar.gz
+$(PKG)_DEPS     := gcc
+define $(PKG)_UPDATE
+    wget -q -O- 'http://www.cise.ufl.edu/research/sparse/SuiteSparse/' | \
+    $(SED) -n 's,.*metis-\([0-9]\.[0-9]\)\.tar.gz,\1,ip' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+     cd '$(1)' && CHOST='$(TARGET)' 
+#    cd '$(1)' && CHOST='$(TARGET)' ./configure \
+#        --prefix='$(PREFIX)/$(TARGET)' \
+#        --static
+    $(MAKE) -C '$(1)' -j '$(JOBS)' 
+endef
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/suitesparse.mk	Tue Nov 16 19:03:38 2010 +0100
@@ -0,0 +1,28 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# SuiteSparse
+PKG             := suitesparse
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 3.4.0
+$(PKG)_CHECKSUM := 6de027d48a573659b40ddf57c10e32b39ab034c6
+$(PKG)_SUBDIR   := SuiteSparse
+$(PKG)_FILE     := SuiteSparse-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE  := http://www.cise.ufl.edu/
+$(PKG)_URL      := http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-3.4.0.tar.gz
+$(PKG)_DEPS     := gcc metis
+define $(PKG)_UPDATE
+    wget -q -O- 'http://www.cise.ufl.edu/research/sparse/SuiteSparse/' | \
+    $(SED) -n 's,.*SuiteSparse-\([0-9]\.[0-9]\.[0-9]\)\.tar.*,\1,ip' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+     cd '$(1)' && CHOST='$(TARGET)' 
+#    cd '$(1)' && CHOST='$(TARGET)' ./configure \
+#        --prefix='$(PREFIX)/$(TARGET)' \
+#        --static
+    $(MAKE) -C '$(1)' -j '$(JOBS)' 
+endef
+
+