2013-09-20 19:59:12 +00:00
|
|
|
# Created by: Matthew N. Dodd <mdodd@FreeBSD.org>
|
2002-09-05 19:40:10 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-12-15 20:51:37 +00:00
|
|
|
PORTNAME= spamprobe
|
2007-01-07 15:06:30 +00:00
|
|
|
PORTVERSION= 1.4d
|
2018-08-14 08:56:57 +00:00
|
|
|
PORTREVISION= 19
|
2013-12-15 20:51:37 +00:00
|
|
|
CATEGORIES= mail
|
2009-09-02 15:01:56 +00:00
|
|
|
MASTER_SITES= SF
|
2002-09-05 19:40:10 +00:00
|
|
|
|
2014-01-04 14:35:01 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Spam detector using Bayesian analysis of word counts
|
2002-09-05 19:40:10 +00:00
|
|
|
|
2004-02-19 00:17:19 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-01-07 15:06:30 +00:00
|
|
|
CONFIGURE_ARGS= --enable-default-8bit
|
2002-09-05 19:40:10 +00:00
|
|
|
|
2013-11-03 16:21:16 +00:00
|
|
|
PLIST_FILES= bin/spamprobe man/man1/spamprobe.1.gz
|
|
|
|
|
2013-12-15 20:51:37 +00:00
|
|
|
OPTIONS_DEFINE= GIF JPEG PNG
|
|
|
|
OPTIONS_MULTI= DATABASE
|
|
|
|
OPTIONS_MULTI_DATABASE= PBL BDB
|
|
|
|
OPTIONS_DEFAULT=PBL GIF JPEG PNG
|
|
|
|
PBL_DESC= PBL database support (author's recommended data store)
|
2013-11-03 16:21:16 +00:00
|
|
|
|
2013-12-15 20:51:37 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2005-06-10 08:03:01 +00:00
|
|
|
|
2007-01-07 15:06:30 +00:00
|
|
|
# PBL support
|
2016-04-01 14:16:16 +00:00
|
|
|
PBL_BUILD_DEPENDS= ${LOCALBASE}/lib/libpbl.a:databases/libpbl
|
2013-12-15 20:51:37 +00:00
|
|
|
PBL_RUN_DEPENDS+= ${PBL_BUILD_DEPENDS}
|
|
|
|
PBL_CONFIGURE_WITH= pbl
|
|
|
|
PBL_LDFLAGS= -lpbl
|
2005-06-10 08:03:01 +00:00
|
|
|
|
2007-01-07 15:06:30 +00:00
|
|
|
# BerkleyDB support
|
2013-12-15 20:51:37 +00:00
|
|
|
BDB_CONFIGURE_ENABLE= cdb
|
|
|
|
BDB_CONFIGURE_WITH= db
|
|
|
|
BDB_CPPFLAGS= -DUSE_DB=1
|
2002-09-05 19:40:10 +00:00
|
|
|
|
2012-02-24 06:58:33 +00:00
|
|
|
# giflib support
|
2013-12-15 20:51:37 +00:00
|
|
|
GIF_CONFIGURE_WITH= gif
|
2016-04-01 14:16:16 +00:00
|
|
|
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
|
2007-01-07 15:06:30 +00:00
|
|
|
|
|
|
|
# PNG support
|
2013-12-15 20:51:37 +00:00
|
|
|
PNG_CONFIGURE_WITH= png
|
2016-04-01 14:16:16 +00:00
|
|
|
PNG_LIB_DEPENDS= libpng.so:graphics/png
|
2007-01-07 15:06:30 +00:00
|
|
|
|
|
|
|
# JPEG support
|
2013-12-15 20:51:37 +00:00
|
|
|
JPEG_CONFIGURE_WITH=jpeg
|
2015-06-22 18:33:20 +00:00
|
|
|
JPEG_USES= jpeg
|
2013-12-15 20:51:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
2016-08-08 13:46:50 +00:00
|
|
|
USES+= bdb
|
2013-12-15 20:51:37 +00:00
|
|
|
CPPFLAGS+= -I${BDB_INCLUDE_DIR}
|
|
|
|
LDFLAGS+= -l${BDB_LIB_NAME}
|
2006-01-02 22:29:08 +00:00
|
|
|
.endif
|
|
|
|
|
2013-12-15 20:51:37 +00:00
|
|
|
.include <bsd.port.mk>
|