SUMMARY="The GNU SASL library"
DESCRIPTION="GNU SASL is an implementation of the Simple Authentication and \
Security Layer framework and a few common SASL mechanisms. SASL is used by \
network servers (e.g., IMAP, SMTP) to request authentication from clients, \
and in clients to authenticate against servers.

Supported mechanisms are ANONYMOUS, EXTERNAL, LOGIN, PLAIN, SECURID, NTLM, \
DIGEST-MD5, CRAM-MD5, SCRAM-SHA-1, SCRAM-SHA-1-PLUS, GS2-KRB5, GSSAPI."
HOMEPAGE="http://www.gnu.org/software/gsasl"
COPYRIGHT="2004-2012 Simon Josefsson"
LICENSE="GNU GPL v3
	GNU LGPL v3"
REVISION="3"
SOURCE_URI="ftp://ftp.gnu.org/gnu/gsasl/libgsasl-$portVersion.tar.gz"
CHECKSUM_SHA256="3adfb49f9c92a719dea855fd1840d698cde55d4648d332a69032ba8bea207720"

ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	libgsasl$secondaryArchSuffix = $portVersion
	lib:libgsasl$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

PROVIDES_devel="
	libgsasl${secondaryArchSuffix}_devel = $portVersion
	devel:libgsasl$secondaryArchSuffix = $portVersion
	"
REQUIRES_devel="
	libgsasl$secondaryArchSuffix == $portVersion base
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:libtoolize$secondaryArchSuffix
	cmd:make
	"

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

INSTALL()
{
	make install

	prepareInstalledDevelLibs libgsasl
	fixPkgconfig

	# devel package
	packageEntries devel \
		$developDir
}
