04d6f52202
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some circumstances such as versions of FreeBSD or platforms). This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using using Mk/bsd.octave.mk which in turn has USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang, c++11-lang, c++0x, c11, or gcc-c++11-lib. PR: 216707
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
# Created by: Matthew N. Dodd <mdodd@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spamprobe
|
|
PORTVERSION= 1.4d
|
|
PORTREVISION= 15
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Spam detector using Bayesian analysis of word counts
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-default-8bit
|
|
USE_GCC= any
|
|
|
|
PLIST_FILES= bin/spamprobe man/man1/spamprobe.1.gz
|
|
|
|
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)
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
# PBL support
|
|
PBL_BUILD_DEPENDS= ${LOCALBASE}/lib/libpbl.a:databases/libpbl
|
|
PBL_RUN_DEPENDS+= ${PBL_BUILD_DEPENDS}
|
|
PBL_CONFIGURE_WITH= pbl
|
|
PBL_LDFLAGS= -lpbl
|
|
|
|
# BerkleyDB support
|
|
BDB_CONFIGURE_ENABLE= cdb
|
|
BDB_CONFIGURE_WITH= db
|
|
BDB_CPPFLAGS= -DUSE_DB=1
|
|
|
|
# giflib support
|
|
GIF_CONFIGURE_WITH= gif
|
|
GIF_LIB_DEPENDS= libgif.so:graphics/giflib
|
|
|
|
# PNG support
|
|
PNG_CONFIGURE_WITH= png
|
|
PNG_LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
# JPEG support
|
|
JPEG_CONFIGURE_WITH=jpeg
|
|
JPEG_USES= jpeg
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBDB}
|
|
USES+= bdb
|
|
CPPFLAGS+= -I${BDB_INCLUDE_DIR}
|
|
LDFLAGS+= -l${BDB_LIB_NAME}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|