Mercurial > mxe-octave
annotate src/arpack.mk @ 4693:9288b72977a1
Makefile.in: Don't require --enable-64 adn --enable-fortran-int64 to match.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 08 May 2018 09:34:35 -0400 |
parents | f2278f00b5de |
children | d2b4db3c3f25 |
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 := |
4417 | 6 $(PKG)_VERSION := 3.5.0 |
7 $(PKG)_CHECKSUM := acbbe14b03b323f84236553872396345204dea1e | |
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 |
4035 | 10 $(PKG)_URL := https://github.com/opencollab/arpack-ng/archive/$($(PKG)_VERSION).tar.gz |
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 |
3664
ec301e1de20f
arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents:
3549
diff
changeset
|
12 $(PKG)_DESTDIR := '$(3)' |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 |
3204
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
14 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
|
15 $(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
|
16 endif |
a940dce60841
set LD_LIBRARY_PATH in env for arpack configure script
John W. Eaton <jwe@octave.org>
parents:
3073
diff
changeset
|
17 |
3664
ec301e1de20f
arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents:
3549
diff
changeset
|
18 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
ec301e1de20f
arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents:
3549
diff
changeset
|
19 $(PKG)_DESTDIR := |
ec301e1de20f
arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents:
3549
diff
changeset
|
20 endif |
ec301e1de20f
arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents:
3549
diff
changeset
|
21 |
2997 | 22 ifeq ($(USE_PIC_FLAG),yes) |
23 $(PKG)_CONFIGURE_PIC_OPTION := --with-pic | |
24 endif | |
25 | |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4281
diff
changeset
|
26 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
3015
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
27 $(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
|
28 endif |
ec6f91539788
initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
29 |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 define $(PKG)_UPDATE |
4384 | 31 $(WGET) -q -O- 'https://github.com/opencollab/arpack-ng/releases' | \ |
32 $(SED) -n 's,.*href="/opencollab/arpack-ng/archive/\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
33 head -1 | |
2873
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 |
4141 | 37 cd '$(1)' && '$(1)/bootstrap' |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 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
|
39 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
|
40 F77=$(MXE_F77) \ |
2997 | 41 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
42 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
4281 | 43 $(ENABLE_SHARED_OR_STATIC) \ |
2997 | 44 $($(PKG)_CONFIGURE_PIC_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) |
4281 | 47 |
2997 | 48 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
4281 | 49 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$($(PKG)_DESTDIR)' |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 endef |