aboutsummaryrefslogtreecommitdiff
path: root/mail/bmf/Makefile
blob: 61b4014b13ea644cbb44ff0901886213496e1c9b (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	seanc@FreeBSD.org
COMMENT=	A fast Bayesian Mail Filter compatible with maildrop and procmail

.if defined(WITH_BDB41)
LIB_DEPENDS=	db41.1:${PORTSDIR}/databases/db41
CONFIGURE_ENV+=	LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ENV+=	DB_LIBNAME=-ldb41
.elif defined(WITH_BDB4)
LIB_DEPENDS=	db4.0:${PORTSDIR}/databases/db4
CONFIGURE_ENV+=	LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ENV+=	DB_LIBNAME=-ldb4
.elfif defined(WITH_BDB3)
LIB_DEPENDS=	db3.3:${PORTSDIR}/databases/db3
CONFIGURE_ENV+=	LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ENV+=	DB_LIBNAME=-ldb3
.endif

HAS_CONFIGURE=	yes
CONFIGURE_ARGS+=	--without-package

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--debug=yes
.endif

MAN1= bmf.1 bmfconv.1

pre-everything::
	@${ECHO} ""
	@${ECHO} "${PORTNAME} has several tunables available:"
	@${ECHO} ""
	@${ECHO} "	WITH_BDB4		Builds with BDB4 support"
	@${ECHO} "	WITH_BDB41		Builds with BDB4.1 support"
	@${ECHO} "	WITH_DEBUG		Builds with debugging arguments"
	@${ECHO} "	WITH_MYSQL		Builds with MySQL support"
	@${ECHO} ""
	@${ECHO} "	Note: the default database is BDB3"
	@${ECHO} ""

post-install:
	@ ${MKDIR} ${PREFIX}/share/bmf
	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/bmf
	@ ${CAT} ${PKGDIR}/pkg-message

.include <bsd.port.mk>