1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
10 PKG_DESCR
:= fast lexical analyzer
11 PKG_SECTION
:= dev
/tools
12 PKG_BUILDDEP
:= m4-host
13 HOST_BUILDDEP
:= m4-host bison-host patch-host libtool-host
14 PKG_URL
:= https
://github.com
/westes
/flex
15 PKG_SITES
:= https
://github.com
/westes
/flex
/files
/981163/
18 DISTFILES
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 include $(ADK_TOPDIR
)/mk
/host.mk
21 include $(ADK_TOPDIR
)/mk
/package.mk
23 $(eval
$(call HOST_template
,FLEX
,flex
,$(PKG_VERSION
)-$(PKG_RELEASE
)))
24 $(eval
$(call PKG_template
,FLEX
,flex
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
),$(PKG_OPTS
)))
26 AUTOTOOL_STYLE
:= autoreconf
27 HOST_MAKE_FLAGS
+= STAGE1FLEX
=$(WRKSRC
)/src
/stage1flex
28 MAKE_FLAGS
+= STAGE1FLEX
=$(STAGING_HOST_DIR
)/usr
/bin
/stage1flex
29 CONFIGURE_ENV
+= ac_cv_path_HELP2MAN
=true
32 (cd
$(STAGING_HOST_DIR
)/usr
/bin
; ln
-sf flex
lex)
33 $(CP
) $(WRKBUILD
)/src
/stage1flex
$(STAGING_HOST_DIR
)/usr
/bin
36 $(INSTALL_DIR
) $(IDIR_FLEX
)/usr
/bin
37 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/flex
$(IDIR_FLEX
)/usr
/bin
39 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
40 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk