python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / flex / flex.mk
blob9a3f840b112534ce3f95df804e146f377f95e848
1 ################################################################################
3 # flex
5 ################################################################################
7 FLEX_VERSION = 2.5.37
8 FLEX_SITE = http://download.sourceforge.net/project/flex
9 FLEX_INSTALL_STAGING = YES
10 FLEX_LICENSE = FLEX
11 FLEX_LICENSE_FILES = COPYING
12 FLEX_DEPENDENCIES = \
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
20 endef
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++
26 endef
27 FLEX_POST_INSTALL_TARGET_HOOKS += FLEX_REMOVE_BROKEN_SYMLINK
29 $(eval $(autotools-package))
30 $(eval $(host-autotools-package))