annotate src/arpack.mk @ 4035:66cb6f6de8f7

arpack: update to get source from github * src/arpack.mk: update to get source from https://github.com/opencollab/arpack-ng/archive/$($(PKG)_VERSION).tar.gz
author John Donoghue
date Tue, 29 Sep 2015 12:48:32 -0400
parents ec301e1de20f
children 3a3a0122cfde
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 :=
3549
a4f6dc84ac5b Update arpack to 3.1.5
John Donoghue <john.donoghue@ieee.org>
parents: 3545
diff changeset
6 $(PKG)_VERSION := 3.1.5
4035
66cb6f6de8f7 arpack: update to get source from github
John Donoghue
parents: 3664
diff changeset
7 $(PKG)_CHECKSUM := e34934bf76634479a7f52778c1391af93f9bab72
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
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
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
22 ifeq ($(USE_PIC_FLAG),yes)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
23 $(PKG)_CONFIGURE_PIC_OPTION := --with-pic
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
24 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
25
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
26 ifeq ($(ENABLE_64),yes)
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
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 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
32 echo $(arpack_VERSION)
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 endef
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 define $(PKG)_BUILD
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 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
37 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
38 F77=$(MXE_F77) \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
39 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
40 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2873
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 --enable-static --disable-shared \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
42 $($(PKG)_CONFIGURE_PIC_OPTION) \
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
43 --prefix='$(HOST_PREFIX)' \
3073
a46b4b6fc26f [MSVC] enable ARPACK compilation
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3069
diff changeset
44 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK)
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
45 $(MAKE) -C '$(1)/.build' -j '$(JOBS)'
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
46
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
47 if [ $(BUILD_STATIC) = yes ]; then \
3664
ec301e1de20f arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents: 3549
diff changeset
48 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$($(PKG)_DESTDIR)'; \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2976
diff changeset
49 fi
2873
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 if [ $(BUILD_SHARED) = yes ]; then \
3664
ec301e1de20f arpack: dont use destdir in native mingw mode
John Donoghue <john.donoghue@ieee.org>
parents: 3549
diff changeset
52 $(MAKE_SHARED_FROM_STATIC) --ar '$(MXE_AR)' --ld '$(MXE_F77)' '$(1)/.build/.libs/libarpack.a' --install '$(INSTALL)' --libdir '$($(PKG)_DESTDIR)$(HOST_LIBDIR)' --bindir '$($(PKG)_DESTDIR)$(HOST_BINDIR)' -llapack -lblas; \
2873
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 fi
43a1c4d36636 Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 endef