# Ports collection makefile for:  libtomcrypt
# Date created:			  22 Jan 2004
# Whom:				  Yonatan <Yonatan@Xpert.com>
#
# $FreeBSD: ports/security/libtomcrypt/Makefile,v 1.1 2004/04/10 23:16:07 thierry Exp $
#

PORTNAME=	libtomcrypt
PORTVERSION=	0.92
CATEGORIES=	security
MASTER_SITES=	http://libtomcrypt.org/files/
DISTNAME=	crypt-${PORTVERSION}

MAINTAINER=	Yonatan@xpert.com
COMMENT=	Comprehensive, modular and portable cryptographic toolkit

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKEFILE=	makefile
MAKE_ENV=	PREFIX=${PREFIX} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR}
USE_BZIP2=	yes
ALL_TARGET=	library

.if defined(WITH_DOCS)
BUILD_DEPENDS+=	latex:${PORTSDIR}/print/teTeX
.else
NOPORTDOCS=	yes
INSTALL_TARGET=	install-nodocs
.endif

.if defined(MAINTAINER_MODE)
test:	build
	(cd ${WRKSRC} && ${MAKE} test && ${WRKSRC}/test)
.endif

.include <bsd.port.mk>
