Mercurial > mxe-octave
annotate src/lapack.mk @ 2525:4d0f3a9da57e
all packages: use $(WGET) portability variable
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 09 May 2012 01:16:05 +1000 |
parents | fc0830aafb54 |
children | 3abd2de6c2d7 |
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 |
2459
2e99c507456a
package lapack: ignore version 3.4.1
Tony Theodore <tonyt@logyst.com>
parents:
2436
diff
changeset
|
5 $(PKG)_IGNORE := 3.4.1 |
2463
bea72a4d7481
package lapack: revert to v3.4.0
Alois Schlögl <alois.schloegl@gmail.com>
parents:
2459
diff
changeset
|
6 $(PKG)_CHECKSUM := 910109a931524f8dcc2734ce23fe927b00ca199f |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1376
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1447
diff
changeset
|
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tgz |
1385
08b296ec290e
cleanup packages: blas cblas lapack metis suitesparse
Volker Grabsch <vog@notjusthosting.com>
parents:
1376
diff
changeset
|
9 $(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
|
10 $(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
|
11 $(PKG)_DEPS := gcc |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
12 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2464
diff
changeset
|
14 $(WGET) -q -O- 'http://www.netlib.org/lapack/' | \ |
1551
906b674321d5
package lapack: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
1499
diff
changeset
|
15 $(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
|
16 head -1 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
17 endef |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
18 |
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
2093
fc6612a2917b
package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents:
2091
diff
changeset
|
20 cd '$(1)' && cmake \ |
2142
276f0c6d3cca
packages cgal, eigen, lapack: use CMAKE_TOOLCHAIN_FILE
Tony Theodore <tonyt@logyst.com>
parents:
2113
diff
changeset
|
21 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \ |
2113
654060a2d416
package lapack:portability fix for FreeBSD - add CMAKE_AR
Tony Theodore <tonyt@logyst.com>
parents:
2112
diff
changeset
|
22 -DCMAKE_AR='$(PREFIX)/bin/$(TARGET)-ar' \ |
2464
fc0830aafb54
package lapack: use $(TARGET)-ranlib and add test program
Tony Theodore <tonyt@logyst.com>
parents:
2463
diff
changeset
|
23 -DCMAKE_RANLIB='$(PREFIX)/bin/$(TARGET)-ranlib' \ |
2093
fc6612a2917b
package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents:
2091
diff
changeset
|
24 . |
fc6612a2917b
package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents:
2091
diff
changeset
|
25 $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' install |
2464
fc0830aafb54
package lapack: use $(TARGET)-ranlib and add test program
Tony Theodore <tonyt@logyst.com>
parents:
2463
diff
changeset
|
26 |
fc0830aafb54
package lapack: use $(TARGET)-ranlib and add test program
Tony Theodore <tonyt@logyst.com>
parents:
2463
diff
changeset
|
27 '$(TARGET)-gfortran' \ |
fc0830aafb54
package lapack: use $(TARGET)-ranlib and add test program
Tony Theodore <tonyt@logyst.com>
parents:
2463
diff
changeset
|
28 -W -Wall -Werror -pedantic \ |
fc0830aafb54
package lapack: use $(TARGET)-ranlib and add test program
Tony Theodore <tonyt@logyst.com>
parents:
2463
diff
changeset
|
29 '$(2).f' -o '$(PREFIX)/$(TARGET)/bin/test-lapack.exe' \ |
fc0830aafb54
package lapack: use $(TARGET)-ranlib and add test program
Tony Theodore <tonyt@logyst.com>
parents:
2463
diff
changeset
|
30 -llapack |
1374
32a1331a3faf
new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff
changeset
|
31 endef |