tools/ccache: update to 4.3
[openwrt/staging/nbd.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.3
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:=504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4
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
26 ifneq (docs-$(CONFIG_BUILD_DOCUMENTATION),docs-y)
27 CMAKE_HOST_OPTIONS += -DENABLE_DOCUMENTATION=OFF
28 endif
29
30 define Host/Install/ccache
31 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
32 $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
33 endef
34
35 define Host/Install
36 $(call Host/Install/Default)
37 $(call Host/Install/ccache)
38 endef
39
40 $(eval $(call HostBuild))