moved
[openwrt.git] / obsolete-buildroot / make / links.mk
1 #############################################################
2 #
3 # links (text based web browser)
4 #
5 #############################################################
6 LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
7 LINKS_SOURCE:=links-0.99pre9-no-ssl.tar.gz
8 LINKS_DIR:=$(BUILD_DIR)/links-0.99pre9-no-ssl
9
10 $(DL_DIR)/$(LINKS_SOURCE):
11 $(WGET) -P $(DL_DIR) $(LINKS_SITE)/$(LINKS_SOURCE)
12
13 links-source: $(DL_DIR)/$(LINKS_SOURCE)
14
15 $(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE)
16 zcat $(DL_DIR)/$(LINKS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
17 touch $(LINKS_DIR)/.unpacked
18
19 $(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
20 (cd $(LINKS_DIR); rm -rf config.cache; \
21 $(TARGET_CONFIGURE_OPTS) \
22 ./configure \
23 --target=$(GNU_TARGET_NAME) \
24 --host=$(GNU_TARGET_NAME) \
25 --build=$(GNU_HOST_NAME) \
26 --prefix=/usr \
27 --exec-prefix=/usr \
28 --bindir=/usr/bin \
29 --sbindir=/usr/sbin \
30 --libexecdir=/usr/lib \
31 --sysconfdir=/etc \
32 --datadir=/usr/share \
33 --localstatedir=/tmp \
34 --mandir=/usr/man \
35 --infodir=/usr/info \
36 $(DISABLE_NLS) \
37 );
38 touch $(LINKS_DIR)/.configured
39
40 $(LINKS_DIR)/links: $(LINKS_DIR)/.configured
41 $(MAKE) CC=$(TARGET_CC) -C $(LINKS_DIR)
42 $(STRIP) $(LINKS_DIR)/links
43
44 $(TARGET_DIR)/usr/bin/links: $(LINKS_DIR)/links
45 install -c $(LINKS_DIR)/links $(TARGET_DIR)/usr/bin/links
46
47 links-clean:
48 $(MAKE) -C $(LINKS_DIR) clean
49
50 links-dirclean:
51 rm -rf $(LINKS_DIR)
52
53 links: uclibc $(TARGET_DIR)/usr/bin/links
54
This page took 0.041255 seconds and 5 git commands to generate.