1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/mail/bmf/Makefile
2021-04-06 16:31:07 +02:00

47 lines
1.1 KiB
Makefile

# Created by: Sean Chittenden <seanc@FreeBSD.org>
PORTNAME= bmf
PORTVERSION= 0.9.4
PORTEPOCH= 1
CATEGORIES= mail
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast Bayesian Mail Filter compatible with maildrop and procmail
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
HAS_CONFIGURE= yes
BINARY_ALIAS= gcc=${CC} g++=${CXX}
CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
OPTIONS_DEFINE= BDB DEBUG DOCS MANPAGES MYSQL
OPTIONS_DEFAULT=BDB MANPAGES
OPTIONS_SUB= yes
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_CONFIGURE_WITH= mysql
MYSQL_CFLAGS= -I${LOCALBASE}/include/mysql
MYSQL_LDFLAGS= -L${LOCALBASE}/lib/mysql
MYSQL_USES= mysql
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} bmf bmfconv ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
do-install-MANPAGES-on:
cd ${WRKSRC} && ${INSTALL_MAN} bmf.1 bmfconv.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>