Mercurial > mxe-octave
comparison src/build-octave.mk @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | |
children | da87a2623190 |
comparison
equal
deleted
inserted
replaced
5530:1b16d40c6611 | 5531:eae508c12529 |
---|---|
1 # This file is part of MXE. | |
2 # See index.html for further information. | |
3 | |
4 ## This package is intended for building a minimal version of Octave that | |
5 ## runs on the build system. Some Octave Forge packages need Octave as a | |
6 ## build tool. | |
7 ## This version of Octave is built from the same tarball that is used for | |
8 ## cross-compiling. However, the native Octave is unavoidably different | |
9 ## from the Octave that is built for the target system. Packages must be | |
10 ## careful when relying on Octave for configuration settings. Wherever | |
11 ## possible, packages should try to not depend on Octave as a build tool | |
12 ## and should use alternatives instead (e.g., [target]-octave-config or | |
13 ## check the macros defined in octave-config.h). | |
14 ## | |
15 ## It is assumed that the necessary dependencies for a native build are | |
16 ## present on the build system. | |
17 | |
18 PKG := build-octave | |
19 $(PKG)_IGNORE := | |
20 $(PKG)_VERSION := $($(OCTAVE_TARGET)_VERSION) | |
21 $(PKG)_CHECKSUM := $($(OCTAVE_TARGET)_CHECKSUM) | |
22 $(PKG)_SUBDIR := $($(OCTAVE_TARGET)_SUBDIR) | |
23 $(PKG)_FILE := $($(OCTAVE_TARGET)_FILE) | |
24 $(PKG)_URL := $($(OCTAVE_TARGET)_URL) | |
25 $(PKG)_DEPS := $(OCTAVE_TARGET) | |
26 | |
27 ## The following dependencies and some native build tools are necessary | |
28 ## on the build system: | |
29 # $(PKG)_DEPS := blas lapack pcre | |
30 | |
31 define $(PKG)_UPDATE | |
32 echo 'Warning: Updates are disabled for package build-octave.' >&2; | |
33 echo $($(PKG)_VERSION) | |
34 endef | |
35 | |
36 $(PKG)_ENV_FLAGS := \ | |
37 PKG_CONFIG_PATH='$(BUILD_PKG_CONFIG_PATH)' \ | |
38 LD_LIBRARY_PATH='$(LD_LIBRARY_PATH)' \ | |
39 PATH='$(ENV_PATH)' | |
40 | |
41 ifeq ($(ENABLE_64),yes) | |
42 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --enable-64 | |
43 else | |
44 $(PKG)_ENABLE_64_CONFIGURE_OPTIONS := --disable-64 | |
45 endif | |
46 | |
47 define $(PKG)_BUILD | |
48 mkdir '$(1)/.build' | |
49 cd '$(1)/.build' && \ | |
50 $($(PKG)_ENV_FLAGS) '$(1)/configure' \ | |
51 --prefix=$(ROOT_PREFIX) \ | |
52 $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) \ | |
53 --disable-docs --disable-fftw-threads --disable-java \ | |
54 --disable-jit --disable-openmp --disable-readline --without-amd \ | |
55 --without-arpack --without-bz2 --without-camd --without-ccolamd \ | |
56 --without-cholmod --without-colamd --without-curl \ | |
57 --without-cxsparse --without-fftw3 --without-fftw3f \ | |
58 --without-fltk --without-fontconfig --without-framework-opengl \ | |
59 --without-freetype --without-glpk --without-hdf5 --without-klu \ | |
60 --without-magick --without-opengl --without-openssl \ | |
61 --without-osmesa --without-portaudio --without-qhull \ | |
62 --without-qrupdate --without-qscintilla --without-qt \ | |
63 --without-sndfile --without-sundials_ida \ | |
64 --without-sundials_nvecserial --without-umfpack --without-x \ | |
65 --without-z | |
66 | |
67 $($(PKG)_ENV_FLAGS) $(MAKE) -C '$(1)/.build' all -j '$(JOBS)' | |
68 $($(PKG)_ENV_FLAGS) $(MAKE) -C '$(1)/.build' install | |
69 endef |