summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 21:22:13 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 21:22:13 +0000
commit689c10faea3d8a9f1784043e9a1109ca073c6a86 (patch)
tree9341d5d4cd76597378e4d1077b8449203f33e404
parentaefadc18d98b2a7f0a00ba78607717d421d67ee4 (diff)
pango: add host version
-rw-r--r--package/pango/pango.mk43
1 files changed, 43 insertions, 0 deletions
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 $(<D) install
+
+host-pango: $(PANGO_HOST_BINARY)
+
+host-pango-source: pango-source
+
+host-pango-clean:
+ rm -f $(addprefix $(PANGO_HOST_DIR)/,.unpacked .configured .compiled)
+ -$(MAKE) -C $(PANGO_HOST_DIR) uninstall
+ -$(MAKE) -C $(PANGO_HOST_DIR) clean
+
+host-pango-dirclean:
+ rm -rf $(PANGO_HOST_DIR)