annotate src/lapack.mk @ 2997:4f9b72cf7ee7

allow native builds too
author John W. Eaton <jwe@octave.org>
date Tue, 28 May 2013 17:31:59 -0400
parents eaa3134bbca4
children ec6f91539788
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2142
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
1376
896bc60de2a9 improvements for packages: cblas lapack suitesparse
Alois Schlögl <alois.schloegl@gmail.com>
parents: 1374
diff changeset
3
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
4 PKG := lapack
2788
eaa3134bbca4 upgrade package lapack
Mark Brand <mabrand@mabrand.nl>
parents: 2706
diff changeset
5 $(PKG)_CHECKSUM := 93a6e4e6639aaf00571d53a580ddc415416e868b
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
6 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1447
diff changeset
7 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz
1385
08b296ec290e cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents: 1376
diff changeset
8 $(PKG)_URL := http://www.netlib.org/$(PKG)/$($(PKG)_FILE)
1735
0066ab1bad44 improved download URLs of packages: blas cblas gcc-mpc lapack
Volker Grabsch <vog@notjusthosting.com>
parents: 1551
diff changeset
9 $(PKG)_URL_2 := ftp://ftp.eq.uc.pt/pub/software/math/netlib/$(PKG)/$($(PKG)_FILE)
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
11
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2464
diff changeset
13 $(WGET) -q -O- 'http://www.netlib.org/lapack/' | \
1551
906b674321d5 package lapack: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
14 $(SED) -n 's_.*>LAPACK, version \([0-9]\.[0-9]\.[0-9]\).*_\1_ip' | \
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
15 head -1
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
16 endef
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
17
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
18 define $(PKG)_BUILD
2093
fc6612a2917b package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents: 2091
diff changeset
19 cd '$(1)' && cmake \
2142
276f0c6d3cca packages cgal, eigen, lapack: use CMAKE_TOOLCHAIN_FILE
Tony Theodore <tonyt@logyst.com>
parents: 2113
diff changeset
20 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2788
diff changeset
21 -DCMAKE_AR='$(MXE_AR)' \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2788
diff changeset
22 -DCMAKE_RANLIB='$(MXE_RANLIB)' \
2093
fc6612a2917b package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents: 2091
diff changeset
23 .
fc6612a2917b package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents: 2091
diff changeset
24 $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' install
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
25 endef