ccache: update to 4.1
[openwrt/openwrt.git] / tools / ccache / Makefile
1 #
2 # Copyright (C) 2006-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 include $(INCLUDE_DIR)/target.mk
9
10 PKG_NAME:=ccache
11 PKG_VERSION:=4.1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION)
15 PKG_HASH:=5fdc804056632d722a1182e15386696f0ea6c59cb4ab4d65a54f0b269ae86f99
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20 include $(INCLUDE_DIR)/cmake.mk
21
22 define Host/Install/ccache
23 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
24 $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
25 endef
26
27 define Host/Install
28 $(call Host/Install/Default)
29 $(call Host/Install/ccache)
30 endef
31
32 $(eval $(call HostBuild))