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#
7include $(TOPDIR)/rules.mk
8include $(INCLUDE_DIR)/target.mk
9
10PKG_NAME:=ccache
11PKG_VERSION:=3.3.2
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14PKG_SOURCE_URL:=https://download.samba.org/pub/ccache/ \
15                https://samba.org/ftp/ccache/
16PKG_MD5SUM:=2767d8f88f5ec218983a2f05c9e20df2
17
18include $(INCLUDE_DIR)/host-build.mk
19
20HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
21
22define Host/Install/ccache
23	$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
24	$(CP) ./files/* $(STAGING_DIR_HOST)/bin/
25endef
26
27define Host/Clean
28	-$(MAKE) -C $(HOST_BUILD_DIR) uninstall
29	$(call Host/Clean/Default)
30endef
31define Host/Install
32	$(call Host/Install/Default)
33	$(call Host/Install/ccache)
34endef
35
36$(eval $(call HostBuild))
37