kumquat-buildroot/package/wget/wget.mk

61 lines
1.5 KiB
Makefile
Raw Normal View History

2004-10-08 22:08:26 +02:00
#############################################################
#
# wget
#
#############################################################
WGET_VERSION:=1.10.2
WGET_SOURCE:=wget-$(WGET_VERSION).tar.gz
WGET_SITE:=$(BR2_GNU_MIRROR)/wget
WGET_DIR:=$(BUILD_DIR)/wget-$(WGET_VERSION)
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
wget-source: $(DL_DIR)/$(WGET_SOURCE)
2004-10-08 22:08:26 +02:00
$(WGET_DIR)/.unpacked: $(DL_DIR)/$(WGET_SOURCE)
$(WGET_CAT) $(DL_DIR)/$(WGET_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
$(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; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure $(QUIET) \
2004-10-08 22:08:26 +02:00
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/ \
--disable-ipv6 \
$(DISABLE_NLS) \
2004-10-08 22:08:26 +02:00
--without-ssl \
)
2008-03-06 19:29:06 +01:00
touch $@
2004-10-08 22:08:26 +02:00
$(WGET_DIR)/$(WGET_BINARY): $(WGET_DIR)/.configured
$(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: $(TARGET_DIR)/$(WGET_TARGET_BINARY)
2004-10-08 22:08:26 +02:00
wget-clean:
rm -f $(TARGET_DIR)/$(WGET_TARGET_BINARY)
-$(MAKE) -C $(WGET_DIR) clean
wget-dirclean:
rm -rf $(WGET_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_WGET),y)
TARGETS+=wget
endif