diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-10-09 01:24:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-10-09 01:24:28 +0000 |
commit | 73f7be82904f487d167493e76b415fbe5b5f8c5a (patch) | |
tree | 8d9acaf4414892fad533fd92ebfc7e65a2ad2785 /package/wget | |
parent | 0b5ad783691ef6fa1285c8d7858a51c425a8b38d (diff) | |
download | buildroot-73f7be82904f487d167493e76b415fbe5b5f8c5a.tar.gz buildroot-73f7be82904f487d167493e76b415fbe5b5f8c5a.zip |
Remove the old 'make' directory, and populate the new 'package'
directory.
Diffstat (limited to 'package/wget')
-rw-r--r-- | package/wget/wget.mk | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/package/wget/wget.mk b/package/wget/wget.mk new file mode 100644 index 0000000000..3b67b3faad --- /dev/null +++ b/package/wget/wget.mk @@ -0,0 +1,49 @@ +############################################################# +# +# wget +# +############################################################# +WGET_VER:=1.9.1 +WGET_SOURCE:=wget-$(WGET_VER).tar.gz +WGET_SITE:=ftp://mirrors.kernel.org/gnu/wget +WGET_DIR:=$(BUILD_DIR)/wget-$(WGET_VER) +WGET_CAT:=zcat +WGET_BINARY:=src/wget +WGET_TARGET_BINARY:=bin/wget + +$(DL_DIR)/$(WGET_SOURCE): + $(WGET) -P $(DL_DIR) $(WGET_SITE)/$(WGET_SOURCE) + +$(WGET_DIR)/.unpacked: $(DL_DIR)/$(WGET_SOURCE) + $(WGET_CAT) $(DL_DIR)/$(WGET_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(WGET_DIR)/.unpacked + +$(WGET_DIR)/.configured: $(WGET_DIR)/.unpacked + (cd $(WGET_DIR); rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/ \ + --disable-ipv6 \ + $(DISABLE_NLS) \ + --without-ssl \ + ); + touch $(WGET_DIR)/.configured + +$(WGET_DIR)/$(WGET_BINARY): $(WGET_DIR)/.configured + $(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(WGET_DIR) + +$(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) |