flex
This commit is contained in:
parent
3645823b78
commit
67cd97bb16
1 changed files with 17 additions and 17 deletions
|
@ -10,27 +10,27 @@ devir=1
|
||||||
kaynak=(http://prdownloads.sourceforge.net/flex/flex-$surum.tar.xz)
|
kaynak=(http://prdownloads.sourceforge.net/flex/flex-$surum.tar.xz)
|
||||||
|
|
||||||
derle() {
|
derle() {
|
||||||
cd flex-$surum
|
cd flex-$surum
|
||||||
sed -i -e '/test-bison/d' tests/Makefile.in
|
sed -i -e '/test-bison/d' tests/Makefile.in
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--libdir=/lib --bindir=/bin --sbindir=/sbin \
|
--libdir=/lib --bindir=/bin --sbindir=/sbin \
|
||||||
--docdir=/usr/share/doc/flex-$surum
|
--docdir=/usr/share/doc/flex-$surum
|
||||||
|
|
||||||
make
|
make
|
||||||
make -k check||true
|
make -k check||true
|
||||||
|
|
||||||
make DESTDIR=$PKG install
|
make DESTDIR=$PKG install
|
||||||
|
|
||||||
ln -sv libfl.a $PKG/lib/libl.a
|
ln -sv libfl.a $PKG/lib/libl.a
|
||||||
cat > $PKG/bin/lex << "EOF"
|
cat > $PKG/bin/lex << "EOF"
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Begin /bin/lex
|
# Begin /bin/lex
|
||||||
exec /bin/flex -l "$@"
|
exec /bin/flex -l "$@"
|
||||||
# End /bin/lex
|
# End /bin/lex
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod -v 755 $PKG/bin/lex
|
chmod -v 755 $PKG/bin/lex
|
||||||
|
|
||||||
rm -r $PKG/usr/share/{info,doc}
|
rm -r $PKG/usr/share/{info,doc}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue