From 689c10faea3d8a9f1784043e9a1109ca073c6a86 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 18 Mar 2009 21:22:13 +0000 Subject: pango: add host version --- package/pango/pango.mk | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'package') diff --git a/package/pango/pango.mk b/package/pango/pango.mk index 4a236d320..ce62f4305 100644 --- a/package/pango/pango.mk +++ b/package/pango/pango.mk @@ -59,3 +59,46 @@ $(eval $(call AUTOTARGETS,package,pango)) $(PANGO_HOOK_POST_INSTALL): $(INSTALL) -m 755 package/pango/S25pango $(TARGET_DIR)/etc/init.d/ touch $@ + +# pango for the host +PANGO_HOST_DIR:=$(BUILD_DIR)/pango-$(PANGO_VERSION)-host +PANGO_HOST_BINARY:=$(HOST_DIR)/usr/bin/pango-querymodules + +$(PANGO_HOST_DIR)/.unpacked: $(DL_DIR)/$(PANGO_SOURCE) + mkdir -p $(@D) + $(INFLATE$(suffix $(PANGO_SOURCE))) $< | \ + $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) - + touch $@ + +$(PANGO_HOST_DIR)/.configured: $(PANGO_HOST_DIR)/.unpacked $(PKGCONFIG_HOST_BINARY) $(CAIRO_HOST_BINARY) $(LIBGLIB2_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-static \ + --with-x \ + --disable-debug \ + ) + touch $@ + +$(PANGO_HOST_DIR)/.compiled: $(PANGO_HOST_DIR)/.configured + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) + touch $@ + +$(PANGO_HOST_BINARY): $(PANGO_HOST_DIR)/.compiled + $(HOST_MAKE_ENV) $(MAKE) -C $(