Mercurial > mxe-octave
annotate src/octave.mk @ 2981:fda4940ba71b
update to Octave 3.7.3
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 22 Apr 2013 00:48:36 -0400 |
parents | 2cf09b449d88 |
children | 3392e7d0cbf2 |
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 := |
2981 | 6 $(PKG)_CHECKSUM := 7cc67e2b374d5d942982a12eb1bdf2a4a3aeda34 |
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) |
2967
eeb7a7067d85
include hdf5 and fontconfig as Octave deps
John W. Eaton <jwe@octave.org>
parents:
2953
diff
changeset
|
10 $(PKG)_DEPS := arpack blas curl fontconfig fftw fltk gcc glpk gnuplot graphicsmagick hdf5 lapack llvm pcre pstoedit qhull qrupdate qscintilla qt readline suitesparse texinfo zlib |
2862
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 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
|
14 echo $(octave_VERSION) |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 endef |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 define $(PKG)_BUILD |
2903
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
18 if [ $(BUILD_SHARED) = yes ]; then \ |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
19 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \ |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
20 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libuuid.a'; \ |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
21 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libuuid.dll.a' '$(PREFIX)/$(TARGET)/lib/libuuid.dll.a'; \ |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
22 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libuuid.dll' '$(PREFIX)/$(TARGET)/bin/libuuid.dll'; \ |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
23 rm -f '$(PREFIX)/$(TARGET)/lib/libuuid.dll'; \ |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
24 fi |
41df214441e9
Update to new Octave version.
John W. Eaton <jwe@octave.org>
parents:
2900
diff
changeset
|
25 |
2874
890aa60f7b87
Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents:
2873
diff
changeset
|
26 mkdir '$(1)/.build' |
2953
9ee646095047
temporary fix for mkoctfile variables
John W. Eaton <jwe@octave.org>
parents:
2952
diff
changeset
|
27 cd '$(1)' && autoreconf -W none |
2874
890aa60f7b87
Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents:
2873
diff
changeset
|
28 cd '$(1)/.build' && '$(1)/configure' \ |
2862
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 --host='$(TARGET)' \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 --build="`config.guess`" \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 --prefix='$(PREFIX)/$(TARGET)' \ |
2899
b4e625571bf6
Include fontconfig and freetype as a dependencies of Octave.
John W. Eaton <jwe@octave.org>
parents:
2894
diff
changeset
|
32 FLTK_CONFIG="$(PREFIX)/bin/$(TARGET)-fltk-config" \ |
2874
890aa60f7b87
Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents:
2873
diff
changeset
|
33 gl_cv_func_gettimeofday_clobber=no |
890aa60f7b87
Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents:
2873
diff
changeset
|
34 |
2936
fc124629c527
backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents:
2935
diff
changeset
|
35 ## 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
|
36 ## location set by the configure --prefix option, and the other |
fc124629c527
backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents:
2935
diff
changeset
|
37 ## in a directory tree that will have just Octave files. |
fc124629c527
backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents:
2935
diff
changeset
|
38 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install |
fc124629c527
backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents:
2935
diff
changeset
|
39 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(PREFIX)/../octave install |
2862
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 endef |
2980
2cf09b449d88
readline patches for windows from goffioul
John W. Eaton <jwe@octave.org>
parents:
2975
diff
changeset
|
41 |