30555541e653a34a9a6bba8573465ad884d62c38
[openwrt/staging/nbd.git] / tools / bison / Makefile
1 #
2 # Copyright (C) 2008-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=bison
10 PKG_VERSION:=3.8.2
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
14 PKG_HASH:=9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2
15
16 HOST_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_CONFIGURE_ARGS += --enable-threads=posix --disable-nls
21
22 define Host/Install
23 $(call Host/Install/Default)
24 $(INSTALL_BIN) ./scripts/yacc $(STAGING_DIR_HOST)/bin/yacc
25 endef
26
27 define Host/Uninstall
28 rm -f $(STAGING_DIR_HOST)/bin/yacc
29 -$(call Host/Compile/Default,uninstall)
30 endef
31
32 $(eval $(call HostBuild))