Mercurial > mxe-octave
annotate src/stable-octave.mk @ 4339:07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
* src/default-octave.mk, src/octave.mk, src/stable-octave.mk:
make qhull always a dependancy, remove --without-qhull
author | John D |
---|---|
date | Thu, 19 Jan 2017 07:43:05 -0500 |
parents | e622765c49c7 |
children | 15570dc33a8c |
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 := |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
6 $(PKG)_VERSION := 4.2.0 |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
7 $(PKG)_CHECKSUM := de2977e8b242cb655ec326b8f7718d43a15135a9 |
2939
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := octave-$($(PKG)_VERSION) |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
9 $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.lz |
4112
a047bc8d7910
* stable-octave.mk: Update to correct ftp site for 4.0.1.
John W. Eaton <jwe@octave.org>
parents:
4110
diff
changeset
|
10 $(PKG)_URL := ftp://ftp.gnu.org/gnu/octave/$($(PKG)_FILE) |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
11 ifeq ($(USE_SYSTEM_FONTCONFIG),no) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
12 $(PKG)_FONTCONFIG := fontconfig |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
13 endif |
4339
07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
John D
parents:
4245
diff
changeset
|
14 $(PKG)_DEPS := blas arpack curl epstool fftw fltk $($(PKG)_FONTCONFIG) ghostscript gl2ps glpk gnuplot graphicsmagick hdf5 lapack libsndfile osmesa pcre portaudio pstoedit qhull qrupdate qscintilla readline suitesparse texinfo zlib |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
15 |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
16 ifeq ($(ENABLE_QT5),yes) |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
17 $(PKG)_DEPS += qt5 |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
18 else |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
19 $(PKG)_DEPS += qt |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
20 endif |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
21 |
3743
4f58c4b4dee0
build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
3692
diff
changeset
|
22 ifeq ($(MXE_WINDOWS_BUILD),no) |
3827
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3807
diff
changeset
|
23 ifeq ($(USE_SYSTEM_X11_LIBS),no) |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3807
diff
changeset
|
24 $(PKG)_DEPS += x11 xext |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3807
diff
changeset
|
25 endif |
3743
4f58c4b4dee0
build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
3692
diff
changeset
|
26 endif |
4189 | 27 ifeq ($(MXE_SYSTEM),mingw) |
28 ifeq ($(USE_SYSTEM_GCC),no) | |
29 $(PKG)_DEPS += libgomp | |
30 endif | |
31 endif | |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
32 ifeq ($(ENABLE_JIT),yes) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
33 $(PKG)_DEPS += llvm |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
34 $(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --enable-jit |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
35 else |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
36 $(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --disable-jit |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
37 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
38 |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
39 ifeq ($(ENABLE_JAVA),no) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
40 $(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS := --disable-java |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
41 else |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
42 ifeq ($(MXE_SYSTEM),mingw) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
43 ifeq ($(MXE_NATIVE_BUILD),no) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
44 $(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS := \ |
3527
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
45 --with-java-includedir="$(HOST_INCDIR)/java" |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
46 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
47 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
48 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
49 |
3849
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3827
diff
changeset
|
50 ## If we allow the system Qt libraries to be used, then these |
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3827
diff
changeset
|
51 ## won't make sense. |
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3827
diff
changeset
|
52 $(PKG)_QT_CONFIGURE_OPTIONS := \ |
3851
c55d9f182272
use MXE_XXXX tools for octave qt compiling (Bug 44563)
John Donoghue
parents:
3849
diff
changeset
|
53 MOC=$(MXE_MOC) \ |
c55d9f182272
use MXE_XXXX tools for octave qt compiling (Bug 44563)
John Donoghue
parents:
3849
diff
changeset
|
54 UIC=$(MXE_UIC) \ |
c55d9f182272
use MXE_XXXX tools for octave qt compiling (Bug 44563)
John Donoghue
parents:
3849
diff
changeset
|
55 RCC=$(MXE_RCC) \ |
c55d9f182272
use MXE_XXXX tools for octave qt compiling (Bug 44563)
John Donoghue
parents:
3849
diff
changeset
|
56 LRELEASE=$(MXE_LRELEASE) |
3849
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3827
diff
changeset
|
57 |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
58 ifeq ($(ENABLE_QT5),yes) |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
59 #$(PKG)_PKG_CONFIG_PATH := "$(HOST_LIBDIR)/pkgconfig" |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
60 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt5/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig" |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
61 $(PKG)_QTDIR := $(HOST_PREFIX)/qt5 |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
62 else |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
63 $(PKG)_PKG_CONFIG_PATH := "$(HOST_LIBDIR)/pkgconfig" |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
64 $(PKG)_QTDIR := $(HOST_PREFIX) |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
65 endif |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
66 |
3497
ddaf87b79532
pass --disable-docs to Octave configure script unless ENABLE_DOCS == yes
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
67 ifneq ($(ENABLE_DOCS),yes) |
ddaf87b79532
pass --disable-docs to Octave configure script unless ENABLE_DOCS == yes
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
68 $(PKG)_ENABLE_DOCS_CONFIGURE_OPTIONS := --disable-docs |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
69 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
70 |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
71 ifeq ($(MXE_NATIVE_BUILD),yes) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
72 $(PKG)_CONFIGURE_ENV := LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
73 ifeq ($(ENABLE_64),yes) |
4339
07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
John D
parents:
4245
diff
changeset
|
74 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64 F77_INTEGER_8_FLAG=-fdefault-integer-8 |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
75 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
76 else |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
77 ifeq ($(MXE_SYSTEM),mingw) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
78 $(PKG)_CROSS_CONFIG_OPTIONS := \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
79 FLTK_CONFIG='$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)fltk-config' \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
80 gl_cv_func_gettimeofday_clobber=no |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
81 ifeq ($(ENABLE_64),yes) |
4339
07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
John D
parents:
4245
diff
changeset
|
82 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64 F77_INTEGER_8_FLAG=-fdefault-integer-8 ax_blas_f77_func_ok=yes |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
83 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
84 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
85 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
86 |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
87 ifeq ($(MXE_SYSTEM),msvc) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
88 $(PKG)_PREFIX := '$(HOST_PREFIX)/local/$($(PKG)_SUBDIR)' |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
89 # - Enable atomic refcount (required for QtHandles) |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
90 # - Skip configure test for pow and sqrt, MSVC fails to compile them |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
91 # because it uses intrinsics (with -O2 flag) and bump on the fake |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
92 # "char FUNC()" forward declaration. |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
93 # - Override CFLAGS and CXXFLAGS to disable some warnings. |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
94 $(PKG)_EXTRA_CONFIGURE_OPTIONS := \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
95 --enable-atomic-refcount \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
96 ac_cv_func_pow=yes ac_cv_func_sqrt=yes \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
97 CFLAGS='-O2 -wd4244 -wd4003 -wd4005 -wd4068' \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
98 CXXFLAGS='-O2 -wd4244 -wd4003 -wd4005 -wd4068' |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
99 else |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
100 $(PKG)_PREFIX := '$(HOST_PREFIX)' |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
101 $(PKG)_EXTRA_CONFIGURE_OPTIONS := \ |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
102 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR) -L$($(PKG)_QTDIR)/lib' |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
103 endif |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
104 |
3646
f38e710f1d95
octave: add --no-x flag when compiling for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3643
diff
changeset
|
105 ifeq ($(MXE_SYSTEM),mingw) |
3647
fc67e3ab9324
fix typo to disable X
John Donoghue <john.donoghue@ieee.org>
parents:
3646
diff
changeset
|
106 $(PKG)_EXTRA_CONFIGURE_OPTIONS += --with-x=no |
3646
f38e710f1d95
octave: add --no-x flag when compiling for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3643
diff
changeset
|
107 endif |
f38e710f1d95
octave: add --no-x flag when compiling for mingw
John Donoghue <john.donoghue@ieee.org>
parents:
3643
diff
changeset
|
108 |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
109 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
110 $(PKG)_EXTRA_CONFIGURE_OPTIONS += ac_cv_search_tputs=-ltermcap |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
111 endif |
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
112 |
3951
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
113 # if want binary packages and are cross compiling, then we need cross tools enabled |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
114 ifeq ($(ENABLE_BINARY_PACKAGES),yes) |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
115 ifeq ($(MXE_NATIVE_BUILD),no) |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
116 $(PKG)_EXTRA_CONFIGURE_OPTIONS += --enable-cross-tools |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
117 endif |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
118 endif |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
119 |
2939
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
120 define $(PKG)_UPDATE |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
121 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
|
122 echo $($(PKG)_VERSION) |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
123 endef |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
124 |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
125 define $(PKG)_BUILD |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
126 # jni install |
3527
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
127 if [ "$(MXE_SYSTEM)" == "mingw" ] \ |
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
128 && [ "$(MXE_NATIVE_BUILD)" == "no" ] \ |
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
129 && [ "$(ENABLE_JAVA)" == "yes" ]; then \ |
3519
de728273f855
update stable-octave package for 3.8.1-rc1
John W. Eaton <jwe@octave.org>
parents:
3516
diff
changeset
|
130 if [ ! -f $(HOST_INCDIR)/java/jni.h ]; then \ |
3527
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
131 mkdir -p '$(HOST_INCDIR)/java'; \ |
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
132 $(WGET) -N http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/raw-file/tip/src/share/javavm/export/jni.h \ |
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
133 -O $(HOST_INCDIR)/java/jni.h; \ |
3516
3b5b776331f1
Only download java .h files if not already available
John Donoghue <john.donoghue@ieee.org>
parents:
3498
diff
changeset
|
134 fi; \ |
3519
de728273f855
update stable-octave package for 3.8.1-rc1
John W. Eaton <jwe@octave.org>
parents:
3516
diff
changeset
|
135 if [ ! -f $(HOST_INCDIR)/java/win32/jni_md.h ]; then \ |
3527
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
136 mkdir -p '$(HOST_INCDIR)/java/win32'; \ |
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
137 $(WGET) -N http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/raw-file/tip/src/windows/javavm/export/jni_md.h \ |
b111822b0bf0
stable-octave.mk, octave.mk: Set java include dir, not home dir.
John W. Eaton <jwe@octave.org>
parents:
3519
diff
changeset
|
138 -O $(HOST_INCDIR)/java/win32/jni_md.h; \ |
3516
3b5b776331f1
Only download java .h files if not already available
John Donoghue <john.donoghue@ieee.org>
parents:
3498
diff
changeset
|
139 fi; \ |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
140 fi |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
141 |
2939
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
142 mkdir '$(1)/.build' |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
143 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
144 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
145 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
146 --prefix='$($(PKG)_PREFIX)' \ |
3807
c6dd0518f31b
use --disable-silent-rules for Octave builds
John W. Eaton <jwe@octave.org>
parents:
3791
diff
changeset
|
147 --disable-silent-rules \ |
3951
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
148 --enable-install-build-logs \ |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
149 $($(PKG)_CROSS_CONFIG_OPTIONS) \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
150 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
151 $($(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS) \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
152 $($(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS) \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
153 $($(PKG)_ENABLE_DOCS_CONFIGURE_OPTIONS) \ |
3849
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3827
diff
changeset
|
154 $($(PKG)_QT_CONFIGURE_OPTIONS) \ |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
155 $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
156 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
4245
e622765c49c7
Update stable-octave package for 4.2.0 release.
John W. Eaton <jwe@octave.org>
parents:
4189
diff
changeset
|
157 PKG_CONFIG_PATH=$($(PKG)_PKG_CONFIG_PATH) \ |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
158 && $(CONFIGURE_POST_HOOK) |
2939
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
159 |
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
160 ## 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
|
161 ## 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
|
162 ## in a directory tree that will have just Octave files. |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
163 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
164 |
3423
c8e055d83b9f
Set start directory to user home (Bug #41220)
John D <john.donoghue@ieee.org>
parents:
3417
diff
changeset
|
165 if [ "x$(MXE_SYSTEM)" == "xmingw" ]; then \ |
c8e055d83b9f
Set start directory to user home (Bug #41220)
John D <john.donoghue@ieee.org>
parents:
3417
diff
changeset
|
166 cp '$(1)/.build/src/.libs/octave-gui.exe' '$(3)$(HOST_BINDIR)'; \ |
3951
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
167 if [ "x$(ENABLE_BINARY_PACKAGES)" == "xyes" ]; then \ |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
168 mkdir -p '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
169 $(INSTALL) '$(1)/.build/src/$(MXE_TOOL_PREFIX)mkoctfile' '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
170 $(INSTALL) '$(1)/.build/src/$(MXE_TOOL_PREFIX)octave-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ |
1cab2860069e
stable-octave: update to 4.0.0
John W. Eaton <jwe@octave.org>
parents:
3851
diff
changeset
|
171 fi; \ |
3423
c8e055d83b9f
Set start directory to user home (Bug #41220)
John D <john.donoghue@ieee.org>
parents:
3417
diff
changeset
|
172 fi |
c8e055d83b9f
Set start directory to user home (Bug #41220)
John D <john.donoghue@ieee.org>
parents:
3417
diff
changeset
|
173 |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
174 if [ "x$(ENABLE_DOCS)" == "xyes" ]; then \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
175 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(3) install-pdf install-html; \ |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
176 fi |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
177 |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
178 if [ $(MXE_SYSTEM) != msvc ]; then \ |
4066 | 179 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_BUILD_DIR)/octave install; \ |
3383
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
180 fi |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
181 |
6dfbea9a9646
Update stable-octave to 3.8.0
John Donoghue <john.donoghue@ieee.org>
parents:
3048
diff
changeset
|
182 # create a file with latest installed octave rev in it |
4066 | 183 echo "$($(PKG)_VERSION)" > $(TOP_BUILD_DIR)/octave/octave-version |
2939
30a5052213e6
octave-stable: build stable version of Octave
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
184 endef |