summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlois Schlögl <alois.schloegl@gmail.com>2010-11-16 18:03:38 (GMT)
committerAlois Schlögl <alois.schloegl@gmail.com>2010-11-16 18:03:38 (GMT)
commit6bce5c4aec599e4419ea66f174c1feda2c2e9e20 (patch)
tree6fbafb9659ce5b0c0b38df96353e0e93d3bcb217
parentcd1feb845653269c296e25429f138d52238c07e7 (diff)
downloadmxe-6bce5c4aec599e4419ea66f174c1feda2c2e9e20.zip
mxe-6bce5c4aec599e4419ea66f174c1feda2c2e9e20.tar.gz
mxe-6bce5c4aec599e4419ea66f174c1feda2c2e9e20.tar.bz2
new packages: metis suitesparse
-rw-r--r--src/metis-undef-log2.patch31
-rw-r--r--src/metis.mk28
-rw-r--r--src/suitesparse.mk28
3 files changed, 87 insertions, 0 deletions
diff --git a/src/metis-undef-log2.patch b/src/metis-undef-log2.patch
new file mode 100644
index 0000000..020e42c
--- /dev/null
+++ b/src/metis-undef-log2.patch
@@ -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);
+
+
diff --git a/src/metis.mk b/src/metis.mk
new file mode 100644
index 0000000..1dd5336
--- /dev/null
+++ b/src/metis.mk
@@ -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
+
+
diff --git a/src/suitesparse.mk b/src/suitesparse.mk
new file mode 100644
index 0000000..4b9f428
--- /dev/null
+++ b/src/suitesparse.mk
@@ -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
+
+