tools/ccache: update to 4.4.2
[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.4.2
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:=9200cafbaa5fd62c2600fccb40a18214e57747825e6cdcd76688b4b61c2dcba0
16
17 include $(INCLUDE_DIR)/host-build.mk
18 include $(INCLUDE_DIR)/cmake.mk
19
20 CMAKE_HOST_OPTIONS += \
21 -DCMAKE_C_COMPILER_LAUNCHER="" \
22 -DCMAKE_CXX_COMPILER_LAUNCHER="" \
23 -DCMAKE_SKIP_RPATH=FALSE \
24 -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \
25 -DREDIS_STORAGE_BACKEND=OFF
26
27 ifneq (docs-$(CONFIG_BUILD_DOCUMENTATION),docs-y)
28 CMAKE_HOST_OPTIONS += -DENABLE_DOCUMENTATION=OFF
29 endif
30
31 define Host/Install/ccache
32 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
33 $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
34 endef
35
36 define Host/Install
37 $(call Host/Install/Default)
38 $(call Host/Install/ccache)
39 endef
40
41 $(eval $(call HostBuild))