tools/ccache: find libzstd using rpath
[openwrt/staging/ynezz.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.1
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:=5fdc804056632d722a1182e15386696f0ea6c59cb4ab4d65a54f0b269ae86f99
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20 include $(INCLUDE_DIR)/cmake.mk
21
22 CMAKE_HOST_OPTIONS += \
23 -DCMAKE_C_COMPILER_LAUNCHER="" \
24 -DCMAKE_CXX_COMPILER_LAUNCHER="" \
25 -DCMAKE_SKIP_RPATH=FALSE \
26 -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \
27
28
29 define Host/Install/ccache
30 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
31 $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
32 endef
33
34 define Host/Install
35 $(call Host/Install/Default)
36 $(call Host/Install/ccache)
37 endef
38
39 $(eval $(call HostBuild))