# Created by: mat
# $FreeBSD: security/p5-Crypt-CBCeasy/Makefile 332949 2013-11-06 07:39:31Z vanilla $

PORTNAME=	Crypt-CBCeasy
PORTVERSION=	0.24
CATEGORIES=	security perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Easy things make really easy with Crypt::CBC

BUILD_DEPENDS=	p5-Crypt-CBC>=0:${PORTSDIR}/security/p5-Crypt-CBC \
		p5-MD5>=0:${PORTSDIR}/security/p5-MD5
RUN_DEPENDS:=	${BUILD_DEPENDS}

USES=		perl5
USE_PERL5=	configure

OPTIONS_DEFINE=	DES IDEA BLOWFISH BLOWFISH_PP TWOFISH2 RIJNDAEL
OPTIONS_DEFAULT=	DES IDEA BLOWFISH BLOWFISH_PP TWOFISH2 RIJNDAEL
DES_DESC=		Build with Crypt::DES support
IDEA_DESC=		Build with Crypt::IDEA support
BLOWFISH_DESC=		Build with Crypt::Blowfish support
BLOWFISH_PP_DESC=	Build with Crypt::Blowfish_PP support
TWOFISH2_DESC=		Build with Crypt::Twofish2 support
RIJNDAEL_DESC=		Build with Crypt::Rijndael support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDES}
BUILD_DEPENDS+=	p5-Crypt-DES>=0:${PORTSDIR}/security/p5-Crypt-DES
.endif
.if ${PORT_OPTIONS:MIDEA}
BUILD_DEPENDS+=	p5-Crypt-IDEA>=0:${PORTSDIR}/security/p5-Crypt-IDEA
.endif
.if ${PORT_OPTIONS:MBLOWFISH}
BUILD_DEPENDS+=	p5-Crypt-Blowfish>=0:${PORTSDIR}/security/p5-Crypt-Blowfish
.endif
.if ${PORT_OPTIONS:MBLOWFISH_PP}
BUILD_DEPENDS+=	p5-Crypt-Blowfish_PP>=0:${PORTSDIR}/security/p5-Crypt-Blowfish_PP
.endif
.if ${PORT_OPTIONS:MTWOFISH2}
BUILD_DEPENDS+=	p5-Crypt-Twofish2>=0:${PORTSDIR}/security/p5-Crypt-Twofish2
.endif
.if ${PORT_OPTIONS:MRIJNDAEL}
BUILD_DEPENDS+=	p5-Crypt-Rijndael>=0:${PORTSDIR}/security/p5-Crypt-Rijndael
.endif

.include <bsd.port.mk>
