2017-05-26 12:02:47 +08:00
|
|
|
#
|
2016-03-16 17:26:51 +08:00
|
|
|
# Copyright (C) 2008-2016 OpenWrt.org
|
2010-12-17 10:41:16 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=flex
|
2024-04-26 16:51:16 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:westes:flex
|
2017-05-26 12:02:47 +08:00
|
|
|
PKG_VERSION:=2.6.4
|
2010-12-17 10:41:16 +08:00
|
|
|
|
2017-04-28 21:53:42 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2016-03-16 17:26:51 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/westes/flex/releases/download/v$(PKG_VERSION)/
|
2017-05-26 12:02:47 +08:00
|
|
|
PKG_HASH:=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
|
2010-12-17 10:41:16 +08:00
|
|
|
|
2017-07-06 01:19:30 +08:00
|
|
|
HOST_FIXUP:=autoreconf
|
2012-09-15 22:18:01 +08:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
2010-12-17 10:41:16 +08:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2014-08-27 17:20:18 +08:00
|
|
|
HOST_CONFIGURE_ARGS += --disable-shared
|
2012-08-11 03:26:24 +08:00
|
|
|
|
2023-03-25 13:01:36 +08:00
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Compile/Default,SUBDIRS='src tools')
|
|
|
|
endef
|
|
|
|
|
2018-11-14 04:59:47 +08:00
|
|
|
define Host/Install
|
2023-03-25 13:01:36 +08:00
|
|
|
$(call Host/Compile/Default,install SUBDIRS='src tools')
|
2018-11-14 04:59:47 +08:00
|
|
|
$(LN) flex $(STAGING_DIR_HOST)/bin/lex
|
|
|
|
endef
|
|
|
|
|
2022-09-28 16:23:56 +08:00
|
|
|
define Host/Uninstall
|
2023-03-25 13:01:36 +08:00
|
|
|
-$(call Host/Compile/Default,uninstall SUBDIRS='src tools')
|
2022-09-28 16:23:56 +08:00
|
|
|
endef
|
|
|
|
|
2010-12-17 10:41:16 +08:00
|
|
|
define Host/Clean
|
2022-09-28 16:23:56 +08:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/lex
|
2010-12-17 10:41:16 +08:00
|
|
|
$(call Host/Clean/Default)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|