1 ################################################################################
5 ################################################################################
8 FLEX_SITE
= http
://download.sourceforge.net
/project
/flex
9 FLEX_INSTALL_STAGING
= YES
11 FLEX_LICENSE_FILES
= COPYING
13 $(if
$(BR2_PACKAGE_GETTEXT_IF_LOCALE
),gettext
) host-m4
14 FLEX_CONF_ENV
= ac_cv_path_M4
=/usr
/bin
/m4
15 # we don't have a host-gettext/libintl
16 HOST_FLEX_DEPENDENCIES
= host-m4
18 define FLEX_DISABLE_PROGRAM
19 $(SED
) 's/^bin_PROGRAMS.*//' $(@D
)/Makefile.in
21 FLEX_POST_PATCH_HOOKS
+= FLEX_DISABLE_PROGRAM
23 # flex++ symlink is broken when flex binary is not installed
24 define FLEX_REMOVE_BROKEN_SYMLINK
25 rm -f
$(TARGET_DIR
)/usr
/bin
/flex
++
27 FLEX_POST_INSTALL_TARGET_HOOKS
+= FLEX_REMOVE_BROKEN_SYMLINK
29 $(eval
$(autotools-package
))
30 $(eval
$(host-autotools-package
))