blob: 9744a95500a470522c761b3121ae88d5b590fba9 (
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
|
# New ports collection makefile for: p5-Mail-CClient
# Date created: 01 July 2000
# Whom: Kelly Yancey <kbyanc@posi.net>
#
# $FreeBSD$
#
PORTNAME= CClient
PORTVERSION= 1.12
CATEGORIES= mail perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Mail/HDIAS
PKGNAMEPREFIX= p5-
DISTNAME= Mail-Cclient-${PORTVERSION}
MAINTAINER= mat@FreeBSD.org
COMMENT= Perl interface to the c-client mailbox API
LIB_DEPENDS= c-client4.8:${PORTSDIR}/mail/cclient
PERL_CONFIGURE= yes
CONFIGURE_ARGS= --cclient_dir=${LOCALBASE} \
--with-shared_cclient \
--with-pam \
--with-cclient-includes=${LOCALBASE}/include/c-client
MAN3= Mail::Cclient.3
.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} < 500600
@${PERL} -pi -e 's/HEADERS, ">", /HEADERS, ">". /' \
${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>
|