2003-02-12 11:40:28 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# flex
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-11-10 12:25:26 +01:00
|
|
|
|
|
|
|
FLEX_VERSION = 2.5.35
|
|
|
|
FLEX_PATCH_VERSION = 10
|
|
|
|
FLEX_SOURCE = flex_$(FLEX_VERSION).orig.tar.gz
|
|
|
|
FLEX_PATCH = flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz
|
|
|
|
FLEX_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex
|
|
|
|
FLEX_DIR = $(BUILD_DIR)/flex-$(FLEX_VERSION)
|
|
|
|
FLEX_INSTALL_STAGING = YES
|
2010-07-26 15:04:59 +02:00
|
|
|
FLEX_DEPENDENCIES = \
|
|
|
|
$(if $(BR2_PACKAGE_GETTEXT),gettext) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBINTL),libintl)
|
2012-01-18 11:15:24 +01:00
|
|
|
# we don't have a host-gettext/libintl
|
|
|
|
HOST_FLEX_DEPENDENCIES =
|
2003-02-12 11:40:28 +01:00
|
|
|
|
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
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2009-11-15 11:12:52 +01:00
|
|
|
define FLEX_UNINSTALL_LEX
|
2011-11-10 12:25:26 +01:00
|
|
|
-rm $(TARGET_DIR)/usr/bin/lex
|
2009-11-15 11:12:52 +01:00
|
|
|
endef
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2009-11-15 11:12:52 +01:00
|
|
|
FLEX_POST_INSTALL_HOOKS += FLEX_INSTALL_LEX
|
|
|
|
FLEX_POST_CLEAN_HOOKS += FLEX_UNINSTALL_LEX
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2009-11-15 11:12:52 +01:00
|
|
|
# libfl installation
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FLEX_LIBFL),y)
|
2009-11-15 11:12:52 +01:00
|
|
|
define FLEX_INSTALL_LIBFL
|
2011-11-10 12:25:26 +01:00
|
|
|
install -D $(FLEX_DIR)/libfl.a $(STAGING_DIR)/usr/lib/libfl.a
|
2009-11-15 11:12:52 +01:00
|
|
|
endef
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2009-11-15 11:12:52 +01:00
|
|
|
define FLEX_UNINSTALL_LIBFL
|
2011-11-10 12:25:26 +01:00
|
|
|
-rm $(STAGING_DIR)/lib/libfl.a
|
2009-11-15 11:12:52 +01:00
|
|
|
endef
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2009-11-15 11:12:52 +01:00
|
|
|
FLEX_POST_INSTALL_HOOKS += FLEX_INSTALL_LIBFL
|
|
|
|
FLEX_POST_CLEAN_HOOKS += FLEX_UNINSTALL_LIBFL
|
2006-01-23 22:21:00 +01:00
|
|
|
endif
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|
|
|
|
$(eval $(call AUTOTARGETS,host))
|