mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 01:05:24 +01:00
Build flex 2.5.11.
This commit is contained in:
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
22
sysa/flex-2.5.11/flex-2.5.11.sh
Executable 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue