summaryrefslogtreecommitdiffstats
path: root/src/lapack.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-11-16 23:52:47 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-11-16 23:52:47 (GMT)
commita149a4a947ca7c2db28af473c0be5febbd118abb (patch)
treefb6e4a221d781b7eff64689edf1375145ba9ae57 /src/lapack.mk
parentc492fb9e539ee4bfb6b8624abb941b272163e135 (diff)
downloadmxe-a149a4a947ca7c2db28af473c0be5febbd118abb.zip
mxe-a149a4a947ca7c2db28af473c0be5febbd118abb.tar.gz
mxe-a149a4a947ca7c2db28af473c0be5febbd118abb.tar.bz2
cleanup packages: blas cblas lapack metis suitesparse
Diffstat (limited to 'src/lapack.mk')
-rw-r--r--src/lapack.mk29
1 files changed, 11 insertions, 18 deletions
diff --git a/src/lapack.mk b/src/lapack.mk
index 343adb0..51018bd 100644
--- a/src/lapack.mk
+++ b/src/lapack.mk
@@ -1,16 +1,15 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
-
# lapack
PKG := lapack
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.2.2
$(PKG)_CHECKSUM := a434c45932f6affb654b3abde21dd669f5751633
-$(PKG)_SUBDIR := lapack-$($(PKG)_VERSION)
-$(PKG)_FILE := lapack-$($(PKG)_VERSION).tgz
-$(PKG)_WEBSITE := http://www.netlib.org/lapack
-$(PKG)_URL := http://www.netlib.org/lapack/$($(PKG)_FILE)
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).tgz
+$(PKG)_WEBSITE := http://www.netlib.org/$(PKG)/
+$(PKG)_URL := http://www.netlib.org/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
@@ -20,19 +19,13 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- cp $(1)/make.inc.example $(1)/make.inc
- $(SED) -i 's,PLAT = _LINUX,PLAT = _MINGW32,g' '$(1)/make.inc'
- $(SED) -i 's,gfortran,$(TARGET)-gfortran,g' '$(1)/make.inc'
- $(SED) -i 's, ar, $(TARGET)-ar,g' '$(1)/make.inc'
+ cp $(1)/make.inc.example $(1)/make.inc
+ $(SED) -i 's,PLAT =.*,PLAT = _MINGW32,g' '$(1)/make.inc'
+ $(SED) -i 's,gfortran,$(TARGET)-gfortran,g' '$(1)/make.inc'
+ $(SED) -i 's, ar, $(TARGET)-ar,g' '$(1)/make.inc'
$(SED) -i 's, ranlib, $(TARGET)-ranlib,g' '$(1)/make.inc'
- ## build Blas and Lapack
- make -C $(1) lapacklib blaslib
- cp $(1)/lapack_MINGW32.a $(1)/liblapack.a
- cp $(1)/blas_MINGW32.a $(1)/libblas.a
- $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
- $(INSTALL) -m664 '$(1)/libblas.a' '$(PREFIX)/$(TARGET)/lib/'
- $(INSTALL) -m664 '$(1)/liblapack.a' '$(PREFIX)/$(TARGET)/lib/'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' lapacklib
+ $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
+ $(INSTALL) -m664 '$(1)/lapack_MINGW32.a' '$(PREFIX)/$(TARGET)/lib/liblapack.a'
endef
-
-