a58506aa08
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
35 lines
792 B
Makefile
35 lines
792 B
Makefile
#############################################################
|
|
#
|
|
# flex
|
|
#
|
|
#############################################################
|
|
|
|
FLEX_VERSION = 2.5.37
|
|
FLEX_SITE = http://download.sourceforge.net/project/flex
|
|
FLEX_INSTALL_STAGING = YES
|
|
FLEX_LICENSE = FLEX
|
|
FLEX_LICENSE_FILES = COPYING
|
|
FLEX_DEPENDENCIES = \
|
|
$(if $(BR2_PACKAGE_GETTEXT),gettext)
|
|
# we don't have a host-gettext/libintl
|
|
HOST_FLEX_DEPENDENCIES =
|
|
|
|
ifeq ($(BR2_PACKAGE_FLEX_BINARY),y)
|
|
# lex -> flex
|
|
define FLEX_INSTALL_LEX
|
|
cd $(TARGET_DIR)/usr/bin && ln -snf flex lex
|
|
endef
|
|
FLEX_POST_INSTALL_HOOKS += FLEX_INSTALL_LEX
|
|
|
|
else
|
|
|
|
define FLEX_DISABLE_PROGRAM
|
|
$(SED) 's/^bin_PROGRAMS.*//' $(@D)/Makefile.in
|
|
endef
|
|
FLEX_POST_PATCH_HOOKS += FLEX_DISABLE_PROGRAM
|
|
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|