summaryrefslogtreecommitdiffstats
path: root/rules/wget.make
blob: f5fc2329150087703f8b001a87a02027f788f6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*-makefile-*-
#
# Copyright (C) 2005-2008 by Robert Schwebel
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_WGET) += wget

#
# Paths and names
#
WGET_VERSION	:= 1.21.3
WGET_MD5	:= e89496b15f8bf039d723926fae4d91f5
WGET		:= wget-$(WGET_VERSION)
WGET_SUFFIX	:= tar.gz
WGET_URL	:= $(call ptx/mirror, GNU, wget/$(WGET).$(WGET_SUFFIX))
WGET_SOURCE	:= $(SRCDIR)/$(WGET).$(WGET_SUFFIX)
WGET_DIR	:= $(BUILDDIR)/$(WGET)
WGET_LICENSE	:= GPL-3.0-or-later
WGET_LICENSE_FILES := \
	file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e \
	file://src/main.c;startline=1;endline=28;md5=369c109d52f213d2396ac45b9d884c39

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

WGET_CONF_ENV := \
	$(CROSS_ENV) \
	ac_cv_prog_MAKEINFO=: \
	ac_cv_path_PERL=: \
	ac_cv_path_POD2MAN=:

#
# autoconf
#
WGET_CONF_TOOL := autoconf
WGET_CONF_OPT := \
	$(CROSS_AUTOCONF_USR) \
	--enable-opie \
	--enable-digest \
	--disable-ntlm \
	--enable-debug \
	--disable-valgrind-tests \
	--enable-assert \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--enable-threads=posix \
	--disable-nls \
	--disable-rpath \
	--disable-code-coverage \
	$(GLOBAL_IPV6_OPTION) \
	--disable-iri \
	--disable-pcre2 \
	--disable-pcre \
	--disable-xattr \
	--without-libpsl \
	--with-ssl=$(call remove_quotes, $(PTXCONF_WGET_SSL)) \
	--$(call ptx/wwo, PTXCONF_WGET_ZLIB)-zlib \
	--with-metalink \
	--without-cares \
	--$(call ptx/wwo, PTXCONF_WGET_SSL_OPENSSL)-openssl \
	--with-included-libunistring \
	--without-included-regex \
	--without-libuuid


# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/wget.targetinstall:
	@$(call targetinfo)

	@$(call install_init, wget)
	@$(call install_fixup, wget,PRIORITY,optional)
	@$(call install_fixup, wget,SECTION,base)
	@$(call install_fixup, wget,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, wget,DESCRIPTION,missing)

	@$(call install_copy, wget, 0, 0, 0755, -, /usr/bin/wget)

	@$(call install_finish, wget)

	@$(call touch)

# vim: syntax=make