Mercurial > mxe-octave
annotate src/octave.mk @ 2873:43a1c4d36636
Include arpack as a dependency of Octave
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Nov 2012 16:10:18 -0500 |
parents | eb2f17fbd971 |
children | 890aa60f7b87 |
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 := |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 $(PKG)_CHECKSUM := 1ea936554aaabaabb747a4fcf98ecfbbfb265656 |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.gz |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_URL := http://jweaton.org/$($(PKG)_FILE) |
2873
43a1c4d36636
Include arpack as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents:
2872
diff
changeset
|
9 $(PKG)_DEPS := arpack blas curl fltk gcc glpk graphicsmagick lapack pcre qrupdate readline suitesparse zlib |
2862
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 define $(PKG)_UPDATE |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 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
|
13 echo $(octave_VERSION) |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 endef |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 define $(PKG)_BUILD |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 # build GCC and support libraries |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 mkdir '$(1).build' |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 cd '$(1).build' && '$(1)/octave-$($(PKG)_VERSION)/configure' \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 --host='$(TARGET)' \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 --build="`config.guess`" \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 --prefix='$(PREFIX)/$(TARGET)' \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 --without-opengl \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 --disable-docs \ |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 --disable-gui |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 sed -i '/^#define \(gm\|local\)time rpl_/d' '$(1).build/config.h' |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 $(MAKE) -C '$(1).build' -j '$(JOBS)' install |
e93d77b61f17
Include support for building Octave.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 endef |