0
0
Fork 0
haikuports/net-misc/wget/wget-1.21.1.recipe

78 lines
1.8 KiB
Bash
Raw Permalink Normal View History

2017-02-16 21:29:47 +00:00
SUMMARY="A tool for downloading files from the internet"
DESCRIPTION="wget is a tool that can download files from the internet through \
protocols such as HTTP, HTTPS and FTP. wget is non-interactive, so it can be \
called from scripts."
HOMEPAGE="https://www.gnu.org/software/wget/"
2018-02-16 16:12:20 +00:00
COPYRIGHT="1996-2018 Free Software Foundation"
2017-02-16 21:29:47 +00:00
LICENSE="GNU GPL v3"
2021-03-03 17:51:37 +00:00
REVISION="1"
2018-02-16 16:12:20 +00:00
SOURCE_URI="https://ftpmirror.gnu.org/wget/wget-$portVersion.tar.gz"
2021-03-03 17:51:37 +00:00
CHECKSUM_SHA256="59ba0bdade9ad135eda581ae4e59a7a9f25e3a4bde6a5419632b31906120e26e"
2017-02-16 21:29:47 +00:00
PATCHES="wget-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
2017-02-16 21:29:47 +00:00
2018-08-03 12:17:38 +00:00
GLOBAL_WRITABLE_FILES="
settings/wgetrc keep-old
"
USER_SETTINGS_FILES="
settings/wgetrc
"
2017-02-16 21:29:47 +00:00
PROVIDES="
wget$secondaryArchSuffix = $portVersion
cmd:wget$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
2018-08-09 08:34:39 +00:00
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
2017-02-16 21:29:47 +00:00
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libz$secondaryArchSuffix >= 1.2.3
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
2018-08-09 08:34:39 +00:00
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:gettext
2017-02-16 21:29:47 +00:00
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
2018-08-09 08:34:39 +00:00
cmd:pod2man
2017-02-16 21:29:47 +00:00
"
BUILD()
{
AUTOPOINT=true autoreconf -fi
runConfigure ./configure --with-ssl=openssl
make
}
INSTALL()
{
make install
# Tells wget where to find certificates
echo "ca_certificate=/boot/system/data/ssl/CARootCertificates.pem" > $settingsDir/wgetrc
2018-02-16 16:12:20 +00:00
rm -f "$infoDir"/dir
rm -f "$libDir"/charset.alias
2017-02-16 21:29:47 +00:00
}
TEST()
{
[ -d .git ] && mv .git .git-temp
make check || true
[ -d .git-temp ] && mv .git-temp .git
}