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:
Stephan Raue 2013-08-06 12:44:14 +02:00
parent 2689c5252f
commit 9973ea84c8
2 changed files with 5 additions and 3 deletions

View File

@ -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
)&

View File

@ -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 \