Mercurial > mxe-octave
annotate src/arpack.mk @ 3549:a4f6dc84ac5b
Update arpack to 3.1.5
* src/arpack.mk: update to 3.1.5.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 25 Feb 2014 18:18:16 -0500 |
parents | c21ca79d7980 |
children | ec301e1de20f |
rev | line source |
---|---|
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := arpack |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3549
a4f6dc84ac5b
Update arpack to 3.1.5
John Donoghue <john.donoghue@ieee.org>
parents:
3545
diff
changeset
|
6 $(PKG)_VERSION := 3.1.5 |
a4f6dc84ac5b
Update arpack to 3.1.5
John Donoghue <john.donoghue@ieee.org>
parents:
3545
diff
changeset
|
7 $(PKG)_CHECKSUM := f5b492a70c10b39596e476d0c7958b4d85a40a29 |
3011
75e142c0004b
Update arpack to 3.1.3 which fixes issues with untaring in mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
2997
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-ng-$($(PKG)_VERSION) |
3482
361f5149d073
Update arpack to 3.1.4
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
9 $(PKG)_FILE := arpack-ng_$($(PKG)_VERSION).tar.gz |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_URL := http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/$($(PKG)_FILE) |
3545
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3482
diff
changeset
|
11 $(PKG)_DEPS := blas lapack |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 |
3204
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
13 ifeq ($(MXE_NATIVE_BUILD),yes) |
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
14 $(PKG)_CONFIGURE_ENV := LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) |
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
15 endif |
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
16 |
2997 | 17 ifeq ($(USE_PIC_FLAG),yes) |
18 $(PKG)_CONFIGURE_PIC_OPTION := --with-pic | |
19 endif | |
20 | |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
21 ifeq ($(ENABLE_64),yes) |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
22 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := FFLAGS="-g -O2 -fdefault-integer-8" |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
23 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
24 |
3545
c21ca79d7980
Remove ENABLE_OPEN_BLAS from .mk files and use just to add openblass to the distribution
John Donoghue
parents:
3482
diff
changeset
|
25 $(PKG)_BLAS_LIB := blas |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
26 |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 define $(PKG)_UPDATE |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 echo 'Warning: Updates are temporarily disabled for package arpack.' >&2; |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 echo $(arpack_VERSION) |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 endef |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 define $(PKG)_BUILD |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 mkdir '$(1)/.build' |
3204
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
34 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
3017
107fb7f1202f
set F77 on configure command line for arpack, fftw, and qrupdate packages
John W. Eaton <jwe@octave.org>
parents:
3015
diff
changeset
|
35 F77=$(MXE_F77) \ |
2997 | 36 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
37 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 --enable-static --disable-shared \ |
2997 | 39 $($(PKG)_CONFIGURE_PIC_OPTION) \ |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
40 --prefix='$(HOST_PREFIX)' \ |
3073
a46b4b6fc26f
[MSVC] enable ARPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3069
diff
changeset
|
41 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) |
2997 | 42 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
43 | |
44 if [ $(BUILD_STATIC) = yes ]; then \ | |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3204
diff
changeset
|
45 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'; \ |
2997 | 46 fi |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 if [ $(BUILD_SHARED) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3204
diff
changeset
|
49 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/.build/.libs/libarpack.a' --install '$(INSTALL)' --libdir '$(3)$(HOST_LIBDIR)' --bindir '$(3)$(HOST_BINDIR)' -llapack -l$($(PKG)_BLAS_LIB); \ |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 fi |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
51 endef |