mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
fontconfig: use /storage/.cache/fontconfig as persistent font cache dir, create fontcache only on first boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
|
||||
FC_CACHE_DIRS="/usr/share/fonts/ /usr/share/xbmc/media/Fonts/"
|
||||
|
||||
# hack to support user installed fonts
|
||||
@@ -35,9 +34,11 @@ FC_CACHE_DIRS="/usr/share/fonts/ /usr/share/xbmc/media/Fonts/"
|
||||
mount --bind $SUBFONTS /usr/share/xbmc/media/Fonts/
|
||||
fi
|
||||
|
||||
|
||||
(
|
||||
progress "Creating fontconfig cache"
|
||||
fc-cache $FC_CACHE_DIRS
|
||||
if [ ! -f /storage/.cache/fontconfig/CACHEDIR.TAG ]; then
|
||||
mkdir -p /storage/.cache/fontconfig
|
||||
fc-cache $FC_CACHE_DIRS
|
||||
fi
|
||||
)&
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--with-arch=$TARGET_ARCH \
|
||||
--with-cache-dir=/storage/.cache/fontconfig \
|
||||
--with-default-fonts=/usr/share/fonts/liberation \
|
||||
--without-add-fonts \
|
||||
--disable-dependency-tracking \
|
||||
|
||||
Reference in New Issue
Block a user