summaryrefslogtreecommitdiffstats
path: root/package/atk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-11-03 00:08:47 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2009-12-15 19:57:35 +0100
commite6882586be87d15111e5fa4cfc75a2fb4667f1fc (patch)
tree481db14df3dd66685cb6e3ab9dc3a539eeb65bc1 /package/atk
parent1a929ec24151f8d4b891973afca34e4380fcfac5 (diff)
downloadbuildroot-novena-e6882586be87d15111e5fa4cfc75a2fb4667f1fc.tar.gz
buildroot-novena-e6882586be87d15111e5fa4cfc75a2fb4667f1fc.zip
atk: convert to autotools infrastructure for host package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/atk')
-rw-r--r--package/atk/atk.mk48
1 files changed, 5 insertions, 43 deletions
diff --git a/package/atk/atk.mk b/package/atk/atk.mk
index 1e8e576b0..e357f4992 100644
--- a/package/atk/atk.mk
+++ b/package/atk/atk.mk
@@ -53,50 +53,12 @@ endif
ATK_DEPENDENCIES = libglib2 host-pkg-config
-$(eval $(call AUTOTARGETS,package,atk))
-
-# atk for the host
-ATK_HOST_DIR:=$(BUILD_DIR)/atk-$(ATK_VERSION)-host
-
-$(DL_DIR)/$(ATK_SOURCE):
- $(call DOWNLOAD,$(ATK_SITE),$(ATK_SOURCE))
+HOST_ATK_DEPENDENCIES = host-libglib2 host-pkg-config
-$(STAMP_DIR)/host_atk_unpacked: $(DL_DIR)/$(ATK_SOURCE)
- mkdir -p $(ATK_HOST_DIR)
- $(INFLATE$(suffix $(ATK_SOURCE))) $< | \
- $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(ATK_HOST_DIR) $(TAR_OPTIONS) -
- touch $@
-
-$(STAMP_DIR)/host_atk_configured: $(STAMP_DIR)/host_atk_unpacked $(STAMP_DIR)/host_libglib2_installed $(STAMP_DIR)/host_pkgconfig_installed
- (cd $(ATK_HOST_DIR); rm -rf config.cache; \
- $(HOST_CONFIGURE_OPTS) \
- CFLAGS="$(HOST_CFLAGS)" \
- LDFLAGS="$(HOST_LDFLAGS)" \
- ./configure $(QUIET) \
- --prefix="$(HOST_DIR)/usr" \
- --sysconfdir="$(HOST_DIR)/etc" \
+HOST_ATK_CONF_OPT = \
--enable-shared \
--disable-static \
- --disable-glibtest \
- )
- touch $@
-
-$(STAMP_DIR)/host_atk_compiled: $(STAMP_DIR)/host_atk_configured
- $(HOST_MAKE_ENV) $(MAKE) -C $(ATK_HOST_DIR)
- touch $@
+ --disable-glibtest
-$(STAMP_DIR)/host_atk_installed: $(STAMP_DIR)/host_atk_compiled
- $(HOST_MAKE_ENV) $(MAKE) -C $(ATK_HOST_DIR) install
- touch $@
-
-host-atk: $(STAMP_DIR)/host_atk_installed
-
-host-atk-source: atk-source
-
-host-atk-clean:
- rm -f $(addprefix $(STAMP_DIR)/host_atk_,unpacked configured compiled installed)
- -$(MAKE) -C $(ATK_HOST_DIR) uninstall
- -$(MAKE) -C $(ATK_HOST_DIR) clean
-
-host-atk-dirclean:
- rm -rf $(ATK_HOST_DIR)
+$(eval $(call AUTOTARGETS,package,atk))
+$(eval $(call AUTOTARGETS,package,atk,host))