SUMMARY="CyaSSL embedded SSL implementation" 
DESCRIPTION="
A lightweight yet fully functional embedded SSL implementation.
" 
HOMEPAGE="http://yassl.com" 
SRC_URI="http://yassl.com/cyassl-2.8.0.zip"
CHECKSUM_SHA256="94dcac2dfa87b8474815241eee50f7192e7f315c8173ec209d2a3f752bba9a8d"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2006-2013 Sawtooth Consulting Ltd."

ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"

PROVIDES="
	cyassl$secondaryArchSuffix = $portVersion
	lib:libcyassl$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	"

BUILD_REQUIRES="
	"

BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	cmd:libtoolize
	cmd:aclocal
	cmd:autoconf
	cmd:make
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:dos2unix
	"


DEPEND="app-text/dos2unix >= 1.0"
BUILD()
{
	dos2unix *
	dos2unix include/*
	dos2unix ctaocrypt/include/*
	dos2unix ctaocrypt/src/*
	libtoolize --force --copy --install
	aclocal -I m4
	autoconf
	chmod 755 configure
	automake
	runConfigure ./configure --enable-shared
	make
}

INSTALL()
{
	make install
}

TEST()
{
	make check
	cd testsuite
	testsuite
}
