Files
haikuports/net-ftp/lftp/lftp-4.4.16.recipe

98 lines
2.4 KiB
Bash

SUMMARY="A sophisticated file transfer program with command line interface"
DESCRIPTION="lftp is sophisticated file transfer program with command line \
interface. It supports FTP, HTTP, FISH, SFTP and FILE (local FS) protocols. \
GNU Readline library is used for input. BitTorrent protocol is supported as \
built-in torrent command.
Low level stuff supported: ftp proxy, http proxy, ftp over http, opie/skey, \
fxp transfers, automatic retrying on non-fatal errors and timeouts, ipv6, \
socks, http/1.1, sftp v3-v6."
HOMEPAGE="http://lftp.yar.ru"
SOURCE_URI="http://lftp.yar.ru/ftp/lftp-$portVersion.tar.gz"
CHECKSUM_SHA256="441f472f9d3f13b0861fbf3e45f5d08d8cf999d2229b4ee446815d52ad673bf2"
PATCHES="lftp-$portVersion.patchset"
COPYRIGHT="1996-2012 Alexander V. Lukyanov"
LICENSE="GNU GPL v3"
REVISION="4"
ARCHITECTURES="!x86_gcc2 x86 x86_64 arm"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
lftp$secondaryArchSuffix = $portVersion
lib:liblftp_jobs$secondaryArchSuffix = 0.0.0 compat >= 0
lib:liblftp_tasks$secondaryArchSuffix = 0.0.0 compat >= 0
cmd:lftp = $portVersion compat >= 4
cmd:lftpget = $portVersion compat >= 4
"
REQUIRES="
haiku$secondaryArchSuffix
ca_root_certificates
lib:libreadline$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
lftp${secondaryArchSuffix}_devel = $portVersion
devel:liblftp_jobs$secondaryArchSuffix = 0.0.0 compat >= 0
devel:liblftp_tasks$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
lftp$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libreadline$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:automake
cmd:aclocal
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:find
cmd:pkg_config
cmd:sed
"
GLOBAL_WRITABLE_FILES="
settings/lftp.conf keep-old
"
PATCH()
{
sed -i configure.ac -e 's|^AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g'
}
BUILD()
{
libtoolize --force --copy --install
aclocal -I m4
autoconf
automake
runConfigure --omit-dirs binDir ./configure --with-openssl --enable-static \
--bindir=$prefix/bin
make $jobArgs
}
INSTALL()
{
make install
# prepare develop/lib
prepareInstalledDevelLibs liblftp-jobs liblftp-tasks
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}