blob: df785b232d3759812b1841e6162191b640b517fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# lapack
PKG := lapack
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.3.0
$(PKG)_CHECKSUM := 4f0b103da52110e7f60d1d7676727103aca9785e
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz
$(PKG)_WEBSITE := http://www.netlib.org/$(PKG)/
$(PKG)_URL := http://www.netlib.org/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.netlib.org/lapack/' | \
$(SED) -n 's_.*>LAPACK, version \([0-9]\.[0-9]\.[0-9]\).*_\1_ip' | \
head -1
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)/lapack_MINGW32.a' '$(PREFIX)/$(TARGET)/lib/liblapack.a'
endef
|