changeset 4809:1ce75b5e4757

fontconfig: strip host prefix <cachedir> from fonts.conf file.
author John W. Eaton <jwe@octave.org>
date Tue, 21 Aug 2018 16:19:15 -0400
parents adc0217b36c0
children b5247f4c2dd4
files src/fontconfig.mk
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontconfig.mk	Tue Aug 21 08:55:54 2018 -0400
+++ b/src/fontconfig.mk	Tue Aug 21 16:19:15 2018 -0400
@@ -28,6 +28,11 @@
         --with-arch='$(TARGET)' \
         --disable-docs \
         --with-expat='$(HOST_PREFIX)' && $(CONFIGURE_POST_HOOK)
+
     $(MAKE) -C '$(1)' -j '$(JOBS)' sbin_PROGRAMS= noinst_PROGRAMS=
+
+    $(MAKE) -C '$(1)' -j 1 fonts.conf
+    $(SED) -i "\|^.*<cachedir>$(HOST_PREFIX).*$$|d" $(1)/fonts.conf
+
     $(MAKE) -C '$(1)' -j 1 install sbin_PROGRAMS= noinst_PROGRAMS=
 endef