diff options
author | cmchao <cmchao@gmail.com> | 2010-06-16 19:47:06 +0800 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2010-06-24 13:51:07 +0200 |
commit | 2406251d701a0be48d9e52bb0bf809586e62b920 (patch) | |
tree | d1c7ef55995a3f88e23c5bcd5d4cf06da200b210 /package/links/links.mk | |
parent | 9486dcc93a15e3e44e6a584589562c24da23fc50 (diff) | |
download | buildroot-novena-2406251d701a0be48d9e52bb0bf809586e62b920.tar.gz buildroot-novena-2406251d701a0be48d9e52bb0bf809586e62b920.zip |
links : convert to autotools infrastructure & bump to 1.01pre1-no-ssl
Changes by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Installation to target is the default behaviour
* No installation to staging is the default behaviour
* Stripping is done globally
* Remove incorrect cleaning rules
Signed-off-by: cmchao <cmchao@gmail.com>
Diffstat (limited to 'package/links/links.mk')
-rw-r--r-- | package/links/links.mk | 62 |
1 files changed, 6 insertions, 56 deletions
diff --git a/package/links/links.mk b/package/links/links.mk index 298c165fb..2e17066f2 100644 --- a/package/links/links.mk +++ b/package/links/links.mk @@ -3,64 +3,14 @@ # links (text based web browser) # ############################################################# -LINKS_VERSION:=0.99pre9-no-ssl +LINKS_VERSION:=1.01pre1-no-ssl 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) -$(DL_DIR)/$(LINKS_SOURCE): - $(call DOWNLOAD,$(LINKS_SITE),$(LINKS_SOURCE)) +LINKS_CONF_OPT = --localstatedir=/tmp -links-source: $(DL_DIR)/$(LINKS_SOURCE) +define LINKS_INSTALL_TARGET_CMDS + install -c $(@D)/links $(TARGET_DIR)/usr/bin/links +endef -$(LINKS_DIR)/.unpacked: $(DL_DIR)/$(LINKS_SOURCE) - $(ZCAT) $(DL_DIR)/$(LINKS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - touch $(LINKS_DIR)/.unpacked - -$(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) \ - ) - touch $(LINKS_DIR)/.configured - -$(LINKS_DIR)/links: $(LINKS_DIR)/.configured - $(MAKE) CC=$(TARGET_CC) -C $(LINKS_DIR) - $(STRIPCMD) $(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 - rm -f $(TARGET_DIR)/usr/bin/links - -links-dirclean: - rm -rf $(LINKS_DIR) - -links: $(TARGET_DIR)/usr/bin/links - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_LINKS),y) -TARGETS+=links -endif +$(eval $(call AUTOTARGETS,package,links)) |