Mercurial > mxe-octave
annotate src/build-flex.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 | 70d1bdf81ce8 |
children |
rev | line source |
---|---|
2990 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := build-flex | |
5 $(PKG)_IGNORE := | |
4548 | 6 $(PKG)_VERSION := 2.6.4 |
7 $(PKG)_CHECKSUM := ec5653f673ec8f6e3f07d5e730008cee54d2ce02 | |
2990 | 8 $(PKG)_SUBDIR := flex-$($(PKG)_VERSION) |
4548 | 9 $(PKG)_FILE := flex-$($(PKG)_VERSION).tar.lz |
10 $(PKG)_URL := https://github.com/westes/flex/releases/download/v$($(PKG)_VERSION)/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := build-lzip | |
2990 | 12 |
13 define $(PKG)_UPDATE | |
4545
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3596
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/westes/flex/tags' | \ |
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3596
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \ |
0e56fe2d2ef5
Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents:
3596
diff
changeset
|
16 tail -1 |
2990 | 17 endef |
18 | |
4635
70d1bdf81ce8
build-flex.mk: Avoid reallocarray for all builds.
John W. Eaton <jwe@octave.org>
parents:
4632
diff
changeset
|
19 $(PKG)_CONFIGURE_OPTIONS := ac_cv_func_reallocarray=no |
4632
b23584d79172
build-flex.mk: Don't use reallocarray function when cross compiling.
John W. Eaton <jwe@octave.org>
parents:
4548
diff
changeset
|
20 |
2990 | 21 define $(PKG)_BUILD |
22 mkdir '$(1).build' | |
4632
b23584d79172
build-flex.mk: Don't use reallocarray function when cross compiling.
John W. Eaton <jwe@octave.org>
parents:
4548
diff
changeset
|
23 cd '$(1).build' && '$(1)/configure' $($(PKG)_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2990
diff
changeset
|
24 --prefix='$(BUILD_TOOLS_PREFIX)' |
2990 | 25 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
26 $(MAKE) -C '$(1).build' -j 1 install | |
27 endef |