summaryrefslogtreecommitdiffstats
path: root/make/links.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-23 19:21:23 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-23 19:21:23 +0000
commit6387962e30c205246a5615b4d202a080601f93d0 (patch)
treed5b1427e4e5408eaefacb7adc1ebc7cd9ffc28c6 /make/links.mk
parent2fcdc3786da919cb034e976b67b15250cd3cbdaf (diff)
downloadbuildroot-novena-6387962e30c205246a5615b4d202a080601f93d0.tar.gz
buildroot-novena-6387962e30c205246a5615b4d202a080601f93d0.zip
Add some toys for people to play with
Diffstat (limited to 'make/links.mk')
-rw-r--r--make/links.mk41
1 files changed, 41 insertions, 0 deletions
diff --git a/make/links.mk b/make/links.mk
new file mode 100644
index 000000000..a5f25b353
--- /dev/null
+++ b/make/links.mk
@@ -0,0 +1,41 @@
+#############################################################
+#
+# links (text based web browser)
+#
+#############################################################
+LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
+LINKS_SOURCE:=links-0.97pre9-no-ssl.tar.gz
+LINKS_DIR:=$(BUILD_DIR)/links-0.97pre9-no-ssl
+
+$(DL_DIR)/$(LINKS_SOURCE):
+ wget -P $(DL_DIR) --passive-ftp $(LINKS_SITE)/$(LINKS_SOURCE)
+
+links-source: $(DL_DIR)/$(LINKS_SOURCE)
+
+$(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE)
+ zcat $(DL_DIR)/$(LINKS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(LINKS_DIR)/.unpacked
+
+$(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
+ (cd $(LINKS_DIR); rm -rf config.cache; CC=$(TARGET_CC1) \
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/lib --sysconfdir=/etc \
+ --localstatedir=/tmp --libdir=/etc \
+ --disable-nls);
+ touch $(LINKS_DIR)/.configured
+
+$(LINKS_DIR)/links: $(LINKS_DIR)/.configured
+ make CC=$(TARGET_CC1) -C $(LINKS_DIR)
+ $(STRIP) $(LINKS_DIR)/links
+
+$(TARGET_DIR)/usr/bin/links: $(LINKS_DIR)/links
+ install -c $(LINKS_DIR)/links $(TARGET_DIR)/usr/bin/links
+
+links-clean:
+ make -C $(LINKS_DIR) clean
+
+links-dirclean:
+ rm -rf $(LINKS_DIR)
+
+links: uclibc $(TARGET_DIR)/usr/bin/links
+