annotate src/build-flex.mk @ 4635:70d1bdf81ce8

build-flex.mk: Avoid reallocarray for all builds.
author John W. Eaton <jwe@octave.org>
date Fri, 23 Mar 2018 11:50:29 -0400
parents b23584d79172
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := build-flex
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4548
e475dae96add build-flex: update to v2.6.4
John D
parents: 4545
diff changeset
6 $(PKG)_VERSION := 2.6.4
e475dae96add build-flex: update to v2.6.4
John D
parents: 4545
diff changeset
7 $(PKG)_CHECKSUM := ec5653f673ec8f6e3f07d5e730008cee54d2ce02
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := flex-$($(PKG)_VERSION)
4548
e475dae96add build-flex: update to v2.6.4
John D
parents: 4545
diff changeset
9 $(PKG)_FILE := flex-$($(PKG)_VERSION).tar.lz
e475dae96add build-flex: update to v2.6.4
John D
parents: 4545
diff changeset
10 $(PKG)_URL := https://github.com/westes/flex/releases/download/v$($(PKG)_VERSION)/$($(PKG)_FILE)
e475dae96add build-flex: update to v2.6.4
John D
parents: 4545
diff changeset
11 $(PKG)_DEPS := build-lzip
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 endef
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 define $(PKG)_BUILD
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
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
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 $(MAKE) -C '$(1).build' -j '$(JOBS)'
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 $(MAKE) -C '$(1).build' -j 1 install
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 endef