annotate src/octave.mk @ 3043:cbfe5d38ff2c

use configure script to generate Makefile
author John W. Eaton <jwe@octave.org>
date Wed, 12 Jun 2013 13:50:50 -0400
parents 951da75fd09c
children 5ef49fb3299d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2862
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := octave
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2995
c004ec274dfa Update octave.mk file to current checksum.
John Donoghue <john.donoghue@ieee.org>
parents: 2993
diff changeset
6 $(PKG)_CHECKSUM := a51f52fa6dfef2e905d0c64f0401caab5a11faca
2874
890aa60f7b87 Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents: 2873
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2862
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.gz
2931
5f923fdabefe update to octave 3.7.1 snapshot
John W. Eaton <jwe@octave.org>
parents: 2914
diff changeset
9 $(PKG)_URL := ftp://alpha.gnu.org/gnu/octave/$($(PKG)_FILE)
3043
cbfe5d38ff2c use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS := arpack blas curl fftw fltk fontconfig gcc glpk gnuplot graphicsmagick hdf5 lapack pcre pstoedit qhull qrupdate qscintilla qt readline suitesparse texinfo zlib
cbfe5d38ff2c use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 ifeq ($(ENABLE_JIT),yes)
cbfe5d38ff2c use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
12 $(PKG)_DEPS += llvm
cbfe5d38ff2c use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
13 endif
2862
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
15 ifeq ($(MXE_NATIVE_BUILD),yes)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
16 $(PKG)_CONFIGURE_ENV := LD_LIBRARY_PATH="'$(LD_LIBRARY_PATH)'"
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
17 ifeq ($(ENABLE_64),yes)
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
18 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
19 endif
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
20 else
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
21 ifeq ($(MXE_SYSTEM),mingw)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
22 $(PKG)_CROSS_CONFIG_OPTIONS := \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3015
diff changeset
23 FLTK_CONFIG='$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)fltk-config' \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
24 gl_cv_func_gettimeofday_clobber=no
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
25 ifeq ($(ENABLE_64),yes)
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
26 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64 ax_blas_f77_func_ok=yes
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
27 endif
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
28 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
29 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
30
2862
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 define $(PKG)_UPDATE
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 echo 'Warning: Updates are temporarily disabled for package octave.' >&2;
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 echo $(octave_VERSION)
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 endef
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 define $(PKG)_BUILD
2874
890aa60f7b87 Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents: 2873
diff changeset
37 mkdir '$(1)/.build'
2953
9ee646095047 temporary fix for mkoctfile variables
John W. Eaton <jwe@octave.org>
parents: 2952
diff changeset
38 cd '$(1)' && autoreconf -W none
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
39 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2995
diff changeset
40 $(CONFIGURE_CPPFLAGS) \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
41 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR)' \
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) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
43 --prefix='$(HOST_PREFIX)' \
3015
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
44 $($(PKG)_CROSS_CONFIG_OPTIONS) \
ec6f91539788 initial support for --enable-64
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
45 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS)
2874
890aa60f7b87 Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents: 2873
diff changeset
46
2936
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
47 ## We want both of these install steps so that we install in the
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
48 ## location set by the configure --prefix option, and the other
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
49 ## in a directory tree that will have just Octave files.
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
50 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
51 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_DIR)/octave install
2862
e93d77b61f17 Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 endef
2980
2cf09b449d88 readline patches for windows from goffioul
John W. Eaton <jwe@octave.org>
parents: 2975
diff changeset
53