summaryrefslogtreecommitdiffstats
path: root/src/lapack.mk
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2011-11-14 23:57:57 (GMT)
committerMark Brand <mabrand@mabrand.nl>2011-11-14 23:57:57 (GMT)
commit635a5e1345f540fb95bb3534c9ce13e3cb90bff6 (patch)
tree9b7b370d1cd3fe39624e8ca354c711c3f062a145 /src/lapack.mk
parent104db775b9b7fded374edb8d75257229ac8408f3 (diff)
downloadmxe-635a5e1345f540fb95bb3534c9ce13e3cb90bff6.zip
mxe-635a5e1345f540fb95bb3534c9ce13e3cb90bff6.tar.gz
mxe-635a5e1345f540fb95bb3534c9ce13e3cb90bff6.tar.bz2
package lapack: build with cmake
Diffstat (limited to 'src/lapack.mk')
-rw-r--r--src/lapack.mk13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/lapack.mk b/src/lapack.mk
index e918c77..7ee8008 100644
--- a/src/lapack.mk
+++ b/src/lapack.mk
@@ -20,13 +20,8 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- 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'
-
- $(MAKE) -C '$(1)/SRC' -j '$(JOBS)'
- $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
- $(INSTALL) -m644 '$(1)/liblapack.a' '$(PREFIX)/$(TARGET)/lib/liblapack.a'
+ cd '$(1)' && cmake \
+ -DCMAKE_TOOLCHAIN_FILE=$(PREFIX)/$(TARGET)/share/cmake/mingw-cross-env-conf.cmake \
+ .
+ $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' install
endef