summaryrefslogtreecommitdiffstats
path: root/mail/spmfilter-clamav/Makefile
blob: de62faf40ee042057b4852e31d1b0995042e09a0 (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
# Created by: Axel Steiner <ast@treibsand.com>
# $FreeBSD$

PORTNAME=	spmfilter-clamav
PORTVERSION=	0.1.1
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://www.spmfilter.org/attachments/download/59/

MAINTAINER=	ast@treibsand.com
COMMENT=	ClamAV plugin for spmfilter

BUILD_DEPENDS=	spmfilter>=0.4:${PORTSDIR}/mail/spmfilter

RUN_DEPENDS=	spmfilter>=0.4:${PORTSDIR}/mail/spmfilter

USES=		cmake
CMAKE_ARGS+=	-DCMAKE_INCLUDE_PATH="${LOCALBASE}/include" \
		-DCMAKE_LIBRARY_PATH="${LOCALBASE}/lib"

USE_LDCONFIG=	${PREFIX}/lib/spmfilter
USE_PKGCONFIG=	build

OPTIONS=	DEBUG	"Enable Debugging"	off

.include <bsd.port.pre.mk>

.if defined(WITH_DEBUG)
CMAKE_ARGS+=    -DENABLE_DEBUG=TRUE
.endif

MAN1=           ${PORTNAME}.1
MANCOMPRESSED=  yes

PORTDOCS=	*

post-patch:
	@${REINPLACE_CMD} -e 's|share/man|man|' \
		${WRKSRC}/cmake/Modules/SMFMacros.cmake

post-install:
.if !defined(NOPORTDOCS)
	@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}/contrib
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	@${INSTALL_DATA} ${WRKSRC}/contrib/virus-notify.txt ${DOCSDIR}/contrib
.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud