2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: A tool for generating text-scanning programs
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://flex.sourceforge.net
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
isim=flex
|
|
|
|
|
surum=2.5.39
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
kaynak=(http://prdownloads.sourceforge.net/flex/flex-$surum.tar.xz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-29 18:31:53 +01:00
|
|
|
|
cd flex-$surum
|
|
|
|
|
sed -i -e '/test-bison/d' tests/Makefile.in
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-29 18:31:53 +01:00
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--libdir=/lib --bindir=/bin --sbindir=/sbin \
|
|
|
|
|
--docdir=/usr/share/doc/flex-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-29 18:31:53 +01:00
|
|
|
|
make
|
|
|
|
|
make -k check||true
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-29 18:31:53 +01:00
|
|
|
|
make DESTDIR=$PKG install
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-29 18:31:53 +01:00
|
|
|
|
ln -sv libfl.a $PKG/lib/libl.a
|
|
|
|
|
cat > $PKG/bin/lex << "EOF"
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
# Begin /bin/lex
|
|
|
|
|
exec /bin/flex -l "$@"
|
|
|
|
|
# End /bin/lex
|
|
|
|
|
EOF
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-29 18:31:53 +01:00
|
|
|
|
chmod -v 755 $PKG/bin/lex
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-29 18:31:53 +01:00
|
|
|
|
rm -r $PKG/usr/share/{info,doc}
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|