aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spamprobe/Makefile
blob: a626ce518480f5673b57ac49e93c9b7f16ff115e (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
# New ports collection makefile for:    spamprobe
# Whom:                                 Matthew N. Dodd <mdodd@FreeBSD.org>
# Date created:                         05 September 2002
#
# $FreeBSD$
#

PORTNAME=   spamprobe
PORTVERSION=    1.4b
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= stefan@FreeBSD.org
COMMENT=    Spam detector using Bayesian analysis of word counts

USE_BDB=    3+
INVALID_BDB_VER=2

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-default-8bit --enable-cdb
CPPFLAGS=   -I${BDB_INCLUDE_DIR}
LDFLAGS=    -L${LOCALBASE}/lib -l${BDB_LIB_NAME}

MAN1=       spamprobe.1
PLIST_FILES=    bin/spamprobe

OPTIONS=    UNGIF "Enable tokenization of GIF attachments with libungif" off

.include <bsd.port.pre.mk>

.if defined(WITH_UNGIF)
LIB_DEPENDS+=   ungif.5:${PORTSDIR}/graphics/libungif
CPPFLAGS+=  -I${LOCALBASE}/include
.endif

.include <bsd.port.post.mk>