Mercurial > mxe-octave
annotate src/arpack.mk @ 3480:13be64f9f16d
move version info from index.html to src/*.mk files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 31 Jan 2014 16:04:01 -0500 |
parents | cf6f40cededb |
children | 361f5149d073 |
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 := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3293
diff
changeset
|
6 $(PKG)_VERSION := 3.1.3 |
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
|
7 $(PKG)_CHECKSUM := c1ac96663916a4e11618e9557636ba1bd1a7b556 |
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) |
75e142c0004b
Update arpack to 3.1.3 which fixes issues with untaring in mingw.
John Donoghue <john.donoghue@ieee.org>
parents:
2997
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) |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
11 ifeq ($(ENABLE_OPENBLAS),yes) |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
12 $(PKG)_DEPS := openblas lapack |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
13 else |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
14 $(PKG)_DEPS := blas lapack |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
15 endif |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 |
3204
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
17 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
|
18 $(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
|
19 endif |
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
20 |
2997 | 21 ifeq ($(USE_PIC_FLAG),yes) |
22 $(PKG)_CONFIGURE_PIC_OPTION := --with-pic | |
23 endif | |
24 | |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
25 ifeq ($(ENABLE_64),yes) |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
26 $(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
|
27 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
28 |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
29 ifeq ($(ENABLE_OPENBLAS),yes) |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
30 $(PKG)_BLAS_OPTION := --with-blas=openblas |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
31 $(PKG)_BLAS_LIB := openblas |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
32 else |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
33 $(PKG)_BLAS_LIB := blas |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
34 endif |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
35 |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 define $(PKG)_UPDATE |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 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
|
38 echo $(arpack_VERSION) |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 endef |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 define $(PKG)_BUILD |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 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
|
43 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
|
44 F77=$(MXE_F77) \ |
2997 | 45 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
46 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 --enable-static --disable-shared \ |
2997 | 48 $($(PKG)_CONFIGURE_PIC_OPTION) \ |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
49 $($(PKG)_BLAS_OPTION) \ |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
50 --prefix='$(HOST_PREFIX)' \ |
3073
a46b4b6fc26f
[MSVC] enable ARPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3069
diff
changeset
|
51 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) |
2997 | 52 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
53 | |
54 if [ $(BUILD_STATIC) = yes ]; then \ | |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3204
diff
changeset
|
55 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'; \ |
2997 | 56 fi |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
57 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
58 if [ $(BUILD_SHARED) = yes ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3204
diff
changeset
|
59 $(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
|
60 fi |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 endef |