Mercurial > mxe-octave
annotate src/arpack.mk @ 6521:fe9ef30a38dd
* src/arpack.mk: fix DESTDIR value for install in native msys vs others
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 16 Nov 2022 08:43:42 -0500 |
parents | fcc82cc3b632 |
children | 11e24ab990cc |
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 := |
5701
fcc82cc3b632
Update arpack to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
5700
diff
changeset
|
6 $(PKG)_VERSION := 3.8.0 |
fcc82cc3b632
Update arpack to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
5700
diff
changeset
|
7 $(PKG)_CHECKSUM := 6b89dc1b298e1db7df17094308fc3309afa49618 |
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 |
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 | |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4281
diff
changeset
|
21 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
3015
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 |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 define $(PKG)_UPDATE |
5700
5e5c201cd134
* src/arpack.mk: update update rule
John Donoghue <john.donoghue@ieee.org>
parents:
4983
diff
changeset
|
26 $(WGET) -q -O- 'https://github.com/opencollab/arpack-ng/tags' | \ |
5e5c201cd134
* src/arpack.mk: update update rule
John Donoghue <john.donoghue@ieee.org>
parents:
4983
diff
changeset
|
27 $(SED) -n 's,.*releases/tag/\([^"]*\).*,\1,p' | \ |
4384 | 28 head -1 |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 endef |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 |
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 define $(PKG)_BUILD |
4141 | 32 cd '$(1)' && '$(1)/bootstrap' |
2873
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) \ |
4281 | 38 $(ENABLE_SHARED_OR_STATIC) \ |
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) |
4281 | 42 |
2997 | 43 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
6521
fe9ef30a38dd
* src/arpack.mk: fix DESTDIR value for install in native msys vs others
John Donoghue <john.donoghue@ieee.org>
parents:
5701
diff
changeset
|
44 if [ "$(MXE_NATIVE_MINGW_BUILD)" = yes ]; then \ |
fe9ef30a38dd
* src/arpack.mk: fix DESTDIR value for install in native msys vs others
John Donoghue <john.donoghue@ieee.org>
parents:
5701
diff
changeset
|
45 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install; \ |
fe9ef30a38dd
* src/arpack.mk: fix DESTDIR value for install in native msys vs others
John Donoghue <john.donoghue@ieee.org>
parents:
5701
diff
changeset
|
46 else \ |
fe9ef30a38dd
* src/arpack.mk: fix DESTDIR value for install in native msys vs others
John Donoghue <john.donoghue@ieee.org>
parents:
5701
diff
changeset
|
47 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'; \ |
fe9ef30a38dd
* src/arpack.mk: fix DESTDIR value for install in native msys vs others
John Donoghue <john.donoghue@ieee.org>
parents:
5701
diff
changeset
|
48 fi |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 endef |