annotate src/octave.mk @ 2952:09a58eb274f4

Include pstoedit as a dependency of Octave
author John W. Eaton <jwe@octave.org>
date Tue, 08 Jan 2013 22:31:24 -0500
parents 01a2b5484d88
children 9ee646095047
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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)
2952
09a58eb274f4 Include pstoedit as a dependency of Octave
John W. Eaton <jwe@octave.org>
parents: 2951
diff changeset
10 $(PKG)_DEPS := arpack blas curl fftw fltk gcc glpk gnuplot graphicsmagick 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'
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)' \
2899
b4e625571bf6 Include fontconfig and freetype as a dependencies of Octave.
John W. Eaton <jwe@octave.org>
parents: 2894
diff changeset
31 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
32 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
33
2936
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
34 ## 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
35 ## location set by the configure --prefix option, and the other
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
36 ## in a directory tree that will have just Octave files.
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
37 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
fc124629c527 backout changeset 0adbff7dec24
John W. Eaton <jwe@octave.org>
parents: 2935
diff changeset
38 $(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
39 endef