# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="ccache" PKG_VERSION="3.7.12" PKG_SHA256="a02f4e8360dc6618bc494ca35b0ae21cea080f804a4898eab1ad3fcd108eb400" PKG_LICENSE="GPL" PKG_SITE="https://ccache.dev/download.html" PKG_URL="https://github.com/ccache/ccache/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz" PKG_DEPENDS_HOST="make:host" PKG_LONGDESC="A compiler cache to speed up re-compilation of C/C++ code by caching." PKG_CONFIGURE_OPTS_HOST="--with-bundled-zlib" pre_configure_host() { export CC=${LOCAL_CC} export CXX=${LOCAL_CXX} } post_makeinstall_host() { # setup ccache if [ -z "${CCACHE_DISABLE}" ]; then ${TOOLCHAIN}/bin/ccache --max-size=${CCACHE_CACHE_SIZE} fi cat > ${TOOLCHAIN}/bin/host-gcc < ${TOOLCHAIN}/bin/host-g++ <