Mercurial > mxe-octave
annotate src/octave.mk @ 2935:8cf0cbcdaeea
Include qscintilla as a dependency of Octave
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 02 Jan 2013 20:43:23 -0500 |
parents | 90f9826eb4d6 |
children | fc124629c527 |
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 := |
2931
5f923fdabefe
update to octave 3.7.1 snapshot
John W. Eaton <jwe@octave.org>
parents:
2914
diff
changeset
|
6 $(PKG)_CHECKSUM := 658a079ac498309d5aa5a2556f53a7856fcde938 |
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) |
2935
8cf0cbcdaeea
Include qscintilla as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2934
diff
changeset
|
10 $(PKG)_DEPS := arpack blas curl fftw fltk gcc glpk gnuplot graphicsmagick lapack llvm pcre qhull qrupdate qscintilla qt readline suitesparse 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' |
890aa60f7b87
Temporary Octave patch file, improve Octave config and build.
John W. Eaton <jwe@octave.org>
parents:
2873
diff
changeset
|
27 cd '$(1)/.build' && '$(1)/configure' \ |
2862
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 --host='$(TARGET)' \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 --build="`config.guess`" \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 --prefix='$(PREFIX)/$(TARGET)' \ |
2896
5da5a3cf24db
merge gcc.mk changes from stable
John W. Eaton <jwe@octave.org>
parents:
2894
diff
changeset
|
31 --disable-gui \ |
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 |
2932
0adbff7dec24
octave.mk: split build and install steps
John W. Eaton <jwe@octave.org>
parents:
2931
diff
changeset
|
35 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' |
0adbff7dec24
octave.mk: split build and install steps
John W. Eaton <jwe@octave.org>
parents:
2931
diff
changeset
|
36 $(MAKE) -C '$(1)/.build' -j 1 DESTDIR=$(PREFIX)/../octave install |
2862
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 endef |