annotate src/lapack.mk @ 3023:7bcade70f016

Update lapack for native mingw compile * src/lapack.mk: add PKG_CMAKE_FLAGS options when compiling native mingw
author John Donoghue <john.donoghue@ieee.org>
date Sat, 08 Jun 2013 10:48:17 -0400
parents ec6f91539788
children dea92be54fc8
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
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
12 ifeq ($(ENABLE_64),yes)
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
13 $(PKG)_DEFAULT_INTEGER_8_FLAG := -fdefault-integer-8
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
14 endif
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
15
3023
7bcade70f016 Update lapack for native mingw compile
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
16 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
7bcade70f016 Update lapack for native mingw compile
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
17 $(PKG)_CMAKE_FLAGS := -G 'MSYS Makefile'
7bcade70f016 Update lapack for native mingw compile
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
18 endif
7bcade70f016 Update lapack for native mingw compile
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
19
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
20 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2464
diff changeset
21 $(WGET) -q -O- 'http://www.netlib.org/lapack/' | \
1551
906b674321d5 package lapack: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
22 $(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
23 head -1
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
24 endef
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
25
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
26 define $(PKG)_BUILD
2093
fc6612a2917b package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents: 2091
diff changeset
27 cd '$(1)' && cmake \
3023
7bcade70f016 Update lapack for native mingw compile
John Donoghue <john.donoghue@ieee.org>
parents: 3015
diff changeset
28 $($(PKG)_CMAKE_FLAGS) \
2142
276f0c6d3cca packages cgal, eigen, lapack: use CMAKE_TOOLCHAIN_FILE
Tony Theodore <tonyt@logyst.com>
parents: 2113
diff changeset
29 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2788
diff changeset
30 -DCMAKE_AR='$(MXE_AR)' \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2788
diff changeset
31 -DCMAKE_RANLIB='$(MXE_RANLIB)' \
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
32 -DCMAKE_Fortran_FLAGS='$($(PKG)_DEFAULT_INTEGER_8_FLAG)' \
2093
fc6612a2917b package lapack: build with cmake
Mark Brand <mabrand@mabrand.nl>
parents: 2091
diff changeset
33 .
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
34 $(MAKE) -C '$(1)/SRC' -j '$(JOBS)' VERBOSE=1 install
1374
32a1331a3faf new packages: blas cblas lapack
Alois Schlögl <alois.schloegl@gmail.com>
parents:
diff changeset
35 endef