aboutsummaryrefslogtreecommitdiff
path: root/mail/spamoracle/Makefile
blob: 585b475be5d36f4445568573f72aff3c8d59a0c6 (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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	spamoracle
PORTVERSION=	1.4
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://cristal.inria.fr/~xleroy/software/

MAINTAINER=	xride@FreeBSD.org
COMMENT=	procmail spam filter written in ML using Bayesian classification

BROKEN=		unfetchable

BUILD_DEPENDS=	ocaml:lang/ocaml

PLIST_FILES=	bin/spamoracle
PLIST_FILES+=	man/man1/spamoracle.1.gz
PLIST_FILES+=	man/man5/spamoracle.conf.5.gz

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
PORTDOCS=	Changes README
.endif

do-configure:
	@${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
		-e 's|^(MANDIR=).*$$|\1${STAGEDIR}${MANPREFIX}/man|' \
		-e 's|^(BINDIR=).*$$|\1${STAGEDIR}${PREFIX}/bin|' \
		${WRKSRC}/Makefile

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>