2002-05-23 21:21:23 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# links (text based web browser)
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
LINKS_VERSION:=0.99pre9-no-ssl
|
2002-05-23 21:21:23 +02:00
|
|
|
LINKS_SITE:=http://artax.karlin.mff.cuni.cz/~mikulas/vyplody/links/download/no-ssl
|
2007-07-11 16:06:06 +02:00
|
|
|
LINKS_SOURCE:=links-$(LINKS_VERSION).tar.gz
|
|
|
|
LINKS_DIR:=$(BUILD_DIR)/links-$(LINKS_VERSION)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LINKS_SOURCE):
|
2002-11-21 00:16:10 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(LINKS_SITE)/$(LINKS_SOURCE)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
links-source: $(DL_DIR)/$(LINKS_SOURCE)
|
|
|
|
|
|
|
|
$(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(LINKS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(LINKS_DIR)/.unpacked
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(LINKS_DIR)/.configured: $(LINKS_DIR)/.unpacked
|
2003-01-17 09:03:59 +01:00
|
|
|
(cd $(LINKS_DIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2003-01-17 09:03:59 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2003-01-17 09:03:59 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
2003-01-18 22:27:22 +01:00
|
|
|
--localstatedir=/tmp \
|
2003-01-17 09:03:59 +01:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(LINKS_DIR)/.configured
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(LINKS_DIR)/links: $(LINKS_DIR)/.configured
|
2003-01-19 07:07:22 +01:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LINKS_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(LINKS_DIR)/links
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/bin/links: $(LINKS_DIR)/links
|
|
|
|
install -c $(LINKS_DIR)/links $(TARGET_DIR)/usr/bin/links
|
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
links-clean:
|
2003-01-17 09:03:59 +01:00
|
|
|
$(MAKE) -C $(LINKS_DIR) clean
|
2002-05-23 21:21:23 +02:00
|
|
|
|
2007-08-22 14:35:41 +02:00
|
|
|
links-dirclean:
|
|
|
|
rm -rf $(LINKS_DIR)
|
2002-05-23 21:21:23 +02:00
|
|
|
|
|
|
|
links: uclibc $(TARGET_DIR)/usr/bin/links
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LINKS)),y)
|
|
|
|
TARGETS+=links
|
|
|
|
endif
|