mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
ccache: update to 4.7.4 and now builds with cmake
This commit is contained in:
parent
9ee4ce2a23
commit
243b9a2347
@ -3,16 +3,33 @@
|
|||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="ccache"
|
PKG_NAME="ccache"
|
||||||
PKG_VERSION="3.7.12"
|
PKG_VERSION="4.7.4"
|
||||||
PKG_SHA256="a02f4e8360dc6618bc494ca35b0ae21cea080f804a4898eab1ad3fcd108eb400"
|
PKG_SHA256="df0c64d15d3efaf0b4f6837dd6b1467e40eeaaa807db25ce79c3a08a46a84e36"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://ccache.dev/download.html"
|
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_URL="https://github.com/ccache/ccache/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||||
PKG_DEPENDS_HOST="make:host"
|
PKG_DEPENDS_HOST="cmake:host make:host"
|
||||||
PKG_LONGDESC="A compiler cache to speed up re-compilation of C/C++ code by caching."
|
PKG_LONGDESC="A compiler cache to speed up re-compilation of C/C++ code by caching."
|
||||||
|
PKG_TOOLCHAIN="cmake-make"
|
||||||
PKG_BUILD_FLAGS="+local-cc"
|
PKG_BUILD_FLAGS="+local-cc"
|
||||||
|
|
||||||
PKG_CONFIGURE_OPTS_HOST="--with-bundled-zlib"
|
configure_host() {
|
||||||
|
cp ${CMAKE_CONF} cmake-ccache.conf
|
||||||
|
|
||||||
|
echo "SET(CMAKE_C_COMPILER $CC)" >> cmake-ccache.conf
|
||||||
|
echo "SET(CMAKE_CXX_COMPILER $CXX)" >> cmake-ccache.conf
|
||||||
|
|
||||||
|
cmake -DCMAKE_TOOLCHAIN_FILE=cmake-ccache.conf \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=${TOOLCHAIN} \
|
||||||
|
-DENABLE_DOCUMENTATION=OFF \
|
||||||
|
-DREDIS_STORAGE_BACKEND=OFF \
|
||||||
|
-DZSTD_FROM_INTERNET=OFF \
|
||||||
|
..
|
||||||
|
}
|
||||||
|
|
||||||
|
make_host() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
post_makeinstall_host() {
|
post_makeinstall_host() {
|
||||||
# setup ccache
|
# setup ccache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user