Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. PKG_NAME:=ccache
  10. PKG_VERSION:=4.3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION)
  13. PKG_HASH:=504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4
  14. include $(INCLUDE_DIR)/host-build.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. CMAKE_HOST_OPTIONS += \
  17. -DCMAKE_C_COMPILER_LAUNCHER="" \
  18. -DCMAKE_CXX_COMPILER_LAUNCHER="" \
  19. -DCMAKE_SKIP_RPATH=FALSE \
  20. -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \
  21. ifneq (docs-$(CONFIG_BUILD_DOCUMENTATION),docs-y)
  22. CMAKE_HOST_OPTIONS += -DENABLE_DOCUMENTATION=OFF
  23. endif
  24. define Host/Install/ccache
  25. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
  26. $(CP) ./files/* $(STAGING_DIR_HOST)/bin/
  27. endef
  28. define Host/Install
  29. $(call Host/Install/Default)
  30. $(call Host/Install/ccache)
  31. endef
  32. $(eval $(call HostBuild))