aboutsummaryrefslogtreecommitdiffstats
path: root/mail/p5-Net-IMAP-Simple/Makefile
blob: 754ae7191143140f7a73bf8318eeae98a3b80b3e (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
# New ports collection makefile for:    mail/p5-Net-IMAP-Simple
# Date created:             30 December 2004
# Whom:                 Lars Thegler <lth@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   Net-IMAP-Simple
PORTVERSION=    1.2030
CATEGORIES= mail perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:JETTERO
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl extension for simple IMAP account handling

BUILD_DEPENDS=  p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \
        p5-Coro>=0:${PORTSDIR}/devel/p5-Coro \
        p5-DateTime-Format-Mail>=0:${PORTSDIR}/devel/p5-DateTime-Format-Mail \
        p5-DateTime-Format-Strptime>=0:${PORTSDIR}/devel/p5-DateTime-Format-Strptime \
        p5-DateTime>=0:${PORTSDIR}/devel/p5-DateTime \
        p5-Email-Address>=0:${PORTSDIR}/mail/p5-Email-Address \
        p5-Email-MIME-ContentType>=0:${PORTSDIR}/mail/p5-Email-MIME-ContentType \
        p5-Email-MIME>=1.862:${PORTSDIR}/mail/p5-Email-MIME \
        p5-Email-Simple>=1.999:${PORTSDIR}/mail/p5-Email-Simple \
        p5-Encode-IMAPUTF7>=0:${PORTSDIR}/converters/p5-Encode-IMAPUTF7 \
        p5-IO-Socket-SSL>0:${PORTSDIR}/security/p5-IO-Socket-SSL \
        p5-List-MoreUtils>0:${PORTSDIR}/lang/p5-List-MoreUtils \
        p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64 \
        p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay \
        p5-Net-Server-Coro>=0.3:${PORTSDIR}/net/p5-Net-Server-Coro \
        p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common \
        p5-UNIVERSAL-require>=0:${PORTSDIR}/devel/p5-UNIVERSAL-require
RUN_DEPENDS:=   ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MAN3=       Net::IMAP::Simple.3 \
        Net::IMAP::Simple::PipeSocket.3

OPTIONS_DEFINE= SX
SX_DESC=    Simple protocol extensions (use Parse::RecDescent)

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSX}
CONFIGURE_ENV+= WITH_SX="true"
.endif

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MSX}
PLIST_SUB+= WITH_SX=""
MAN3+=      Net::IMAP::SimpleX.3
RUN_DEPENDS+=   p5-Parse-RecDescent>=0:${PORTSDIR}/devel/p5-Parse-RecDescent
.else
PLIST_SUB+= WITH_SX="@comment "
.endif

.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+=  p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif

.include <bsd.port.post.mk>