summaryrefslogtreecommitdiff
path: root/mail/spamoracle/Makefile
blob: 4ffab371cf259eec0ac907d69e713f4fa37f626a (plain)
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
# 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

BUILD_DEPENDS=	ocaml:${PORTSDIR}/lang/ocaml

MAN1=	spamoracle.1
MAN5=	spamoracle.conf.5

PLIST_FILES=	bin/spamoracle
.ifndef(NOPORTDOCS)
PORTDOCS=	Changes README
.endif

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

post-install:
.ifndef(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>