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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
66cb6f6de8f7 arpack: update to get source from github
John Donoghue
parents: 3664
diff changeset
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
17 ifeq ($(USE_PIC_FLAG),yes)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
18 $(PKG)_CONFIGURE_PIC_OPTION := --with-pic
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
19 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
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
d5a5b8e659de update PKG_UPDATE rules
John D
parents: 4304
diff changeset
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
3a3a0122cfde arpack: update to 3.3.0
John Donoghue
parents: 4035
diff changeset
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
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
d3d22f217ad0 * src/arpack.mk: update to 3.4.0
John D
parents: 4141
diff changeset
38 $(ENABLE_SHARED_OR_STATIC) \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
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
d3d22f217ad0 * src/arpack.mk: update to 3.4.0
John D
parents: 4141
diff changeset
42
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
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