kumquat-buildroot/package/links/links.mk

67 lines
1.8 KiB
Makefile
Raw Normal View History

2002-05-23 21:21:23 +02:00
#############################################################
#
# links (text based web browser)
#
#############################################################
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
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):
2009-01-16 12:42:52 +01:00
$(call DOWNLOAD,$(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)
$(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
(cd $(LINKS_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure $(QUIET) \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libdir=/lib \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/tmp \
--mandir=/usr/man \
--infodir=/usr/info \
$(DISABLE_NLS) \
)
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
$(MAKE) CC=$(TARGET_CC) -C $(LINKS_DIR)
$(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:
-$(MAKE) -C $(LINKS_DIR) clean
rm -f $(TARGET_DIR)/usr/bin/links
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: $(TARGET_DIR)/usr/bin/links
2002-05-23 21:21:23 +02:00
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_LINKS),y)
TARGETS+=links
endif