add hifiberry dacplus support
[openadk.git] / package / flex / Makefile
blob5bb2352d7a3a72f8106704e3640056c02786a40b
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.6.2
8 PKG_RELEASE:= 1
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)/
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 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
32 hostpost-install:
33 (cd $(STAGING_HOST_DIR)/usr/bin; ln -sf flex lex)
34 $(CP) $(WRKBUILD)/src/stage1flex $(STAGING_HOST_DIR)/usr/bin
36 flex-install:
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