SUMMARY="A replacement for the old Unix crypt command"
DESCRIPTION="mcrypt is an enhanced replacement for the old crypt command. It \
allows users to encrypt files or data streams without having to be \
cryptographers. mcrypt uses libmcrypt, its companion library, which contains \
the actual encryption functions and provides a standardized mechanism for \
accessing them."
HOMEPAGE="http://mcrypt.sourceforge.net/"
COPYRIGHT="1998-2007 Nikos Mavroyanopoulos"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://downloads.sourceforge.net/mcrypt/mcrypt-$portVersion.tar.gz"
CHECKSUM_SHA256="5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098"

ARCHITECTURES="all ?x86"

PROVIDES="
	mcrypt = $portVersion
	cmd:mcrypt = $portVersion
	cmd:mdecrypt = $portVersion
	"
REQUIRES="
	haiku
	lib:libmcrypt
	lib:libmhash
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libmcrypt
	devel:libmhash
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoreconf
	cmd:gcc
	cmd:libtoolize
	cmd:make
	"

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

INSTALL()
{
	make install
}
