tools/ccache: update to 3.3.6
[openwrt/staging/mkresin.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:=3.3.6
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_SOURCE_URL:=https://download.samba.org/pub/ccache/ \
15 https://samba.org/ftp/ccache/
16 PKG_HASH:=410a27fdaff64ead6df3fa57fa74bca0eca6b5f6ac77d7288af1256f6b12141d
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
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/Clean
28 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
29 $(call Host/Clean/Default)
30 endef
31 define Host/Install
32 $(call Host/Install/Default)
33 $(call Host/Install/ccache)
34 endef
35
36 $(eval $(call HostBuild))