Update mail/dovecot2-pigeonhole to version 0.4.0_2
[dports.git] / mail / dovecot2-pigeonhole / Makefile
1 # Created by: Nils Vogels <nivo+kw+ports.bfa274@is-root.com>
2 # $FreeBSD: mail/dovecot2-pigeonhole/Makefile 323115 2013-07-16 17:51:12Z feld $
3
4 PORTNAME=       dovecot-pigeonhole
5 PORTVERSION=    0.4.0
6 PORTREVISION=   2
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 LICENSE_FILE=   ${WRKSRC}/COPYING
16
17 BUILD_DEPENDS:= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot2
18 RUN_DEPENDS:=   dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot2
19
20 DOVECOTVERSION= 2.2
21
22 GNU_CONFIGURE=  yes
23 CONFIGURE_TARGET=       --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
24 CONFIGURE_ARGS= --exec-prefix=${PREFIX} \
25                 --without-dovecot-install-dirs \
26                 --docdir=${DOCSDIR} \
27                 --with-dovecot="${LOCALBASE}/lib/dovecot"
28 LDFLAGS+=       -L${LOCALBASE}/lib
29 USE_LDCONFIG=   ${PREFIX}/lib/dovecot
30
31 MAN1=           sieve-dump.1 sieve-filter.1 sieve-test.1 sievec.1 sieved.1
32 MAN7=           pigeonhole.7
33 PORTDOCS=       doc/extensions/* doc/plugins/* doc/rfc/*
34
35 .include <bsd.port.pre.mk>
36
37 post-patch:
38         @${REINPLACE_CMD} -E '\
39         s!^(install-data-am:) install-sieve_docDATA!\1!; \
40                 s!^(uninstall-am:) uninstall-sieve_docDATA!\1!;' \
41                 ${WRKSRC}/doc/Makefile.in
42
43 post-install:
44         @${CAT} ${PKGMESSAGE}
45
46 .include <bsd.port.post.mk>