DESCRIPTION="lightweight yet fully functional embedded SSL implementation" 
HOMEPAGE="http://yassl.com" 
SOURCE_URI="http://yassl.com/cyassl-1.8.0.zip"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="app-text/dos2unix >= 1.0"
CHECKSUM_MD5="d2ce70ffe04b6603eeb630258e236a58"
BUILD()
{
	cd cyassl-1.8.0
	dos2unix *
	dos2unix include/*
	dos2unix ctaocrypt/include/*
	dos2unix ctaocrypt/src/*
	libtoolize --force --copy --install
	rm acinclude.m4
	rm aclocal.m4
	aclocal
	autoconf
	chmod 755 configure
	automake
	./configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-shared
	make
}

INSTALL()
{
	cd cyassl-1.8.0
	make install
}

TEST()
{
	cd cyassl-1.8.0
	make check
	cd testsuite
	testsuite
}

LICENSE="GNU GPL v2"
COPYRIGHT="2006-2011 Sawtooth Consulting Ltd."
