kumquat-buildroot/package/flex/flex.mk

45 lines
1.1 KiB
Makefile
Raw Normal View History

2003-02-12 11:40:28 +01:00
#############################################################
#
# flex
#
#############################################################
FLEX_VERSION:=2.5.35
FLEX_PATCH_VERSION:=9.1
2007-01-19 15:54:58 +01:00
FLEX_SOURCE:=flex_$(FLEX_VERSION).orig.tar.gz
FLEX_PATCH:=flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz
2007-12-27 13:00:12 +01:00
FLEX_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex
2007-01-19 15:54:58 +01:00
FLEX_DIR:=$(BUILD_DIR)/flex-$(FLEX_VERSION)
FLEX_INSTALL_STAGING=YES
FLEX_DEPENDENCIES = \
$(if $(BR2_PACKAGE_GETTEXT),gettext) \
$(if $(BR2_PACKAGE_LIBINTL),libintl)
2003-02-12 11:40:28 +01:00
# lex -> flex
define FLEX_INSTALL_LEX
cd $(TARGET_DIR)/usr/bin && ln -snf flex lex
endef
2003-02-12 11:40:28 +01:00
define FLEX_UNINSTALL_LEX
-rm $(TARGET_DIR)/usr/bin/lex
endef
2003-02-12 11:40:28 +01:00
FLEX_POST_INSTALL_HOOKS += FLEX_INSTALL_LEX
FLEX_POST_CLEAN_HOOKS += FLEX_UNINSTALL_LEX
2003-02-12 11:40:28 +01:00
# libfl installation
ifeq ($(BR2_PACKAGE_FLEX_LIBFL),y)
define FLEX_INSTALL_LIBFL
install -D $(FLEX_DIR)/libfl.a $(STAGING_DIR)/usr/lib/libfl.a
endef
2003-02-12 11:40:28 +01:00
define FLEX_UNINSTALL_LIBFL
-rm $(STAGING_DIR)/lib/libfl.a
endef
2003-02-12 11:40:28 +01:00
FLEX_POST_INSTALL_HOOKS += FLEX_INSTALL_LIBFL
FLEX_POST_CLEAN_HOOKS += FLEX_UNINSTALL_LIBFL
endif
2003-02-12 11:40:28 +01:00
$(eval $(call AUTOTARGETS,package,flex))
$(eval $(call AUTOTARGETS,package,flex,host))