[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/flex/flex.desc [COPY] Copyright (C) 2004 - 2025 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] Rene Rebe [C] base/tool [F] CROSS DIETLIBC [L] GPL [S] Stable [V] 2.6.4 [P] X 0-2--5---9 102.080 [D] f846bbeadededc8a3d7b87c4a4f51f649fdf5120b7a8c83618c6663a flex-2.6.4.tar.lz https://github.com/westes/flex/releases/download/v2.6.4/ 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