Update mail/postfix-current to version 3.2.20161008,4
[dports.git] / mail / spamoracle / Makefile
1 # Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       spamoracle
5 PORTVERSION=    1.4
6 PORTREVISION=   1
7 CATEGORIES=     mail
8 MASTER_SITES=   http://cristal.inria.fr/~xleroy/software/
9
10 MAINTAINER=     xride@FreeBSD.org
11 COMMENT=        procmail spam filter written in ML using Bayesian classification
12
13 BUILD_DEPENDS=  ocaml:lang/ocaml
14
15 PLIST_FILES=    bin/spamoracle
16 PLIST_FILES+=   man/man1/spamoracle.1.gz
17 PLIST_FILES+=   man/man5/spamoracle.conf.5.gz
18
19 OPTIONS_DEFINE= DOCS
20
21 .include <bsd.port.options.mk>
22
23 .if ${PORT_OPTIONS:MDOCS}
24 PORTDOCS=       Changes README
25 .endif
26
27 do-configure:
28         @${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
29                 -e 's|^(MANDIR=).*$$|\1${STAGEDIR}${MANPREFIX}/man|' \
30                 -e 's|^(BINDIR=).*$$|\1${STAGEDIR}${PREFIX}/bin|' \
31                 ${WRKSRC}/Makefile
32
33 post-install:
34 .if ${PORT_OPTIONS:MDOCS}
35         @${MKDIR} ${STAGEDIR}${DOCSDIR}
36 .for file in ${PORTDOCS}
37         @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
38 .endfor
39 .endif
40
41 .include <bsd.port.mk>