include $(TOPDIR)/rules.mk
PKG_NAME:=flex
+PKG_CPE_ID:=cpe:/a:flex_project:flex
PKG_VERSION:=2.6.4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
HOST_CONFIGURE_ARGS += --disable-shared
+define Host/Compile
+ $(call Host/Compile/Default,SUBDIRS='src tools')
+endef
+
+define Host/Install
+ $(call Host/Compile/Default,install SUBDIRS='src tools')
+ $(LN) flex $(STAGING_DIR_HOST)/bin/lex
+endef
+
+define Host/Uninstall
+ -$(call Host/Compile/Default,uninstall SUBDIRS='src tools')
+endef
+
define Host/Clean
- -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
+ rm -f $(STAGING_DIR_HOST)/bin/lex
$(call Host/Clean/Default)
endef