mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-10 02:45:11 +00:00
61222db752
In the process, this also fixes BDB support, and actually enables MYSQL support, which as far as I can tell was never actually enabled in the 9 years this port has been in the tree.
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
# New ports collection makefile for: bmf
|
|
# Date created: 15 March 2003
|
|
# Whom: Sean Chittenden <seanc@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bmf
|
|
PORTVERSION= 0.9.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A fast Bayesian Mail Filter compatible with maildrop and procmail
|
|
|
|
OPTIONS_DEFINE= BDB MYSQL DEBUG
|
|
OPTIONS_DEFAULT= BDB
|
|
BDB_DESC= Berkeley DB support (may specify w/ WITH_BDB_VER)
|
|
MYSQL_DESC= Adds MySQL Support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
|
USE_BDB= 40+
|
|
CFLAGS+= -I${BDB_INCLUDE_DIR}
|
|
LDFLAGS+= -L${BDB_LIB_DIR}
|
|
CONFIGURE_ARGS+=--with-libdb=yes
|
|
CONFIGURE_ENV+= DB_LIBNAME=-l${BDB_LIB_NAME}
|
|
.else
|
|
CONFIGURE_ARGS+=--with-libdb=no
|
|
.endif
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_MYSQL= client
|
|
CONFIGURE_ARGS+=--with-mysql
|
|
.endif
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --without-package
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CONFIGURE_ARGS+= --debug=yes
|
|
.endif
|
|
|
|
MAN1= bmf.1 bmfconv.1
|
|
|
|
post-install:
|
|
@ ${MKDIR} ${PREFIX}/share/bmf
|
|
@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/bmf
|
|
@ ${CAT} ${PKGDIR}/pkg-message
|
|
|
|
.include <bsd.port.mk>
|