2006-02-23 16:26:10 +01:00
|
|
|
# Description: Fast Lexical Analyzer Generator
|
2016-11-02 09:56:41 +01:00
|
|
|
# URL: https://github.com/westes/flex
|
2007-01-23 18:25:18 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=flex
|
2017-05-08 13:43:17 +02:00
|
|
|
version=2.6.4
|
2018-01-20 23:03:07 +01:00
|
|
|
release=2
|
2017-05-08 13:43:17 +02:00
|
|
|
source=(https://github.com/westes/flex/releases/download/v$version/$name-$version.tar.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2018-01-20 23:03:07 +01:00
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
|
2015-11-20 15:58:14 +01:00
|
|
|
./configure --prefix=/usr --disable-nls
|
2012-08-01 12:48:47 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2012-08-01 12:48:47 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
ln -sf flex $PKG/usr/bin/lex
|
2015-07-25 23:39:30 +02:00
|
|
|
ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
|
2012-08-01 12:48:47 +02:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/{info,doc}
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|