2013-09-20 19:59:12 +00:00
|
|
|
# Created by: Sean Chittenden <seanc@FreeBSD.org>
|
2003-03-24 05:07:52 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bmf
|
|
|
|
PORTVERSION= 0.9.4
|
2014-08-21 22:50:29 +00:00
|
|
|
PORTREVISION= 3
|
2003-03-24 05:07:52 +00:00
|
|
|
CATEGORIES= mail
|
2009-08-22 00:28:34 +00:00
|
|
|
MASTER_SITES= SF
|
2003-03-24 05:07:52 +00:00
|
|
|
|
2006-12-13 16:14:17 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-01-09 23:29:32 +00:00
|
|
|
COMMENT= Fst Bayesian Mail Filter compatible with maildrop and procmail
|
2003-03-24 05:07:52 +00:00
|
|
|
|
2015-12-11 11:09:26 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2014-04-18 02:53:13 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
|
2014-07-16 03:00:46 +00:00
|
|
|
OPTIONS_DEFINE= BDB MYSQL DEBUG DOCS
|
|
|
|
OPTIONS_DEFAULT=BDB
|
2014-04-18 02:53:13 +00:00
|
|
|
|
2015-12-11 11:09:26 +00:00
|
|
|
BDB_USE= BDB=40+
|
2014-04-18 02:53:13 +00:00
|
|
|
BDB_CONFIGURE_WITH= libdb
|
2015-12-11 11:09:26 +00:00
|
|
|
BDB_CFLAGS= -I${BDB_INCLUDE_DIR}
|
|
|
|
BDB_LDFLAGS= -L${BDB_LIB_DIR}
|
|
|
|
BDB_CONFIGURE_ENV= DB_LIBNAME=-l${BDB_LIB_NAME}
|
2014-04-18 02:53:13 +00:00
|
|
|
|
|
|
|
DEBUG_CONFIGURE_ON= --debug=yes
|
|
|
|
|
2015-12-11 11:09:26 +00:00
|
|
|
MYSQL_USE= MYSQL=client
|
2014-04-18 02:53:13 +00:00
|
|
|
MYSQL_CONFIGURE_WITH= mysql
|
2012-08-26 15:06:48 +00:00
|
|
|
|
2014-01-03 01:00:05 +00:00
|
|
|
post-patch:
|
2015-12-11 11:09:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|@@CC|${CC}|;s|@@CXX|${CXX}|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's/: checkroot/: /g' ${WRKSRC}/Makefile.in
|
2003-03-24 05:07:52 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-01-03 01:00:05 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmf
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmfconv
|
2015-12-11 11:09:26 +00:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-04-18 02:53:13 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2003-03-24 05:07:52 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|