1 DESCRIPTION = "Fast Lexical Analyzer Generator"
2 HOMEPAGE = "http://flex.sourceforge.net/"
3 SECTION = "Development/Languages/C and C++"
4 LICENSE = "BSD-3-Clause"
14 RPROVIDES_flex += "flex"
17 #RDEPENDS of flex (${PN})
18 RDEPENDS_${PN} += "m4"
24 #Replace "DEPENDS" on gettext by "inherit gettext"
26 DEPENDS += "bison-native"
28 DEPENDS += "automake-native"
31 chmod -Rf a+rX,u+w,g-w,o-w ${S}
33 cp ${S}/packaging/flex.manifest .
45 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
46 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
47 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
48 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
52 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
53 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
54 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
55 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
56 --target=x86_64-tizen-linux \
63 --datadir=/usr/share \
64 --includedir=/usr/include \
66 --libexecdir=/usr/libexec \
67 --localstatedir=/var \
68 --sharedstatedir=/usr/com \
69 --mandir=/usr/share/man \
70 --infodir=/usr/share/info --disable-nls
81 echo export RPM_BUILD_ROOT=${D}
94 rm -f ${D}/usr/share/info/dir
95 find ${D} -regex ".*\.la$" | xargs rm -f --
97 install ${S}/packaging/lex-wrapper.sh ${D}//usr/bin/lex
100 rm -rf ${D}/usr/share/info
101 rm -rf ${D}/usr/share/doc/packages
102 rm -rf ${D}/usr/share/doc/flex
103 rm -rf ${D}/usr/share/doc/flex-2.5.37
104 rm -rf ${D}/usr/share/gtk-doc
105 rm -rf ${D}/usr/share/doc
106 rm -rf ${D}/usr/share/man
107 find ${D} -regex ".*/man/man./.*.[0-9]" | xargs rm -f --
108 find ${D} -regex ".*/man/../man./.*.[0-9]" | xargs rm -f --
109 find ${D} -regex ".*/man/man./.*.[0-9]pm" | xargs rm -f --
117 flex_files += "flex.manifest"
118 flex_files += "/usr/bin/flex"
119 flex_files += "/usr/bin/flex++"
120 flex_files += "/usr/bin/lex"
121 flex_files += "/usr/include/FlexLexer.h"
122 flex_files += "/usr/lib/libfl.a"
124 FILES_${PN} = "${flex_files}"
128 require flex-extraconf.inc