Update mail/dovecot2-pigeonhole to version 0.3.3_3
[dports.git] / mail / dovecot2-pigeonhole / Makefile
1 # Created by: Nils Vogels <nivo+kw+ports.bfa274@is-root.com>
2 # $FreeBSD: ports/mail/dovecot2-pigeonhole/Makefile,v 1.22 2013/02/14 08:23:29 svnexp Exp $
3
4 PORTNAME=       dovecot-pigeonhole
5 PORTVERSION=    0.3.3
6 PORTREVISION=   3
7 CATEGORIES=     mail
8 MASTER_SITES=   http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/
9 DISTNAME=       ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION}
10
11 MAINTAINER=     bra@fsn.hu
12 COMMENT=        Sieve plugin for the Dovecot 'deliver' LDA and LMTP
13
14 LICENSE=        LGPL21
15
16 BUILD_DEPENDS:= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVERSION:R}
17 RUN_DEPENDS:=   dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVERSION:R}
18
19 DOVECOTVERSION= 2.1
20
21 GNU_CONFIGURE=  yes
22 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
23 CONFIGURE_ARGS= --prefix=${PREFIX} \
24                 --docdir=${DOCSDIR} \
25                 --with-dovecot="${LOCALBASE}/lib/dovecot"
26 LDFLAGS+=       -L${LOCALBASE}/lib
27 USE_LDCONFIG=   ${PREFIX}/lib/dovecot
28
29 MAN1=           sieve-dump.1 sieve-filter.1 sieve-test.1 sievec.1 sieved.1
30 MAN7=           pigeonhole.7
31
32 DOCSDIR=        ${PREFIX}/share/doc/${PORTNAME:S/-/\//}
33
34 OPTIONS_DEFINE= DOCS EXAMPLES
35
36 .include <bsd.port.options.mk>
37
38 .if ${PORT_OPTIONS:MDOCS}
39 EXTENSIONDOCS=  editheader.txt include.txt spamtest-virustest.txt \
40                 vacation.txt vnd.dovecot.duplicate.txt
41 PORTDOCS=       AUTHORS COPYING COPYING.LGPL INSTALL NEWS README TODO \
42                 script-location-dict.txt ${EXTENSIONDOCS}
43 .endif
44
45 .if ${PORT_OPTIONS:MEXAMPLES}
46 EXAMPLESDIR=    ${PREFIX}/share/examples/${PORTNAME:S/-/\//}
47 PORTEXAMPLES=   *.sieve
48 .endif
49
50 post-patch:
51         @${REINPLACE_CMD} -E '\
52                 s!^(install-data-am:) install-sieve_docDATA!\1!; \
53                 s!^(uninstall-am:) uninstall-sieve_docDATA!\1!;' \
54                 ${WRKSRC}/doc/Makefile.in
55 .if ${PORT_OPTIONS:MDOCS}
56 .for f in ${EXTENSIONDOCS}
57         @${LN} -f ${WRKSRC}/doc/extensions/${f} ${WRKSRC}/
58 .endfor
59         @${LN} -f ${WRKSRC}/doc/script-location-dict.txt ${WRKSRC}/
60 .endif
61
62 post-install:
63 .if ${PORT_OPTIONS:MDOCS}
64         @${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${DOCSDIR}
65 .for f in ${PORTDOCS}
66         @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
67 .endfor
68         @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
69 .endif
70 .if ${PORT_OPTIONS:MEXAMPLES}
71         @${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${EXAMPLESDIR}
72         @${INSTALL_DATA} ${WRKSRC}/examples/*.sieve ${EXAMPLESDIR}
73         @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}"
74 .endif
75         @${CAT} ${PKGMESSAGE}
76
77 .include <bsd.port.mk>