Makefile 803 B

12345678910111213141516171819202122232425262728293031323334
  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/Clean
  23. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  24. $(call Host/Clean/Default)
  25. endef
  26. $(eval $(call HostBuild))