summaryrefslogtreecommitdiffstats
path: root/package/fontconfig/fontconfig.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2007-05-22 10:31:25 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2007-05-22 10:31:25 +0000
commita489dda13f5893da30d24777bf6d8eb2ba3769fa (patch)
tree9f2ba58a533949d6a32d876700508a8fa7304e8c /package/fontconfig/fontconfig.mk
parent660b19062dcae07512bca27f4a02b2e99852871c (diff)
downloadbuildroot-novena-a489dda13f5893da30d24777bf6d8eb2ba3769fa.tar.gz
buildroot-novena-a489dda13f5893da30d24777bf6d8eb2ba3769fa.zip
Use freetype-host for host tools. Fixes #1328
Diffstat (limited to 'package/fontconfig/fontconfig.mk')
-rw-r--r--package/fontconfig/fontconfig.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/fontconfig/fontconfig.mk b/package/fontconfig/fontconfig.mk
index e7d6f5361..df9978d8b 100644
--- a/package/fontconfig/fontconfig.mk
+++ b/package/fontconfig/fontconfig.mk
@@ -17,6 +17,15 @@ fontconfig-source: $(DL_DIR)/$(FONTCONFIG_SOURCE)
$(FONTCONFIG_DIR)/.unpacked: $(DL_DIR)/$(FONTCONFIG_SOURCE)
$(FONTCONFIG_CAT) $(DL_DIR)/$(FONTCONFIG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(FONTCONFIG_DIR) package/fontconfig/ \*.patch*
+# use freetype-host for host tools
+ FREETYPE_CFLAGS="$(shell $(FREETYPE_HOST_DIR)/bin/freetype-config --cflags)"; \
+ FREETYPE_LIBS="$(shell $(FREETYPE_HOST_DIR)/bin/freetype-config --libs)"; \
+ for dir in fc-case fc-glyphname fc-lang fc-arch; \
+ do \
+ $(SED) "s~^FREETYPE_CFLAGS =.*~FREETYPE_CFLAGS = $$FREETYPE_CFLAGS~" \
+ -e "s~^FREETYPE_LIBS =.*~FREETYPE_LIBS = $$FREETYPE_LIBS~" \
+ $(FONTCONFIG_DIR)/$$dir/Makefile.in; \
+ done
$(CONFIG_UPDATE) $(FONTCONFIG_DIR)
touch $(FONTCONFIG_DIR)/.unpacked