blob: 177136b78c77c31c56db2fc993d1273d3dd81562 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=flex
10PKG_CPE_ID:=cpe:/a:westes:flex
11PKG_VERSION:=2.6.4
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=https://github.com/westes/flex/releases/download/v$(PKG_VERSION)/
15PKG_HASH:=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
16
17HOST_FIXUP:=autoreconf
18HOST_BUILD_PARALLEL:=1
19
20include $(INCLUDE_DIR)/host-build.mk
21
22HOST_CONFIGURE_ARGS += --disable-shared
23
24define Host/Compile
25 $(call Host/Compile/Default,SUBDIRS='src tools')
26endef
27
28define Host/Install
29 $(call Host/Compile/Default,install SUBDIRS='src tools')
30 $(LN) flex $(STAGING_DIR_HOST)/bin/lex
31endef
32
33define Host/Uninstall
34 -$(call Host/Compile/Default,uninstall SUBDIRS='src tools')
35endef
36
37define Host/Clean
38 rm -f $(STAGING_DIR_HOST)/bin/lex
39 $(call Host/Clean/Default)
40endef
41
42$(eval $(call HostBuild))