source: trunk/kBuild/tools/WGET.kmk@ 1569

Last change on this file since 1569 was 1547, checked in by bird, 17 years ago

License clearification.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: WGET.kmk 1547 2008-04-22 02:02:09Z bird $
2## @file
3# kBuild Tool Config - wget fetchers.
4#
5
6#
7# Copyright (c) 2006-2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
8#
9#
10# This file is part of kBuild.
11#
12# kBuild is free software; you can redistribute it and/or modify
13# it under the terms of the GNU General Public License as published by
14# the Free Software Foundation; either version 2 of the License, or
15# (at your option) any later version.
16#
17# kBuild is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with kBuild; if not, write to the Free Software
24# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25#
26#
27# As a special exception you are granted permission to include this file, via
28# the kmk include directive, as you wish without this in itself causing the
29# resulting makefile, program or whatever to be covered by the GPL license.
30# This exception does not however invalidate any other reasons why the makefile,
31# program, whatever should not be covered the GPL.
32#
33#
34
35TOOL_WGET := wget fetcher.
36
37# Tool Specific Properties
38ifndef TOOL_WGET_FETCH
39 TOOL_WGET_FETCH := $(wildcard $(PATH_DEVTOOLS_BLD)/wget/v*/wget$(HOSTSUFF_EXE))
40 ifneq ($(TOOL_WGET_FETCH),)
41 TOOL_WGET_FETCH := $(wildcard $(PATH_DEVTOOLS_BLD)/bin/wget$(HOSTSUFF_EXE))
42 endif
43 ifneq ($(TOOL_WGET_FETCH),)
44 TOOL_WGET_FETCH := $(lastword $(sort $(TOOL_WGET_FETCH)))
45 else
46 TOOL_WGET_FETCH := wget$(HOSTSUFF_EXE)
47 endif
48else
49 # Resolve any fancy stuff once and for all.
50 TOOL_WGET_FETCH := $(TOOL_WGET_FETCH)
51endif
52
53# General Properties used by kBuild
54TOOL_WGET_FETCHFLAGS ?= --passive-ftp -t 5 -T 60
55
56## Fetch one file.
57# @param $(target) Normalized main target name.
58# @param $(source) The URI of the file.
59# @param $(flags) Flags.
60# @param $(out) The output file
61TOOL_WGET_FETCH_OUTPUT =
62TOOL_WGET_FETCH_DEPEND =
63TOOL_WGET_FETCH_DEPORD =
64define TOOL_WGET_FETCH_CMDS
65 $(QUIET)$(TOOL_WGET_FETCH) $(flags) -P $(dir $(out)) $(source)
66endef
67
Note: See TracBrowser for help on using the repository browser.