2003-01-09 03:34:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libtool
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-03-23 22:46:51 +01:00
|
|
|
LIBTOOL_VERSION = 1.5.24
|
|
|
|
LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.gz
|
|
|
|
LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2009-03-23 22:46:51 +01:00
|
|
|
ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
|
|
|
|
LIBTOOL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
2007-09-19 22:13:08 +02:00
|
|
|
endif
|
2005-09-30 22:46:29 +02:00
|
|
|
|
2009-03-23 22:46:51 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libtool))
|
2003-01-09 03:34:10 +01:00
|
|
|
|
2007-06-28 15:51:07 +02:00
|
|
|
# libtool for the host
|
2009-03-23 22:46:51 +01:00
|
|
|
LIBTOOL_HOST_DIR:=$(BUILD_DIR)/libtool-$(LIBTOOL_VERSION)-host
|
|
|
|
|
|
|
|
# variables used by other packages
|
|
|
|
LIBTOOL:=$(HOST_DIR)/usr/bin/libtool
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-24 11:58:04 +01:00
|
|
|
$(DL_DIR)/$(LIBTOOL_SOURCE):
|
|
|
|
$(call DOWNLOAD,$(LIBTOOL_SITE),$(LIBTOOL_SOURCE))
|
|
|
|
|
2009-03-23 22:46:51 +01:00
|
|
|
$(STAMP_DIR)/host_libtool_unpacked: $(DL_DIR)/$(LIBTOOL_SOURCE)
|
2007-06-28 15:51:07 +02:00
|
|
|
mkdir -p $(LIBTOOL_HOST_DIR)
|
2009-03-23 22:46:51 +01:00
|
|
|
$(INFLATE$(suffix $(LIBTOOL_SOURCE))) $< | \
|
|
|
|
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(LIBTOOL_HOST_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(LIBTOOL_HOST_DIR) package/libtool/ \*.patch
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(STAMP_DIR)/host_libtool_configured: $(STAMP_DIR)/host_libtool_unpacked
|
2007-06-28 15:51:07 +02:00
|
|
|
(cd $(LIBTOOL_HOST_DIR); rm -rf config.cache; \
|
|
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
|
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2009-03-23 22:46:51 +01:00
|
|
|
--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:51 +01:00
|
|
|
$(STAMP_DIR)/host_libtool_compiled: $(STAMP_DIR)/host_libtool_configured
|
2007-06-28 15:51:07 +02:00
|
|
|
$(MAKE) -C $(LIBTOOL_HOST_DIR)
|
2009-03-23 22:46:51 +01:00
|
|
|
touch $@
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-23 22:46:51 +01:00
|
|
|
$(STAMP_DIR)/host_libtool_installed: $(STAMP_DIR)/host_libtool_compiled
|
2007-06-28 15:51:07 +02:00
|
|
|
$(MAKE) -C $(LIBTOOL_HOST_DIR) install
|
2009-03-29 21:10:26 +02:00
|
|
|
install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/libtool.m4 \
|
|
|
|
$(STAGING_DIR)/usr/share/aclocal/libtool.m4
|
|
|
|
install -D -m 0644 $(HOST_DIR)/usr/share/aclocal/ltdl.m4 \
|
|
|
|
$(STAGING_DIR)/usr/share/aclocal/ltdl.m4
|
2009-03-23 22:46:51 +01:00
|
|
|
touch $@
|
2007-06-28 15:51:07 +02:00
|
|
|
|
2009-03-23 22:46:51 +01:00
|
|
|
host-libtool: $(STAMP_DIR)/host_libtool_installed
|
2007-06-28 15:51:07 +02:00
|
|
|
|
|
|
|
host-libtool-clean:
|
2009-03-23 22:46:51 +01:00
|
|
|
rm -f $(addprefix $(STAMP_DIR)/host_libtool_,unpacked configured compiled installed)
|
2008-09-22 10:11:02 +02:00
|
|
|
-$(MAKE) -C $(LIBTOOL_HOST_DIR) uninstall
|
2007-06-28 15:51:07 +02:00
|
|
|
-$(MAKE) -C $(LIBTOOL_HOST_DIR) clean
|
|
|
|
|
|
|
|
host-libtool-dirclean:
|
|
|
|
rm -rf $(LIBTOOL_HOST_DIR)
|