From 6bce5c4aec599e4419ea66f174c1feda2c2e9e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alois=20Schl=C3=B6gl?= Date: Tue, 16 Nov 2010 19:03:38 +0100 Subject: new packages: metis suitesparse --- src/metis-undef-log2.patch | 31 +++++++++++++++++++++++++++++++ src/metis.mk | 28 ++++++++++++++++++++++++++++ src/suitesparse.mk | 28 ++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 src/metis-undef-log2.patch create mode 100644 src/metis.mk create mode 100644 src/suitesparse.mk 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 + + -- cgit v0.12