From: Peter Korsgaard Date: Wed, 18 Mar 2009 21:21:06 +0000 (-0000) Subject: atk: add host version X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=991f304207b9006c5ddc174e3c5c3e74a77612a5;p=buildroot.git atk: add host version --- diff --git a/package/atk/atk.mk b/package/atk/atk.mk index 2f85dee4e7..4751f7614c 100644 --- a/package/atk/atk.mk +++ b/package/atk/atk.mk @@ -56,3 +56,46 @@ endif ATK_DEPENDENCIES = libglib2 host-pkgconfig $(eval $(call AUTOTARGETS,package,atk)) + +# atk for the host +ATK_HOST_DIR:=$(BUILD_DIR)/atk-$(ATK_VERSION)-host +ATK_HOST_BINARY:=$(HOST_DIR)/usr/lib/libatk-1.0.a + +$(ATK_HOST_DIR)/.unpacked: $(DL_DIR)/$(ATK_SOURCE) + mkdir -p $(@D) + $(INFLATE$(suffix $(ATK_SOURCE))) $< | \ + $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) - + touch $@ + +$(ATK_HOST_DIR)/.configured: $(ATK_HOST_DIR)/.unpacked $(LIBGLIB2_HOST_BINARY) $(PKGCONFIG_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-shared \ + --disable-static \ + --disable-glibtest \ + ) + touch $@ + +$(ATK_HOST_DIR)/.compiled: $(ATK_HOST_DIR)/.configured + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) + touch $@ + +$(ATK_HOST_BINARY): $(ATK_HOST_DIR)/.compiled + $(HOST_MAKE_ENV) $(MAKE) -C $(