summaryrefslogtreecommitdiff
path: root/mail/qsf/Makefile
blob: f49106279fb8d10ff993e4e88cfb7a0b90a2f3b1 (plain)
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
# Created by: liamfoy@sepulcrum.org
# $FreeBSD$

PORTNAME=	qsf
PORTVERSION=	1.2.7
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	SF

MAINTAINER=	jack@jarasoft.net
COMMENT=	Small fast spam filter intended to be used with procmail

OPTIONS_DEFINE=	GDBM MYSQL SQLITE2
SQLITE2_DESC=	SQLite2 support

USE_BZIP2=	yes
GNU_CONFIGURE=	yes

MAN1=		qsf.1
PLIST_FILES=	bin/qsf

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGDBM}
LIB_DEPENDS+=	gdbm:${PORTSDIR}/databases/gdbm
.else
CONFIGURE_ARGS+=	--without-gdbm
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=	yes
.else
CONFIGURE_ARGS+=	--without-mysql
.endif

.if ${PORT_OPTIONS:MSQLITE2}
USE_SQLITE=	2
.else
CONFIGURE_ARGS+=	--without-sqlite
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|Linux|@VERSION@|g' ${WRKSRC}/doc/quickref.1.in

.include <bsd.port.mk>