Mercurial > mxe-octave
annotate src/default-octave.mk @ 4502:ea11b18f72ae
default-octave: Set Qscintilla library name for configure.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 10 Oct 2017 15:03:01 -0400 |
parents | 8f9bee27223f |
children | dd217cbcc0a2 |
rev | line source |
---|---|
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
3 |
3758
d80808c840aa
omit checksum for default-octave package
John W. Eaton <jwe@octave.org>
parents:
3755
diff
changeset
|
4 ## We omit the package checksum so that we don't have to update it |
d80808c840aa
omit checksum for default-octave package
John W. Eaton <jwe@octave.org>
parents:
3755
diff
changeset
|
5 ## each time the tarball changes on the hydra site. |
d80808c840aa
omit checksum for default-octave package
John W. Eaton <jwe@octave.org>
parents:
3755
diff
changeset
|
6 |
3722
26f68f03c4b2
default-octave: fix typo in name of package
John Donoghue <john.donoghue@ieee.org>
parents:
3721
diff
changeset
|
7 PKG := default-octave |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 $(PKG)_IGNORE := |
4223
2b9f1923dc21
default-octave.mk: Update pkg version to 4.3.0+.
John W. Eaton <jwe@octave.org>
parents:
4222
diff
changeset
|
9 $(PKG)_VERSION := 4.3.0+ |
3857
c7505b1c28b1
default-octave.mk: undo previous change; point to current hydra version
John W. Eaton <jwe@octave.org>
parents:
3855
diff
changeset
|
10 $(PKG)_CHECKSUM := ## No checksum |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
11 $(PKG)_SUBDIR := octave-$($(PKG)_VERSION) |
3857
c7505b1c28b1
default-octave.mk: undo previous change; point to current hydra version
John W. Eaton <jwe@octave.org>
parents:
3855
diff
changeset
|
12 $(PKG)_FILE := octave-$($(PKG)_VERSION).tar.gz |
c7505b1c28b1
default-octave.mk: undo previous change; point to current hydra version
John W. Eaton <jwe@octave.org>
parents:
3855
diff
changeset
|
13 $(PKG)_URL := http://hydra.nixos.org/job/gnu/octave-default/tarball/latest/download |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
14 ifeq ($(USE_SYSTEM_FONTCONFIG),no) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
15 $(PKG)_FONTCONFIG := fontconfig |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
16 endif |
4488
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4463
diff
changeset
|
17 $(PKG)_DEPS := blas arpack curl epstool fftw fltk $($(PKG)_FONTCONFIG) ghostscript gl2ps glpk gnuplot graphicsmagick hdf5 lapack libsndfile mesa pcre portaudio pstoedit qhull qrupdate qscintilla readline sundials-ida suitesparse texinfo zlib |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
18 |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
19 ifeq ($(ENABLE_QT5),yes) |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
20 $(PKG)_DEPS += qt5 |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
21 else |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
22 $(PKG)_DEPS += qt |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
23 endif |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
24 |
3743
4f58c4b4dee0
build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
3722
diff
changeset
|
25 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
|
26 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
|
27 $(PKG)_DEPS += x11 xext |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3807
diff
changeset
|
28 endif |
3743
4f58c4b4dee0
build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
3722
diff
changeset
|
29 endif |
4189 | 30 |
31 ifeq ($(MXE_SYSTEM),mingw) | |
32 ifeq ($(USE_SYSTEM_GCC),no) | |
33 $(PKG)_DEPS += libgomp | |
34 endif | |
35 endif | |
36 | |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
37 ifeq ($(ENABLE_JIT),yes) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
38 $(PKG)_DEPS += llvm |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
39 $(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --enable-jit |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
40 else |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
41 $(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --disable-jit |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
42 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
43 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
44 ifeq ($(ENABLE_JAVA),no) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
45 $(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS := --disable-java |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
46 else |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
47 ifeq ($(MXE_SYSTEM),mingw) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
48 ifeq ($(MXE_NATIVE_BUILD),no) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
49 $(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS := \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
50 --with-java-includedir="$(HOST_INCDIR)/java" |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
51 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
52 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
53 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
54 |
3849
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3836
diff
changeset
|
55 ## 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:
3836
diff
changeset
|
56 ## won't make sense. |
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3836
diff
changeset
|
57 $(PKG)_QT_CONFIGURE_OPTIONS := \ |
4352
bf358512f67e
Correctly locate cross-compiler versions of Qt tools (bug #50258).
Rik <rik@octave.org>
parents:
4339
diff
changeset
|
58 MOC_QTVER=$(MXE_MOC) \ |
bf358512f67e
Correctly locate cross-compiler versions of Qt tools (bug #50258).
Rik <rik@octave.org>
parents:
4339
diff
changeset
|
59 UIC_QTVER=$(MXE_UIC) \ |
bf358512f67e
Correctly locate cross-compiler versions of Qt tools (bug #50258).
Rik <rik@octave.org>
parents:
4339
diff
changeset
|
60 RCC_QTVER=$(MXE_RCC) \ |
bf358512f67e
Correctly locate cross-compiler versions of Qt tools (bug #50258).
Rik <rik@octave.org>
parents:
4339
diff
changeset
|
61 LRELEASE_QTVER=$(MXE_LRELEASE) |
3849
e50c777c9a97
explicitly set MOC, UIC, RCC, and LRELEASE for Octave configure commands
John W. Eaton <jwe@octave.org>
parents:
3836
diff
changeset
|
62 |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
63 ifeq ($(ENABLE_QT5),yes) |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
64 #$(PKG)_PKG_CONFIG_PATH := "$(HOST_LIBDIR)/pkgconfig" |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
65 $(PKG)_PKG_CONFIG_PATH := "$(HOST_PREFIX)/qt5/lib/pkgconfig:$(HOST_LIBDIR)/pkgconfig" |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
66 $(PKG)_QTDIR := $(HOST_PREFIX)/qt5 |
4502
ea11b18f72ae
default-octave: Set Qscintilla library name for configure.
John W. Eaton <jwe@octave.org>
parents:
4488
diff
changeset
|
67 $(PKG)_QT_CONFIGURE_OPTIONS += octave_cv_lib_qscintilla="-lqscintilla2_qt5" |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
68 else |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
69 $(PKG)_PKG_CONFIG_PATH := "$(HOST_LIBDIR)/pkgconfig" |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
70 $(PKG)_QTDIR := $(HOST_PREFIX) |
4502
ea11b18f72ae
default-octave: Set Qscintilla library name for configure.
John W. Eaton <jwe@octave.org>
parents:
4488
diff
changeset
|
71 $(PKG)_QT_CONFIGURE_OPTIONS += octave_cv_lib_qscintilla="-lqscintilla2_qt4" |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
72 endif |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
73 |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
74 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
75 ifneq ($(ENABLE_DOCS),yes) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
76 $(PKG)_ENABLE_DOCS_CONFIGURE_OPTIONS := --disable-docs |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
77 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
78 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
79 ifeq ($(MXE_NATIVE_BUILD),yes) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
80 $(PKG)_CONFIGURE_ENV := LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
81 ifeq ($(ENABLE_64),yes) |
4339
07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
John D
parents:
4311
diff
changeset
|
82 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64 |
4311
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
83 else |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
84 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --disable-64 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
85 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
86 else |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
87 ifeq ($(MXE_SYSTEM),mingw) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
88 $(PKG)_CROSS_CONFIG_OPTIONS := \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
89 FLTK_CONFIG='$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)fltk-config' \ |
4407
e9b032b9340a
octave: cross-compile gnulib time functions correctly (bug #51351)
Mike Miller <mtmiller@octave.org>
parents:
4352
diff
changeset
|
90 gl_cv_func_gettimeofday_clobber=no \ |
e9b032b9340a
octave: cross-compile gnulib time functions correctly (bug #51351)
Mike Miller <mtmiller@octave.org>
parents:
4352
diff
changeset
|
91 gl_cv_func_tzset_clobber=no |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
92 ifeq ($(ENABLE_64),yes) |
4339
07671a76e291
qhull: enable qhull when compiling for 64bit (Bug #50069)
John D
parents:
4311
diff
changeset
|
93 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64 |
4311
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
94 else |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
95 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --disable-64 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
96 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
97 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
98 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
99 |
4311
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
100 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
101 $(PKG)_ENABLE_FORTRAN_INT64_CONFIGURE_OPTIONS := F77_INTEGER_8_FLAG=-fdefault-integer-8 ax_blas_f77_func_ok=yes ax_blas_integer_size=8 octave_cv_sizeof_fortran_integer=8 |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
102 else |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
103 $(PKG)_ENABLE_FORTRAN_INT64_CONFIGURE_OPTIONS := ax_blas_f77_func_ok=yes ax_blas_integer_size=4 octave_cv_sizeof_fortran_integer=4 |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
104 endif |
8528b1ccd529
default-octave: fix F77 integer size configuration
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
105 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
106 ifeq ($(MXE_SYSTEM),msvc) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
107 $(PKG)_PREFIX := '$(HOST_PREFIX)/local/$($(PKG)_SUBDIR)' |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
108 # - Enable atomic refcount (required for QtHandles) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
109 # - Skip configure test for pow and sqrt, MSVC fails to compile them |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
110 # because it uses intrinsics (with -O2 flag) and bump on the fake |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
111 # "char FUNC()" forward declaration. |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
112 # - Override CFLAGS and CXXFLAGS to disable some warnings. |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
113 $(PKG)_EXTRA_CONFIGURE_OPTIONS := \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
114 --enable-atomic-refcount \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
115 ac_cv_func_pow=yes ac_cv_func_sqrt=yes \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
116 CFLAGS='-O2 -wd4244 -wd4003 -wd4005 -wd4068' \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
117 CXXFLAGS='-O2 -wd4244 -wd4003 -wd4005 -wd4068' |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
118 else |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
119 $(PKG)_PREFIX := '$(HOST_PREFIX)' |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
120 $(PKG)_EXTRA_CONFIGURE_OPTIONS := \ |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
121 LDFLAGS='-Wl,-rpath-link,$(HOST_LIBDIR) -L$(HOST_LIBDIR) -L$($(PKG)_QTDIR)/lib' |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
122 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
123 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
124 ifeq ($(MXE_SYSTEM),mingw) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
125 $(PKG)_EXTRA_CONFIGURE_OPTIONS += --with-x=no |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
126 endif |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
127 |
3968 | 128 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) |
129 $(PKG)_EXTRA_CONFIGURE_OPTIONS += ac_cv_search_tputs=-ltermcap | |
130 endif | |
131 | |
3854 | 132 # if want binary packages and are cross compiling, then we need cross tools enabled |
3853
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3852
diff
changeset
|
133 ifeq ($(ENABLE_BINARY_PACKAGES),yes) |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3852
diff
changeset
|
134 ifeq ($(MXE_NATIVE_BUILD),no) |
3854 | 135 $(PKG)_EXTRA_CONFIGURE_OPTIONS += --enable-cross-tools |
3853
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3852
diff
changeset
|
136 endif |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3852
diff
changeset
|
137 endif |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3852
diff
changeset
|
138 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
139 define $(PKG)_UPDATE |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
140 echo 'Warning: Updates are temporarily disabled for package octave.' >&2; |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
141 echo $($(PKG)_VERSION) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
142 endef |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
143 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
144 define $(PKG)_BUILD |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
145 # jni install |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
146 if [ "$(MXE_SYSTEM)" == "mingw" ] \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
147 && [ "$(MXE_NATIVE_BUILD)" == "no" ] \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
148 && [ "$(ENABLE_JAVA)" == "yes" ]; then \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
149 if [ ! -f $(HOST_INCDIR)/java/jni.h ]; then \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
150 mkdir -p '$(HOST_INCDIR)/java'; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
151 $(WGET) -N http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/raw-file/tip/src/share/javavm/export/jni.h \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
152 -O $(HOST_INCDIR)/java/jni.h; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
153 fi; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
154 if [ ! -f $(HOST_INCDIR)/java/win32/jni_md.h ]; then \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
155 mkdir -p '$(HOST_INCDIR)/java/win32'; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
156 $(WGET) -N http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/raw-file/tip/src/windows/javavm/export/jni_md.h \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
157 -O $(HOST_INCDIR)/java/win32/jni_md.h; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
158 fi; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
159 fi |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
160 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
161 mkdir '$(1)/.build' |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
162 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
163 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
164 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
165 --prefix='$($(PKG)_PREFIX)' \ |
3807
c6dd0518f31b
use --disable-silent-rules for Octave builds
John W. Eaton <jwe@octave.org>
parents:
3791
diff
changeset
|
166 --disable-silent-rules \ |
3852
a781fda0a9c6
octave: enable install of build log (Bug #44575)
John Donoghue
parents:
3851
diff
changeset
|
167 --enable-install-build-logs \ |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
168 $($(PKG)_CROSS_CONFIG_OPTIONS) \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
169 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) \ |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4223
diff
changeset
|
170 $($(PKG)_ENABLE_FORTRAN_INT64_CONFIGURE_OPTIONS) \ |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
171 $($(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS) \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
172 $($(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS) \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
173 $($(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:
3836
diff
changeset
|
174 $($(PKG)_QT_CONFIGURE_OPTIONS) \ |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
175 $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
176 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4221
diff
changeset
|
177 PKG_CONFIG_PATH=$($(PKG)_PKG_CONFIG_PATH) \ |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
178 && $(CONFIGURE_POST_HOOK) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
179 |
3993
3a38544f2a8f
default-octave: update cur current dev branch build
John D
parents:
3986
diff
changeset
|
180 $(MAKE) -C '$(1)/.build/libgnu' |
3a38544f2a8f
default-octave: update cur current dev branch build
John D
parents:
3986
diff
changeset
|
181 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
182 ## We want both of these install steps so that we install in the |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
183 ## location set by the configure --prefix option, and the other |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
184 ## in a directory tree that will have just Octave files. |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
185 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
186 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
187 if [ "x$(MXE_SYSTEM)" == "xmingw" ]; then \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
188 cp '$(1)/.build/src/.libs/octave-gui.exe' '$(3)$(HOST_BINDIR)'; \ |
3854 | 189 if [ "x$(ENABLE_BINARY_PACKAGES)" == "xyes" ]; then \ |
190 mkdir -p '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ | |
191 $(INSTALL) '$(1)/.build/src/$(MXE_TOOL_PREFIX)mkoctfile' '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ | |
192 $(INSTALL) '$(1)/.build/src/$(MXE_TOOL_PREFIX)octave-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin'; \ | |
193 fi; \ | |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
194 fi |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
195 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
196 if [ "x$(ENABLE_DOCS)" == "xyes" ]; then \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
197 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(3) install-pdf install-html; \ |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
198 fi |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
199 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
200 if [ $(MXE_SYSTEM) != msvc ]; then \ |
4066 | 201 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' DESTDIR=$(TOP_BUILD_DIR)/octave install; \ |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
202 fi |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
203 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
204 # create a file with latest installed octave rev in it |
4066 | 205 echo "$($(PKG)_VERSION)" > $(TOP_BUILD_DIR)/octave/octave-version |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
206 endef |