SUMMARY="A command line WebDAV client"
DESCRIPTION="It supports file upload, download, on-screen display, namespace \
operations (move/copy), collection creation and deletion, and locking \
operations."
HOMEPAGE="http://www.webdav.org/cadaver/"
COPYRIGHT="1998-2008 Joe Orton
	2002-2003 GRASE Lab, UCSC"
LICENSE="GNU GPL v2"
REVISION="5"
SOURCE_URI="http://www.webdav.org/cadaver/cadaver-$portVersion.tar.gz"
CHECKSUM_SHA256="fd4ce68a3230ba459a92bcb747fc6afa91e46d803c1d5ffe964b661793c13fca"
PATCHES="cadaver-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	cadaver = $portVersion
	cmd:cadaver
	"
REQUIRES="
	haiku
	lib:libintl
	lib:libncurses
	lib:libneon
	lib:libreadline
	lib:libssl
	lib:libxml2
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	devel:libncurses
	devel:libneon
	devel:libreadline >= 8
	devel:libssl
	devel:libxml2
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:bison
	cmd:gcc
	cmd:libtoolize
	cmd:make
	cmd:neon_config
	cmd:pkg_config
	"

defineDebugInfoPackage cadaver \
	"$binDir"/cadaver

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
