depend on CPU_WITH_FPU
[openadk.git] / package / flex / Makefile
blob9dafc3deb612dcd45fe1444e39f1dfd939b64351
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
6 PKG_NAME:= flex
7 PKG_VERSION:= 2.5.37
8 PKG_RELEASE:= 1
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/)
16 PKG_OPTS:= dev
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 hostpost-install:
27 (cd $(STAGING_HOST_DIR)/usr/bin; ln -sf flex lex)
29 flex-install:
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