Add the relative path for <include> to fonts.conf if the parent path is same to fonts...
authorAkira TAGOH <akira@tagoh.org>
Mon, 30 Sep 2013 02:30:00 +0000 (11:30 +0900)
committerAkira TAGOH <akira@tagoh.org>
Mon, 30 Sep 2013 02:30:00 +0000 (11:30 +0900)
Bug 69836 - fonts.conf.in update for Windows cross-compiling

Makefile.am

index d310b4b..2b949e4 100644 (file)
@@ -90,12 +90,14 @@ $(srcdir)/ChangeLog:
 
 .PHONY: ChangeLog
 
+FC_CONFIGDIR = $(subst $(BASECONFIGDIR)/,,$(CONFIGDIR))
+
 fonts.conf: fonts.conf.in Makefile
        sed \
                -e 's,@FC_CACHEDIR\@,$(FC_CACHEDIR),g' \
                -e 's,@FC_DEFAULT_FONTS\@,$(FC_DEFAULT_FONTS),g' \
                -e 's,@FC_FONTPATH\@,$(FC_FONTPATH),g' \
-               -e 's,@CONFIGDIR\@,$(CONFIGDIR),g' \
+               -e 's,@CONFIGDIR\@,$(FC_CONFIGDIR),g' \
                -e 's,@PACKAGE\@,$(PACKAGE),g' \
                -e 's,@VERSION\@,$(VERSION),g' \
                $(srcdir)/$@.in > $@.tmp && \