treewide: clean up download hashes
[openwrt/staging/lynxis/omap.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.2
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_SOURCE_URL:=http://samba.org/ftp/ccache/
15 PKG_HASH:=907685cb23d8f82074b8d1a9b4ebabb36914d151ac7b96a840c68c08d1a14530
16
17 include $(INCLUDE_DIR)/host-build.mk
18
19 HOST_CONFIGURE_VARS += CC="$(HOSTCC_NOCACHE)"
20
21 define Host/Install/ccache
22 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
23 $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
24 endef
25
26 define Host/Clean
27 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
28 $(call Host/Clean/Default)
29 endef
30 define Host/Install
31 $(call Host/Install/Default)
32 $(call Host/Install/ccache)
33 endef
34
35 $(eval $(call HostBuild))