annotate src/stable-octave.mk @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents 137b8fb799a9
children 4f9b72cf7ee7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
2961
170d65292853 src/stable-octave.mk: fix package name
John W. Eaton <jwe@octave.org>
parents: 2941
diff changeset
4 PKG := stable-octave
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2978
9d0ba0c088f5 update stable-octave to 3.6.4
John W. Eaton <jwe@octave.org>
parents: 2977
diff changeset
6 $(PKG)_CHECKSUM := 4563c3fdb15ac76419f78b8ad8a9b1ba3484a7aa
2939
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
2979
137b8fb799a9 update stable octave to 3.6.4; include texinfo as dependency
John W. Eaton <jwe@octave.org>
parents: 2978
diff changeset
9 $(PKG)_URL := ftp://ftp.gnu.org/gnu/octave/$($(PKG)_FILE)
137b8fb799a9 update stable octave to 3.6.4; include texinfo as dependency
John W. Eaton <jwe@octave.org>
parents: 2978
diff changeset
10 $(PKG)_DEPS := arpack blas curl fftw fltk fontconfig gcc glpk gnuplot graphicsmagick hdf5 lapack pcre pstoedit qhull qrupdate readline suitesparse texinfo zlib
2939
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
2963
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
18 if [ $(BUILD_SHARED) = yes ]; then \
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
19 $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin'; \
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
20 $(MAKE_SHARED_FROM_STATIC) --ar '$(TARGET)-ar' --ld '$(TARGET)-gcc' '$(PREFIX)/$(TARGET)/lib/libuuid.a'; \
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
21 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libuuid.dll.a' '$(PREFIX)/$(TARGET)/lib/libuuid.dll.a'; \
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
22 $(INSTALL) -m755 '$(PREFIX)/$(TARGET)/lib/libuuid.dll' '$(PREFIX)/$(TARGET)/bin/libuuid.dll'; \
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
23 rm -f '$(PREFIX)/$(TARGET)/lib/libuuid.dll'; \
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
24 fi
b804e33fe984 stable-octave.mk: generated shared version of libuuid
John W. Eaton <jwe@octave.org>
parents: 2961
diff changeset
25
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 mkdir '$(1)/.build'
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 cd '$(1)/.build' && '$(1)/configure' \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 --host='$(TARGET)' \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 --build="`config.guess`" \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 --prefix='$(PREFIX)/$(TARGET)' \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 FLTK_CONFIG="$(PREFIX)/bin/$(TARGET)-fltk-config" \
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 gl_cv_func_gettimeofday_clobber=no
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 ## 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
35 ## 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
36 ## 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
37 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
2940
fa2beb4c25a5 use separate DESTDIRs for octave-stable and octave
John W. Eaton <jwe@octave.org>
parents: 2939
diff changeset
38 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(PREFIX)/../octave-stable install
2939
30a5052213e6 octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 endef