diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-18 21:21:06 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-03-18 21:21:06 +0000 |
commit | 991f304207b9006c5ddc174e3c5c3e74a77612a5 (patch) | |
tree | 05e1d69dd6e47870d7927ed14f29b45bb861dee3 | |
parent | b1d451b13c38b79c96248d697ba4a982063835e5 (diff) | |
download | buildroot-novena-991f304207b9006c5ddc174e3c5c3e74a77612a5.tar.gz buildroot-novena-991f304207b9006c5ddc174e3c5c3e74a77612a5.zip |
atk: add host version
-rw-r--r-- | package/atk/atk.mk | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/atk/atk.mk b/package/atk/atk.mk index 2f85dee4e..4751f7614 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 $(<D) install + +host-atk: $(ATK_HOST_BINARY) + +host-atk-source: atk-source + +host-atk-clean: + rm -f $(addprefix $(ATK_HOST_DIR)/,.unpacked .configured .compiled) + -$(MAKE) -C $(ATK_HOST_DIR) uninstall + -$(MAKE) -C $(ATK_HOST_DIR) clean + +host-atk-dirclean: + rm -rf $(ATK_HOST_DIR) |