aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Mail-CClient/Makefile
blob: 1458adf85caec1338d2c4463bacf8baa4266cc49 (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
70
71
72
73
74
75
# Created by: Kelly Yancey <kbyanc@posi.net>
# $FreeBSD$

PORTNAME=		Mail-CClient
PORTVERSION=		1.12
PORTREVISION=		1
CATEGORIES=		mail perl5
MASTER_SITES=		CPAN
MASTER_SITE_SUBDIR=	CPAN:HDIAS
PKGNAMEPREFIX=		p5-
DISTNAME=		Mail-Cclient-${PORTVERSION}

MAINTAINER=		perl@FreeBSD.org
COMMENT=		Perl interface to the c-client mailbox API

LIB_DEPENDS=		c-client4.9:${PORTSDIR}/mail/cclient

USES=		perl5
USE_PERL5=	configure
CONFIGURE_ARGS=		--cclient_dir=${LOCALBASE} \
		 	--with-shared_cclient \
			--with-pam \
			--with-cclient-includes=${LOCALBASE}/include/c-client

MAN3=			Mail::Cclient.3

DEPRECATED=	Broken for more than 6 month
EXPIRATION_DATE=	2013-08-24

.if !defined(NOPORTDOCS)
PORTDOCS=	Changes FAQ README TODO
EXAMPLES=	copy.txt \
		fetch_body.pl \
		fetch_structure.pl \
		imap.txt \
		list_mailboxs.pl \
		mime.txt \
		rfc822_date.pl \
		rfc822_output.txt \
		rfc822_parse_adrlist.pl \
		rfc822_write_address.pl \
		search.txt \
		search_msg.txt \
		smtp_mail.pl \
		smtp_mail_append.txt \
		smtp_mail_mpart.pl \
		sort.txt \
		struct.txt \
		summ.txt \
		thread.txt \
		thread_test.pl \
		utf8_mime2text.pl

post-install:
	@${MKDIR} ${DOCSDIR}
	@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
	@${MKDIR} ${EXAMPLESDIR}
	@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/examples/|} ${EXAMPLESDIR}
	@${ECHO_MSG} "===> Documentation installed in ${EXAMPLESDIR}."
.endif

.include <bsd.port.pre.mk>

post-patch:
	@${PERL} -pi -e 's/-lc-client/-lc-client4/g;' \
		     -e 's/"-lc"/"-L\$$CCLIENT_DIR\/lib "/g;' \
		     -e 's/ -lpam_misc//g;' \
		 ${WRKSRC}/Makefile.PL

.if ${PERL_LEVEL} > 501400
BROKEN=	does not compile, no release since 2004
.endif

.include <bsd.port.post.mk>