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 $
4 PORTNAME= dovecot-pigeonhole
8 MASTER_SITES= http://www.rename-it.nl/dovecot/${DOVECOTVERSION}/
9 DISTNAME= ${PORTNAME:C/-/-${DOVECOTVERSION}-/}-${PORTVERSION}
11 MAINTAINER= bra@fsn.hu
12 COMMENT= Sieve plugin for the Dovecot 'deliver' LDA and LMTP
16 BUILD_DEPENDS:= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVERSION:R}
17 RUN_DEPENDS:= dovecot>=${DOVECOTVERSION}:${PORTSDIR}/mail/dovecot${DOVECOTVERSION:R}
22 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
23 CONFIGURE_ARGS= --prefix=${PREFIX} \
25 --with-dovecot="${LOCALBASE}/lib/dovecot"
26 LDFLAGS+= -L${LOCALBASE}/lib
27 USE_LDCONFIG= ${PREFIX}/lib/dovecot
29 MAN1= sieve-dump.1 sieve-filter.1 sieve-test.1 sievec.1 sieved.1
32 DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/-/\//}
34 OPTIONS_DEFINE= DOCS EXAMPLES
36 .include <bsd.port.options.mk>
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}
45 .if ${PORT_OPTIONS:MEXAMPLES}
46 EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:S/-/\//}
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}/
59 @${LN} -f ${WRKSRC}/doc/script-location-dict.txt ${WRKSRC}/
63 .if ${PORT_OPTIONS:MDOCS}
64 @${INSTALL} ${_SHROWNGRP} -m ${BINMODE} -d ${DOCSDIR}
66 @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
68 @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}"
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}"
77 .include <bsd.port.mk>