diff --git a/packages/x11/other/fontconfig/init.d/35_fontconfig b/packages/x11/other/fontconfig/init.d/35_fontconfig index 639deeda32..6b3ea3011c 100644 --- a/packages/x11/other/fontconfig/init.d/35_fontconfig +++ b/packages/x11/other/fontconfig/init.d/35_fontconfig @@ -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 )& diff --git a/packages/x11/other/fontconfig/package.mk b/packages/x11/other/fontconfig/package.mk index 9a48b6e011..5d47cdaa89 100644 --- a/packages/x11/other/fontconfig/package.mk +++ b/packages/x11/other/fontconfig/package.mk @@ -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 \