aboutsummaryrefslogtreecommitdiffstats
path: root/package/fontconfig
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 21:22:04 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 21:22:04 +0000
commitdd4faf6f6f3fb32657b5d0c4fb72d15a7f571b2e (patch)
tree7c9cd20cdc08fe5880986a77f8350b9a3441778d /package/fontconfig
parent33552590d5376e095cea99e650e967c5b278a2d0 (diff)
downloadbuildroot-novena-dd4faf6f6f3fb32657b5d0c4fb72d15a7f571b2e.tar.gz
buildroot-novena-dd4faf6f6f3fb32657b5d0c4fb72d15a7f571b2e.zip
cairo: add host version
Diffstat (limited to 'package/fontconfig')
-rw-r--r--package/fontconfig/fontconfig.mk42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/fontconfig/fontconfig.mk b/package/fontconfig/fontconfig.mk
index 28830d6a1..81181cc8b 100644
--- a/package/fontconfig/fontconfig.mk
+++ b/package/fontconfig/fontconfig.mk
@@ -24,3 +24,45 @@ FONTCONFIG_CONF_OPT = --with-arch=$(GNU_TARGET_NAME) \
FONTCONFIG_DEPENDENCIES = uclibc freetype expat
$(eval $(call AUTOTARGETS,package,fontconfig))
+
+# fontconfig for the host
+FONTCONFIG_HOST_DIR:=$(BUILD_DIR)/fontconfig-$(FONTCONFIG_VERSION)-host
+FONTCONFIG_HOST_BINARY:=$(HOST_DIR)/usr/bin/fc-cache
+
+$(FONTCONFIG_HOST_DIR)/.unpacked: $(DL_DIR)/$(FONTCONFIG_SOURCE)
+ mkdir -p $(@D)
+ $(INFLATE$(suffix $(FONTCONFIG_SOURCE))) $< | \
+ $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
+ touch $@
+
+$(FONTCONFIG_HOST_DIR)/.configured: $(FONTCONFIG_HOST_DIR)/.unpacked $(FREETYPE_HOST_BINARY) $(EXPAT_HOST_BINARY)
+ (cd $(@D); rm -rf config.cache; \
+ $(HOST_CONFIGURE_OPTS) \
+ CFLAGS="$(HOST_CFLAGS)" \
+ LDFLAGS="$(HOST_LDFLAGS)" \
+ $(@D)/configure \
+ --prefix=$(HOST_DIR)/usr \
+ --sysconfdir=$(HOST_DIR)/etc \
+ --disable-docs \
+ --disable-static \
+ )
+ touch $@
+
+$(FONTCONFIG_HOST_DIR)/.compiled: $(FONTCONFIG_HOST_DIR)/.configured
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+ touch $@
+
+$(FONTCONFIG_HOST_BINARY): $(FONTCONFIG_HOST_DIR)/.compiled
+ $(HOST_MAKE_ENV) $(MAKE) -C $(<D) install
+
+host-fontconfig: $(FONTCONFIG_HOST_BINARY)
+
+host-fontconfig-source: fontconfig-source
+
+host-fontconfig-clean:
+ rm -f $(addprefix $(FONTCONFIG_HOST_DIR)/,.unpacked .configured .compiled)
+ -$(MAKE) -C $(FONTCONFIG_HOST_DIR) uninstall
+ -$(MAKE) -C $(FONTCONFIG_HOST_DIR) clean
+
+host-fontconfig-dirclean:
+ rm -rf $(FONTCONFIG_HOST_DIR)