1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Development/Tools
11 url = http://flex.sourceforge.net/
13 summary = A tool for creating scanners (text pattern recognizers).
16 The flex program generates scanners. Scanners are programs which can \
17 recognize lexical patterns in text. Flex takes pairs of regular \
18 expressions and C code as input and generates a C source file as \
19 output. The output file is compiled and linked with a library to \
20 produce an executable. The executable searches through its input for \
21 occurrences of the regular expressions. When a match is found, it \
22 executes the corresponding C code. Flex was designed to work with \
23 both Yacc and Bison, and is used by many programs as part of their \
28 sources = %{thisapp}.tar.bz2
37 keep_libraries = /usr/lib/libfl_pic.a
39 configure_options += \
40 --mandir=/usr/share/man
47 echo "#!/bin/sh" > %{BUILDROOT}/usr/bin/lex
48 echo "exec /usr/bin/flex -l \"$$@\"" >> %{BUILDROOT}/usr/bin/lex
49 chmod 755 %{BUILDROOT}/usr/bin/lex
62 package %{name}-debuginfo