2004-10-08 22:08:26 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# wget
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
WGET_VERSION:=1.10.2
|
|
|
|
WGET_SOURCE:=wget-$(WGET_VERSION).tar.gz
|
2008-03-26 04:28:09 +01:00
|
|
|
WGET_SITE:=$(BR2_GNU_MIRROR)/wget
|
2007-07-11 16:06:06 +02:00
|
|
|
WGET_DIR:=$(BUILD_DIR)/wget-$(WGET_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
WGET_CAT:=$(ZCAT)
|
2004-10-08 22:08:26 +02:00
|
|
|
WGET_BINARY:=src/wget
|
|
|
|
WGET_TARGET_BINARY:=bin/wget
|
|
|
|
|
|
|
|
$(DL_DIR)/$(WGET_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(WGET_SITE),$(WGET_SOURCE))
|
2004-10-08 22:08:26 +02:00
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
wget-source: $(DL_DIR)/$(WGET_SOURCE)
|
|
|
|
|
2004-10-08 22:08:26 +02:00
|
|
|
$(WGET_DIR)/.unpacked: $(DL_DIR)/$(WGET_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(WGET_CAT) $(DL_DIR)/$(WGET_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2008-02-12 01:35:03 +01:00
|
|
|
$(CONFIG_UPDATE) $(WGET_DIR)
|
2008-03-06 19:29:06 +01:00
|
|
|
touch $@
|
2004-10-08 22:08:26 +02:00
|
|
|
|
|
|
|
$(WGET_DIR)/.configured: $(WGET_DIR)/.unpacked
|
|
|
|
(cd $(WGET_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2004-10-08 22:08:26 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/ \
|
|
|
|
--disable-ipv6 \
|
2004-10-08 22:11:54 +02:00
|
|
|
$(DISABLE_NLS) \
|
2004-10-08 22:08:26 +02:00
|
|
|
--without-ssl \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2008-03-06 19:29:06 +01:00
|
|
|
touch $@
|
2004-10-08 22:08:26 +02:00
|
|
|
|
|
|
|
$(WGET_DIR)/$(WGET_BINARY): $(WGET_DIR)/.configured
|
2007-07-09 10:30:38 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(WGET_DIR)
|
2004-10-08 22:08:26 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(WGET_TARGET_BINARY): $(WGET_DIR)/$(WGET_BINARY)
|
|
|
|
install -D $(WGET_DIR)/$(WGET_BINARY) $(TARGET_DIR)/$(WGET_TARGET_BINARY)
|
|
|
|
|
|
|
|
wget: uclibc $(TARGET_DIR)/$(WGET_TARGET_BINARY)
|
|
|
|
|
|
|
|
wget-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(WGET_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(WGET_DIR) clean
|
|
|
|
|
|
|
|
wget-dirclean:
|
|
|
|
rm -rf $(WGET_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_WGET),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=wget
|
|
|
|
endif
|