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
:= 9a01437a1155c799b7dc2508620564ef806ba66250c36bf5f9034b1c207cb2c9
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
/releases
/download
/v
$(PKG_VERSION
)/
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
30 CONFIGURE_ARGS
+= --disable-shared
33 (cd
$(STAGING_HOST_DIR
)/usr
/bin
; ln
-sf flex
lex)
34 $(CP
) $(WRKBUILD
)/src
/stage1flex
$(STAGING_HOST_DIR
)/usr
/bin
37 $(INSTALL_DIR
) $(IDIR_FLEX
)/usr
/bin
38 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/flex
$(IDIR_FLEX
)/usr
/bin
40 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
41 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk