Build flex 2.5.11.

This commit is contained in:
Andrius Štikonas 2021-01-28 18:53:44 +00:00
parent 707328a15c
commit de9548dbff
11 changed files with 882 additions and 2 deletions

22
sysa/flex-2.5.11/flex-2.5.11.sh Executable file
View file

@ -0,0 +1,22 @@
# When we rebuild flex it no longer needs patching
# and can use simplified makefile
src_prepare() {
if test -d /lex; then
default_src_prepare
else
cp ../../mk/main2.mk Makefile
fi
touch config.h
rm parse.c parse.h scan.c
}
src_install() {
if test -d /lex; then
# Remove lex, later make install will symlink lex to flex
rm -rf /lex
rm -f "${PREFIX}/bin/lex"
rm -f "${PREFIX}/lib/libl.a"
fi
default_src_install
}