Mercurial > mxe-octave
annotate src/build-flex.mk @ 5534:372ea4c0afb2
Move of-ocs PKG_XXXX to inst dir and add break patch
* src/of-ocs-3-break-fixes.patch,
src/of-ocs-4-pkgadd-fixes.patch: new files
* dist-files.mk: add ref to files
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 13 Sep 2020 08:15:14 -0400 |
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 |