wget-1.20.3.recipe revision 22a97e92
1SUMMARY="A tool for downloading files from the internet"
2DESCRIPTION="wget is a tool that can download files from the internet through \
3protocols such as HTTP, HTTPS and FTP. wget is non-interactive, so it can be \
4called from scripts."
5HOMEPAGE="https://www.gnu.org/software/wget/"
6COPYRIGHT="1996-2018 Free Software Foundation"
7LICENSE="GNU GPL v3"
8REVISION="1"
9SOURCE_URI="https://ftpmirror.gnu.org/wget/wget-$portVersion.tar.gz"
10CHECKSUM_SHA256="31cccfc6630528db1c8e3a06f6decf2a370060b982841cfab2b8677400a5092e"
11PATCHES="wget-$portVersion.patchset"
12
13ARCHITECTURES="x86_gcc2 x86 x86_64"
14SECONDARY_ARCHITECTURES="x86 x86_gcc2"
15
16GLOBAL_WRITABLE_FILES="
17	settings/wgetrc keep-old
18	"
19USER_SETTINGS_FILES="
20	settings/wgetrc
21	"
22
23PROVIDES="
24	wget$secondaryArchSuffix = $portVersion
25	cmd:wget$secondaryArchSuffix = $portVersion
26	"
27REQUIRES="
28	haiku$secondaryArchSuffix
29	lib:libcrypto$secondaryArchSuffix
30	lib:libiconv$secondaryArchSuffix
31	lib:libintl$secondaryArchSuffix
32	lib:libssl$secondaryArchSuffix
33	lib:libz$secondaryArchSuffix
34	"
35
36BUILD_REQUIRES="
37	haiku${secondaryArchSuffix}_devel
38	devel:libcrypto$secondaryArchSuffix
39	devel:libiconv$secondaryArchSuffix
40	devel:libssl$secondaryArchSuffix
41	devel:libz$secondaryArchSuffix >= 1.2.3
42	"
43BUILD_PREREQUIRES="
44	cmd:aclocal
45	cmd:autoconf
46	cmd:find
47	cmd:gcc$secondaryArchSuffix
48	cmd:gettext
49	cmd:libtoolize$secondaryArchSuffix
50	cmd:make
51	cmd:makeinfo
52	cmd:pkg_config$secondaryArchSuffix
53	cmd:pod2man
54	"
55
56BUILD()
57{
58	AUTOPOINT=true autoreconf -fi
59	runConfigure ./configure --with-ssl=openssl
60	make
61}
62
63INSTALL()
64{
65	make install
66	# Tells wget where to find certificates
67	echo "ca_certificate=/boot/system/data/ssl/CARootCertificates.pem" > $settingsDir/wgetrc
68	rm -f "$infoDir"/dir
69	rm -f "$libDir"/charset.alias
70}
71
72TEST()
73{
74	[ -d .git ] && mv .git .git-temp
75	make check || true
76	[ -d .git-temp ] && mv .git-temp .git
77}
78