2003-01-09 03:34:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# automake
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-03-23 22:46:37 +01:00
|
|
|
AUTOMAKE_VERSION = 1.10
|
|
|
|
AUTOMAKE_SOURCE = automake-$(AUTOMAKE_VERSION).tar.bz2
|
|
|
|
AUTOMAKE_SITE = $(BR2_GNU_MIRROR)/automake
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
|
|
|
|
AUTOMAKE_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
|
|
|
endif
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
AUTOMAKE_DEPENDENCIES = autoconf microperl
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,automake))
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
# automake for the host
|
|
|
|
AUTOMAKE_HOST_DIR:=$(BUILD_DIR)/automake-$(AUTOMAKE_VERSION)-host
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
# variables used by other packages
|
|
|
|
AUTOMAKE:=$(HOST_DIR)/usr/bin/automake
|
2009-03-29 21:10:26 +02:00
|
|
|
ACLOCAL_DIR = $(STAGING_DIR)/usr/share/aclocal
|
2009-03-23 22:46:37 +01:00
|
|
|
ACLOCAL = $(HOST_DIR)/usr/bin/aclocal -I $(ACLOCAL_DIR)
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-24 11:58:04 +01:00
|
|
|
$(DL_DIR)/$(AUTOMAKE_SOURCE):
|
|
|
|
$(call DOWNLOAD,$(AUTOMAKE_SITE),$(AUTOMAKE_SOURCE))
|
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
$(STAMP_DIR)/host_automake_unpacked: $(DL_DIR)/$(AUTOMAKE_SOURCE)
|
|
|
|
mkdir -p $(AUTOMAKE_HOST_DIR)
|
|
|
|
$(INFLATE$(suffix $(AUTOMAKE_SOURCE))) $< | \
|
|
|
|
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(AUTOMAKE_HOST_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(AUTOMAKE_HOST_DIR) package/automake/ \*.patch
|
2007-01-29 13:55:00 +01:00
|
|
|
touch $@
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2009-03-23 22:46:43 +01:00
|
|
|
$(STAMP_DIR)/host_automake_configured: $(STAMP_DIR)/host_automake_unpacked $(STAMP_DIR)/host_autoconf_installed
|
2009-03-23 22:46:37 +01:00
|
|
|
(cd $(AUTOMAKE_HOST_DIR); rm -rf config.cache; \
|
2007-06-28 15:51:07 +02:00
|
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
2009-03-23 22:46:37 +01:00
|
|
|
./configure \
|
|
|
|
--prefix="$(HOST_DIR)/usr" \
|
|
|
|
--sysconfdir="$(HOST_DIR)/etc" \
|
|
|
|
--disable-static \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-28 15:51:07 +02:00
|
|
|
touch $@
|
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
$(STAMP_DIR)/host_automake_compiled: $(STAMP_DIR)/host_automake_configured
|
|
|
|
$(MAKE) -C $(AUTOMAKE_HOST_DIR)
|
|
|
|
touch $@
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
$(STAMP_DIR)/host_automake_installed: $(STAMP_DIR)/host_automake_compiled
|
2007-06-28 15:51:07 +02:00
|
|
|
$(MAKE) -C $(AUTOMAKE_HOST_DIR) install
|
2009-03-29 21:10:26 +02:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/share/aclocal
|
2009-03-23 22:46:37 +01:00
|
|
|
touch $@
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-23 22:46:37 +01:00
|
|
|
host-automake: $(STAMP_DIR)/host_automake_installed
|
2007-06-28 15:51:07 +02:00
|
|
|
|
|
|
|
host-automake-clean:
|
2009-03-23 22:46:37 +01:00
|
|
|
rm -f $(addprefix $(STAMP_DIR)/host_automake_,unpacked configured compiled installed)
|
|
|
|
-$(MAKE) -C $(AUTOMAKE_HOST_DIR) uninstall
|
2007-06-28 15:51:07 +02:00
|
|
|
-$(MAKE) -C $(AUTOMAKE_HOST_DIR) clean
|
|
|
|
|
|
|
|
host-automake-dirclean:
|
|
|
|
rm -rf $(AUTOMAKE_HOST_DIR)
|