2002-09-05 21:40:10 +02:00
|
|
|
# New ports collection makefile for: spamprobe
|
|
|
|
# Whom: Matthew N. Dodd <mdodd@FreeBSD.org>
|
|
|
|
# Date created: 05 September 2002
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2007-01-07 16:06:30 +01:00
|
|
|
# Available options for this port:
|
|
|
|
# WITHOUT_PBL - disable support for PBL database storage
|
|
|
|
# WITHOUT_BDB - disable support for BDB database storage
|
|
|
|
# WITHOUT_UNGIF - disable analysis of image attachments using libungif
|
|
|
|
# WITHOUT_PNG - disable analysis of image attachments using libpng
|
|
|
|
# WITHOUT_JPEG - disable analysis of image attachments using libjpeg
|
|
|
|
#
|
2002-09-05 21:40:10 +02:00
|
|
|
|
|
|
|
PORTNAME= spamprobe
|
2007-01-07 16:06:30 +01:00
|
|
|
PORTVERSION= 1.4d
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2002-09-05 21:40:10 +02:00
|
|
|
CATEGORIES= mail
|
2005-08-31 13:47:31 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2005-06-10 10:03:01 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2002-09-05 21:40:10 +02:00
|
|
|
|
2006-05-07 15:32:13 +02:00
|
|
|
MAINTAINER= stefan@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Spam detector using Bayesian analysis of word counts
|
2002-09-05 21:40:10 +02:00
|
|
|
|
2007-01-23 19:14:36 +01:00
|
|
|
USE_GCC= 3.2+
|
2004-02-19 01:17:19 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-06-10 10:03:01 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2007-01-07 16:06:30 +01:00
|
|
|
CONFIGURE_ARGS= --enable-default-8bit
|
2002-09-05 21:40:10 +02:00
|
|
|
|
2005-06-10 10:03:01 +02:00
|
|
|
MAN1= spamprobe.1
|
2005-03-14 18:36:06 +01:00
|
|
|
PLIST_FILES= bin/spamprobe
|
2005-06-10 10:03:01 +02:00
|
|
|
|
2007-01-07 16:06:30 +01:00
|
|
|
# PBL support
|
|
|
|
.if !defined(WITHOUT_PBL)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/pbl.h:${PORTSDIR}/databases/libpbl
|
|
|
|
CONFIGURE_ARGS+= --with-pbl=${LOCALBASE}
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lpbl
|
|
|
|
.endif
|
2005-06-10 10:03:01 +02:00
|
|
|
|
2007-01-07 16:06:30 +01:00
|
|
|
# BerkleyDB support
|
|
|
|
.if !defined(WITHOUT_BDB)
|
|
|
|
USE_BDB= 3+
|
|
|
|
INVALID_BDB_VER=2
|
|
|
|
CONFIGURE_ARGS+= --enable-cdb
|
|
|
|
CPPFLAGS+= -I${BDB_INCLUDE_DIR} -DUSE_DB=1
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -l${BDB_LIB_NAME}
|
|
|
|
.endif
|
2002-09-05 21:40:10 +02:00
|
|
|
|
2007-01-07 16:06:30 +01:00
|
|
|
# libungif support
|
|
|
|
.if defined(WITHOUT_UNGIF)
|
|
|
|
CONFIGURE_ARGS+= --without-gif
|
|
|
|
.else
|
2006-01-02 23:29:08 +01:00
|
|
|
LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2007-01-07 16:06:30 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# PNG support
|
|
|
|
.if defined(WITHOUT_PNG)
|
|
|
|
CONFIGURE_ARGS+= --without-png
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# JPEG support
|
|
|
|
.if defined(WITHOUT_JPEG)
|
|
|
|
CONFIGURE_ARGS+= --without-jpeg
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-01-02 23:29:08 +01:00
|
|
|
.endif
|
|
|
|
|
2007-01-07 16:06:30 +01:00
|
|
|
.include <bsd.port.mk>
|