aboutsummaryrefslogtreecommitdiff
path: root/security/p5-Crypt-OpenPGP/Makefile
blob: 18a0f0caeff28d7ff0c7fdc1ad5e1a543ff147e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:	p5-Crypt-OpenPGP
# Date created:				Tue Sep 11 02:08:49 PDT 2001
# Whom:	      				Michael Haro <mharo@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	Crypt-OpenPGP
PORTVERSION=	1.03
PORTREVISION=	1
CATEGORIES=	security perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Crypt
PKGNAMEPREFIX=	p5-

MAINTAINER=	tobez@FreeBSD.org
COMMENT=	Pure-Perl OpenPGP-compatible PGP implementation

BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Crypt/DES.pm:${PORTSDIR}/security/p5-Crypt-DES \
		${SITE_PERL}/${PERL_ARCH}/Crypt/Blowfish.pm:${PORTSDIR}/security/p5-Crypt-Blowfish \
		${SITE_PERL}/${PERL_ARCH}/Crypt/IDEA.pm:${PORTSDIR}/security/p5-Crypt-IDEA \
		${SITE_PERL}/Crypt/DSA.pm:${PORTSDIR}/security/p5-Crypt-DSA \
		${SITE_PERL}/Crypt/RSA.pm:${PORTSDIR}/security/p5-Crypt-RSA \
		${SITE_PERL}/${PERL_ARCH}/Crypt/RIPEMD160.pm:${PORTSDIR}/security/p5-Crypt-RIPEMD160 \
		${SITE_PERL}/${PERL_ARCH}/Crypt/Rijndael.pm:${PORTSDIR}/security/p5-Crypt-Rijndael \
		${SITE_PERL}/Crypt/CAST5_PP.pm:${PORTSDIR}/security/p5-Crypt-CAST5_PP \
		${SITE_PERL}/Crypt/DES_EDE3.pm:${PORTSDIR}/security/p5-Crypt-DES_EDE3 \
		${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
		p5-Compress-Zlib>0:${PORTSDIR}/archivers/p5-Compress-Zlib \
		${SITE_PERL}/${PERL_ARCH}/Math/Pari.pm:${PORTSDIR}/math/p5-Math-Pari \
		${SITE_PERL}/Data/Buffer.pm:${PORTSDIR}/misc/p5-Data-Buffer \
		${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
		${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
		p5-Math-BigInt>=1.78:${PORTSDIR}/math/p5-Math-BigInt \
		p5-Math-BigInt-GMP>=1.21:${PORTSDIR}/math/p5-Math-BigInt-GMP
RUN_DEPENDS=	${BUILD_DEPENDS}

PERL_CONFIGURE=	yes

MAN3=		Crypt::OpenPGP::ErrorHandler.3 Crypt::OpenPGP::Key.3 \
		Crypt::OpenPGP::CFB.3 Crypt::OpenPGP::SKSessionKey.3 \
		Crypt::OpenPGP::UserID.3 Crypt::OpenPGP::SessionKey.3 \
		Crypt::OpenPGP::Words.3 Crypt::OpenPGP::PacketFactory.3 \
		Crypt::OpenPGP::S2k.3 Crypt::OpenPGP.3 \
		Crypt::OpenPGP::Signature.3 \
		Crypt::OpenPGP::KeyBlock.3 Crypt::OpenPGP::MDC.3 \
		Crypt::OpenPGP::Compressed.3 Crypt::OpenPGP::Armour.3 \
		Crypt::OpenPGP::KeyRing.3 Crypt::OpenPGP::Plaintext.3 \
		Crypt::OpenPGP::Buffer.3 Crypt::OpenPGP::Cipher.3 \
		Crypt::OpenPGP::OnePassSig.3 Crypt::OpenPGP::Constants.3 \
		Crypt::OpenPGP::Util.3 Crypt::OpenPGP::Digest.3 \
		Crypt::OpenPGP::Ciphertext.3 Crypt::OpenPGP::Marker.3 \
		Crypt::OpenPGP::Trust.3 Crypt::OpenPGP::Certificate.3 \
		Crypt::OpenPGP::Message.3 Crypt::OpenPGP::KeyServer.3

post-patch:
	@${RM} -f ${WRKSRC}/lib/Crypt/OpenPGP/Ciphertext.pm.orig

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
DEPENDS_56=	p5-Scalar-List-Utils>0:${PORTSDIR}/lang/p5-Scalar-List-Utils \
		p5-MIME-Base64>0:${PORTSDIR}/converters/p5-MIME-Base64 \
		p5-Digest-MD5>0:${PORTSDIR}/security/p5-Digest-MD5
BUILD_DEPENDS+=	${DEPENDS_56}
RUN_DEPENDS+=	${DEPENDS_56}
.endif

.include <bsd.port.post.mk>