[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/flex/flex.desc [COPY] Copyright (C) 2004 - 2026 The T2 SDE Project [COPY] Copyright (C) 1998 - 2004 ROCK Linux Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] Fast lexical analyzer generator [T] flex is a tool for generating programs that perform [T] pattern-matching on text. [A] The GNU Project / FSF [M] Valentin Ziegler [M] René Rebe [C] base/tool [F] CROSS DIETLIBC [L] GPL [V] 2.6.9 [P] X 0-2--5---9 102.080 [D] 66ab0140501b03cd57f2cd1442a95236f3699c5c3eb0130b3917d2fd flex-2.6.9.tar.lz https://github.com/westes/flex/releases/download/v2.6.9/ pkg_flex_postmake() { echo -e '#!/bin/sh\nexec flex -l "$@"' > $root$bindir/lex chmod +x $root$bindir/lex } hook_add postmake 5 pkg_flex_postmake atstage native || hook_add preconf 5 "echo 'ac_cv_func_malloc_0_nonnull=yes' >> config.cache" atstage native || hook_add preconf 5 "echo 'ac_cv_func_realloc_0_nonnull=yes' >> config.cache" hook_add preconf 5 "sed -i -e '/test-bison-yylloc/d' -e '/test-bison-yylval/d' tests/Makefile.in" if atstage cross; then var_insert configprefix ' ' M4=m4 var_append confopt ' ' --disable-bootstrap fi # don't mix with host system var_append GCC_WRAPPER_REMOVE ' ' -I/usr/include