annotate src/stable-octave.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 4f9b72cf7ee7
children bcc26ffe9a0f
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)
137b8fb799a9 update stable octave to 3.6.4; include texinfo as dependency
John W. Eaton <jwe@octave.org>
parents: 2978
diff changeset
10 $(PKG)_DEPS := arpack blas curl fftw fltk fontconfig gcc 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' \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 --host='$(TARGET)' \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 --build="`config.guess`" \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
22 --prefix='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
23 FLTK_CONFIG="$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-fltk-config" \
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 gl_cv_func_gettimeofday_clobber=no
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 ## 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
27 ## 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
28 ## 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
29 $(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
30 $(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
31 endef