atk: convert to autotools infrastructure for host package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1a929ec241
commit
e6882586be
@ -53,50 +53,12 @@ endif
|
|||||||
|
|
||||||
ATK_DEPENDENCIES = libglib2 host-pkg-config
|
ATK_DEPENDENCIES = libglib2 host-pkg-config
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,atk))
|
HOST_ATK_DEPENDENCIES = host-libglib2 host-pkg-config
|
||||||
|
|
||||||
# atk for the host
|
HOST_ATK_CONF_OPT = \
|
||||||
ATK_HOST_DIR:=$(BUILD_DIR)/atk-$(ATK_VERSION)-host
|
|
||||||
|
|
||||||
$(DL_DIR)/$(ATK_SOURCE):
|
|
||||||
$(call DOWNLOAD,$(ATK_SITE),$(ATK_SOURCE))
|
|
||||||
|
|
||||||
$(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" \
|
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--disable-glibtest \
|
--disable-glibtest
|
||||||
)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(STAMP_DIR)/host_atk_compiled: $(STAMP_DIR)/host_atk_configured
|
$(eval $(call AUTOTARGETS,package,atk))
|
||||||
$(HOST_MAKE_ENV) $(MAKE) -C $(ATK_HOST_DIR)
|
$(eval $(call AUTOTARGETS,package,atk,host))
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(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)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user