48138b7a0a
and install docs into DOCSDIR, not DATADIR. PORTREVISION bump for that last change.
44 lines
988 B
Makefile
44 lines
988 B
Makefile
# Created by: Sean Chittenden <seanc@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bmf
|
|
PORTVERSION= 0.9.4
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Fst Bayesian Mail Filter compatible with maildrop and procmail
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
OPTIONS_DEFINE= BDB MYSQL DEBUG
|
|
OPTIONS_DEFAULT= BDB
|
|
|
|
BDB_USE= BDB=40+
|
|
BDB_CONFIGURE_WITH= libdb
|
|
|
|
DEBUG_CONFIGURE_ON= --debug=yes
|
|
|
|
MYSQL_USE= MYSQL=client
|
|
MYSQL_CONFIGURE_WITH= mysql
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
|
CFLAGS+= -I${BDB_INCLUDE_DIR}
|
|
LDFLAGS+= -L${BDB_LIB_DIR}
|
|
CONFIGURE_ENV+= DB_LIBNAME=-l${BDB_LIB_NAME}
|
|
.endif
|
|
|
|
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
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|