summaryrefslogtreecommitdiffstats
path: root/src/suitesparse.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-11-28 16:08:17 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-11-28 16:08:17 (GMT)
commitc47a62afef14a5bf1bf2d8cd9fd2535131918f55 (patch)
tree0f52fed41503f1d9f49d9cef9beb9e9762dfbef2 /src/suitesparse.mk
parentf53eac4b7fb528e879f424cdb847de50a90ce73c (diff)
downloadmxe-c47a62afef14a5bf1bf2d8cd9fd2535131918f55.zip
mxe-c47a62afef14a5bf1bf2d8cd9fd2535131918f55.tar.gz
mxe-c47a62afef14a5bf1bf2d8cd9fd2535131918f55.tar.bz2
cleanup package: suitesparse
Diffstat (limited to 'src/suitesparse.mk')
-rw-r--r--src/suitesparse.mk26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/suitesparse.mk b/src/suitesparse.mk
index a9d958f..ada04d5 100644
--- a/src/suitesparse.mk
+++ b/src/suitesparse.mk
@@ -10,7 +10,7 @@ $(PKG)_SUBDIR := SuiteSparse
$(PKG)_FILE := SuiteSparse-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://www.cise.ufl.edu/research/sparse/SuiteSparse/
$(PKG)_URL := http://www.cise.ufl.edu/research/sparse/SuiteSparse/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc metis blas lapack
+$(PKG)_DEPS := gcc blas lapack metis
define $(PKG)_UPDATE
wget -q -O- 'http://www.cise.ufl.edu/research/sparse/SuiteSparse/' | \
@@ -19,26 +19,20 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- # set path to metis
- $(SED) -i 's,METIS_PATH =.*,METIS_PATH = $(PREFIX)/$(TARGET)/include/metis,' '$(1)/UFconfig/UFconfig.mk'
- $(SED) -i 's,METIS =.*,METIS = $(PREFIX)/$(TARGET)/lib/libmetis.a,' '$(1)/UFconfig/UFconfig.mk'
-
- # use cross tools
- $(SED) -i 's,cc,$(TARGET)-gcc,' '$(1)/UFconfig/UFconfig.mk'
- $(SED) -i 's,g++,$(TARGET)-g++,' '$(1)/UFconfig/UFconfig.mk'
- $(SED) -i 's,f77,$(TARGET)-gfortran,' '$(1)/UFconfig/UFconfig.mk'
- $(SED) -i 's,ar ,$(TARGET)-ar ,' '$(1)/UFconfig/UFconfig.mk'
- $(SED) -i 's,ranlib,$(TARGET)-ranlib,' '$(1)/UFconfig/UFconfig.mk'
-
- # gfortran does not need libg2c
- $(SED) -i 's,-lg2c,,' '$(1)/UFconfig/UFconfig.mk'
-
# exclude demos
find '$(1)' -name 'Makefile' \
-exec $(SED) -i 's,( cd Demo,#( cd Demo,' {} \;
# build all
- $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' \
+ CC='$(TARGET)-gcc' \
+ CPLUSPLUS='$(TARGET)-g++' \
+ F77='$(TARGET)-gfortran' \
+ AR='$(TARGET)-ar cr' \
+ RANLIB='$(TARGET)-ranlib' \
+ BLAS='-lblas -lgfortran -lgfortranbegin' \
+ METIS_PATH='$(PREFIX)/$(TARGET)/include/metis' \
+ METIS='$(PREFIX)/$(TARGET)/lib/libmetis.a'
# install library files
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'