Mercurial > mxe-octave
annotate src/octave-stable.mk @ 2939:30a5052213e6
octave-stable: build stable version of Octave
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Jan 2013 15:48:04 -0500 |
parents | |
children | fa2beb4c25a5 |
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 |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 PKG := octave-stable |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := 543d0c9e9a6c5406004b86a803c34711f0cdfcdf |
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 |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 $(PKG)_URL := ftp://alpha.gnu.org/gnu/octave/$($(PKG)_FILE) |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 $(PKG)_DEPS := arpack blas curl fftw fltk gcc glpk gnuplot graphicsmagick lapack pcre qhull qrupdate readline suitesparse zlib |
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 # build GCC and support libraries |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 mkdir '$(1)/.build' |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 cd '$(1)/.build' && '$(1)/configure' \ |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 --host='$(TARGET)' \ |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 --build="`config.guess`" \ |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 --prefix='$(PREFIX)/$(TARGET)' \ |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 FLTK_CONFIG="$(PREFIX)/bin/$(TARGET)-fltk-config" \ |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 gl_cv_func_gettimeofday_clobber=no |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 ## 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
|
28 ## 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
|
29 ## 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
|
30 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(PREFIX)/../octave install |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 endef |