kernel: properly condition EM919x patch
[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.6
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:=3d2bb860f4359169e640f60cf7cc11da5fab5fb9aed55230d78141e49c3945e9
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))