Makefile 867 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (C) 2008-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=flex
  9. PKG_CPE_ID:=cpe:/a:flex_project:flex
  10. PKG_VERSION:=2.6.4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/westes/flex/releases/download/v$(PKG_VERSION)/
  13. PKG_HASH:=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
  14. HOST_FIXUP:=autoreconf
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. HOST_CONFIGURE_ARGS += --disable-shared
  18. define Host/Install
  19. $(call Host/Install/Default)
  20. $(LN) flex $(STAGING_DIR_HOST)/bin/lex
  21. endef
  22. define Host/Uninstall
  23. -$(call Host/Compile/Default,uninstall)
  24. endef
  25. define Host/Clean
  26. rm -f $(STAGING_DIR_HOST)/bin/lex
  27. $(call Host/Clean/Default)
  28. endef
  29. $(eval $(call HostBuild))