summaryrefslogtreecommitdiffstats
path: root/make/wget.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-08 20:08:26 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-08 20:08:26 +0000
commit5af473bf26fdfbe2fc390a1f53822bffffdc5505 (patch)
tree0287aade9fd37110ca4610686d00b79027065c03 /make/wget.mk
parentaccbb13b399691e7b83b592b67194d58ed4acdc6 (diff)
downloadbuildroot-novena-5af473bf26fdfbe2fc390a1f53822bffffdc5505.tar.gz
buildroot-novena-5af473bf26fdfbe2fc390a1f53822bffffdc5505.zip
wget !
Diffstat (limited to 'make/wget.mk')
-rw-r--r--make/wget.mk49
1 files changed, 49 insertions, 0 deletions
diff --git a/make/wget.mk b/make/wget.mk
new file mode 100644
index 000000000..d5f7c4302
--- /dev/null
+++ b/make/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)