SUMMARY="A command-line ftp-client"
DESCRIPTION="Wput is a command-line ftp-client that looks like wget but \
instead of downloading, uploads files or whole directories to remote \
ftp-servers."
HOMEPAGE="http://wput.sourceforge.net/"
COPYRIGHT="2002-2008 Hagen Fritsch"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/wput/files/wput/0.6.2/wput-0.6.2.tgz"
CHECKSUM_SHA256="229d8bb7d045ca1f54d68de23f1bc8016690dc0027a16586712594fbc7fad8c7"
PATCHES="wput-$portVersion.patchset"

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	wput$secondaryArchSuffix = $portVersion
	cmd:wdel$secondaryArchSuffix
	cmd:wput$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libgnutls_openssl$secondaryArchSuffix
	lib:libiconv$secondaryArchSuffix
	lib:libintl$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libgnutls_openssl$secondaryArchSuffix
	devel:libiconv$secondaryArchSuffix
	devel:libintl$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:gzip
	cmd:libtoolize$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	"

BUILD()
{
	libtoolize -fci
	autoconf
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
