aboutsummaryrefslogtreecommitdiffstats
path: root/mail/bmf/Makefile
blob: ef0471594da3dbdf9ce013b483cda591e18da4bd (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
44
# Created by: Sean Chittenden <seanc@FreeBSD.org>
# $FreeBSD$

PORTNAME=   bmf
PORTVERSION=    0.9.4
PORTREVISION=   3
CATEGORIES= mail
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    Fst Bayesian Mail Filter compatible with maildrop and procmail

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/LICENSE

HAS_CONFIGURE=  yes

OPTIONS_DEFINE= BDB MYSQL DEBUG DOCS
OPTIONS_DEFAULT=BDB

BDB_USES=       bdb
BDB_CONFIGURE_WITH= libdb
BDB_CFLAGS=     -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS=        -L${BDB_LIB_DIR}
BDB_CONFIGURE_ENV=  DB_LIBNAME=-l${BDB_LIB_NAME}

DEBUG_CONFIGURE_ON= --debug=yes

MYSQL_USE=      MYSQL=client
MYSQL_CONFIGURE_WITH=   mysql

post-patch:
    @${REINPLACE_CMD} -e 's|@@CC|${CC}|;s|@@CXX|${CXX}|' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's/: checkroot/: /g' ${WRKSRC}/Makefile.in

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmf
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmfconv

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>