mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00: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:
parent
2689c5252f
commit
9973ea84c8
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user