annotate src/stable-octave.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents 951da75fd09c
children 6dfbea9a9646
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
2961
170d65292853 src/stable-octave.mk: fix package name
John W. Eaton <jwe@octave.org>
parents: 2941
diff changeset
4 PKG := stable-octave
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2978
9d0ba0c088f5 update stable-octave to 3.6.4
John W. Eaton <jwe@octave.org>
parents: 2977
diff changeset
6 $(PKG)_CHECKSUM := 4563c3fdb15ac76419f78b8ad8a9b1ba3484a7aa
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := octave-$($(PKG)_VERSION)
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.gz
2979
137b8fb799a9 update stable octave to 3.6.4; include texinfo as dependency
John W. Eaton <jwe@octave.org>
parents: 2978
diff changeset
9 $(PKG)_URL := ftp://ftp.gnu.org/gnu/octave/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
10 $(PKG)_DEPS := arpack blas curl fftw fltk fontconfig glpk gnuplot graphicsmagick hdf5 lapack pcre pstoedit qhull qrupdate readline suitesparse texinfo zlib
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package octave.' >&2;
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 echo $($(PKG)_VERSION)
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 mkdir '$(1)/.build'
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 cd '$(1)/.build' && '$(1)/configure' \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
20 $(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
21 --prefix='$(HOST_PREFIX)' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
22 FLTK_CONFIG="$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)fltk-config" \
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 gl_cv_func_gettimeofday_clobber=no
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 ## We want both of these install steps so that we install in the
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 ## location set by the configure --prefix option, and the other
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 ## in a directory tree that will have just Octave files.
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 $(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
29 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_DIR)/octave-stable install
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 endef