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
:= bf693433a3effe6b1f42e44abd787491e4e213984b1859545b92267a86088dd3
10 PKG_DESCR
:= fast lexical analyzer
11 PKG_SECTION
:= dev
/tools
12 PKG_BUILDDEP
:= m4-host
13 HOST_BUILDDEP
:= m4-host
14 PKG_URL
:= http
://flex.sourceforge.net
/
15 PKG_SITES
:= $(MASTER_SITE_SOURCEFORGE
:=flex
/)
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
)))
27 (cd
$(STAGING_HOST_DIR
)/usr
/bin
; ln
-sf flex
lex)
30 $(INSTALL_DIR
) $(IDIR_FLEX
)/usr
/bin
31 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/flex
$(IDIR_FLEX
)/usr
/bin
32 # workaround for dev subpackage
33 $(INSTALL_DIR
) $(IDIR_FLEX_DEV
)/usr
/lib
34 $(CP
) $(WRKINST
)/usr
/lib
/libfl.a \
35 $(IDIR_FLEX_DEV
)/usr
/lib
37 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
38 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk