Mercurial > hg > mxe-octave-anirudha
annotate src/arpack.mk @ 3173:33ba1ba99057
Update fontconfig to 2.10.93 (required by current Pango)
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Tue, 23 Jul 2013 22:29:33 -0400 |
parents | a46b4b6fc26f |
children |
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 := |
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
|
6 $(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
|
7 $(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
|
8 $(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
|
9 $(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
|
10 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
|
11 $(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
|
12 else |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
13 $(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
|
14 endif |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 |
2997 | 16 ifeq ($(USE_PIC_FLAG),yes) |
17 $(PKG)_CONFIGURE_PIC_OPTION := --with-pic | |
18 endif | |
19 | |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
20 ifeq ($(ENABLE_64),yes) |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
21 $(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
|
22 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
23 |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
24 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
|
25 $(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
|
26 $(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
|
27 else |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
28 $(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
|
29 endif |
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
30 |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 define $(PKG)_UPDATE |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 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
|
33 echo $(arpack_VERSION) |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 endef |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 define $(PKG)_BUILD |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 mkdir '$(1)/.build' |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 cd '$(1)/.build' && '$(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
|
39 F77=$(MXE_F77) \ |
2997 | 40 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
41 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 --enable-static --disable-shared \ |
2997 | 43 $($(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
|
44 $($(PKG)_BLAS_OPTION) \ |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
45 --prefix='$(HOST_PREFIX)' \ |
3073
a46b4b6fc26f
[MSVC] enable ARPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3069
diff
changeset
|
46 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) |
2997 | 47 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
48 | |
49 if [ $(BUILD_STATIC) = yes ]; then \ | |
50 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install; \ | |
51 fi | |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 if [ $(BUILD_SHARED) = yes ]; then \ |
3069
076acecb9c21
Update octave dependancies that use blas to also use openblas
John Donoghue <john.donoghue@ieee.org>
parents:
3017
diff
changeset
|
54 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/.build/.libs/libarpack.a' --install '$(INSTALL)' --libdir '$(HOST_LIBDIR)' --bindir '$(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
|
55 fi |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
56 endef |