From dd4faf6f6f3fb32657b5d0c4fb72d15a7f571b2e Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Wed, 18 Mar 2009 21:22:04 +0000 Subject: cairo: add host version --- package/cairo/cairo.mk | 46 ++++++++++++++++++++++++++++++++++++++++ package/fontconfig/fontconfig.mk | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) (limited to 'package') diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk index c1f80d7b1..b52fef023 100644 --- a/package/cairo/cairo.mk +++ b/package/cairo/cairo.mk @@ -84,3 +84,49 @@ else endif $(eval $(call AUTOTARGETS,package,cairo)) + +# cairo for the host +CAIRO_HOST_DIR:=$(BUILD_DIR)/cairo-$(CAIRO_VERSION)-host +CAIRO_HOST_BINARY:=$(HOST_DIR)/usr/lib/libcairo.a + +$(CAIRO_HOST_DIR)/.unpacked: $(DL_DIR)/$(CAIRO_SOURCE) + mkdir -p $(@D) + $(INFLATE$(suffix $(CAIRO_SOURCE))) $< | \ + $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) - + touch $@ + +$(CAIRO_HOST_DIR)/.configured: $(CAIRO_HOST_DIR)/.unpacked $(PKGCONFIG_HOST_BINARY) $(FONTCONFIG_HOST_BINARY) $(PIXMAN_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 \ + --enable-ps \ + --enable-pdf \ + --enable-xlib \ + --with-x \ + --disable-png \ + --disable-svg \ + ) + touch $@ + +$(CAIRO_HOST_DIR)/.compiled: $(CAIRO_HOST_DIR)/.configured + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) + touch $@ + +$(CAIRO_HOST_BINARY): $(CAIRO_HOST_DIR)/.compiled + $(HOST_MAKE_ENV) $(MAKE) -C $(