f2c055f63d
The comment that explains why we were defining HOST_FLEX_DEPENDENCIES instead of inheriting from FLEX_DEPENDENCIES no longer makes sense, since we remove such automatic inheritance of host dependencies from target dependencies a while ago. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
876 B
Makefile
30 lines
876 B
Makefile
################################################################################
|
|
#
|
|
# flex
|
|
#
|
|
################################################################################
|
|
|
|
FLEX_VERSION = 2.6.4
|
|
FLEX_SITE = https://github.com/westes/flex/files/981163
|
|
FLEX_INSTALL_STAGING = YES
|
|
FLEX_LICENSE = FLEX
|
|
FLEX_LICENSE_FILES = COPYING
|
|
FLEX_DEPENDENCIES = \
|
|
$(if $(BR2_PACKAGE_GETTEXT_IF_LOCALE),gettext) host-m4
|
|
FLEX_CONF_ENV = ac_cv_path_M4=/usr/bin/m4
|
|
HOST_FLEX_DEPENDENCIES = host-m4
|
|
|
|
define FLEX_DISABLE_PROGRAM
|
|
$(SED) 's/^bin_PROGRAMS.*//' $(@D)/src/Makefile.in
|
|
endef
|
|
FLEX_POST_PATCH_HOOKS += FLEX_DISABLE_PROGRAM
|
|
|
|
# flex++ symlink is broken when flex binary is not installed
|
|
define FLEX_REMOVE_BROKEN_SYMLINK
|
|
rm -f $(TARGET_DIR)/usr/bin/flex++
|
|
endef
|
|
FLEX_POST_INSTALL_TARGET_HOOKS += FLEX_REMOVE_BROKEN_SYMLINK
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|