2003-02-12 11:40:28 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# flex
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-11-10 12:25:26 +01:00
|
|
|
|
2013-01-25 03:50:39 +01:00
|
|
|
FLEX_VERSION = 2.5.37
|
|
|
|
FLEX_SITE = http://download.sourceforge.net/project/flex
|
2011-11-10 12:25:26 +01:00
|
|
|
FLEX_INSTALL_STAGING = YES
|
2013-01-21 12:29:44 +01:00
|
|
|
FLEX_LICENSE = FLEX
|
|
|
|
FLEX_LICENSE_FILES = COPYING
|
2010-07-26 15:04:59 +02:00
|
|
|
FLEX_DEPENDENCIES = \
|
2012-11-01 05:35:44 +01:00
|
|
|
$(if $(BR2_PACKAGE_GETTEXT_IF_LOCALE),gettext) host-m4
|
2012-01-18 11:15:24 +01:00
|
|
|
# we don't have a host-gettext/libintl
|
2013-03-24 06:09:00 +01:00
|
|
|
HOST_FLEX_DEPENDENCIES = host-m4
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2012-11-30 01:46:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FLEX_BINARY),y)
|
2009-11-15 11:12:52 +01:00
|
|
|
# lex -> flex
|
|
|
|
define FLEX_INSTALL_LEX
|
2011-11-10 12:25:26 +01:00
|
|
|
cd $(TARGET_DIR)/usr/bin && ln -snf flex lex
|
2009-11-15 11:12:52 +01:00
|
|
|
endef
|
|
|
|
FLEX_POST_INSTALL_HOOKS += FLEX_INSTALL_LEX
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2012-11-30 01:46:03 +01:00
|
|
|
else
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2012-11-30 01:46:03 +01:00
|
|
|
define FLEX_DISABLE_PROGRAM
|
|
|
|
$(SED) 's/^bin_PROGRAMS.*//' $(@D)/Makefile.in
|
2009-11-15 11:12:52 +01:00
|
|
|
endef
|
2012-11-30 01:46:03 +01:00
|
|
|
FLEX_POST_PATCH_HOOKS += FLEX_DISABLE_PROGRAM
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2006-01-23 22:21:00 +01:00
|
|
|
endif
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|