aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spamoracle/Makefile
blob: c8d663154efcba7f5c9319d4427728ee23b75f29 (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
# New ports collection makefile for:    SpamOracle
# Date created:             Mon Sep 9 18:31:45 UTC 2002
# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

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

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

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

USE_REINPLACE=  yes
USE_SIZE=   yes

post-patch:
    @${REINPLACE_CMD} -E -e 's|^(CPP=)gcc[[:space:]]+-E|\1${CPP}|' \
        ${WRKSRC}/Makefile

do-install:
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>