aboutsummaryrefslogblamecommitdiff
path: root/mail/spmfilter-clamav/Makefile
blob: 2fbf7c9b0b73b496decb15cda34368ecdf13d1a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                              

                                
                     
                    
                                               



                                           

                                             
 
                                       

                                                             



                                                       
                          
 
                                   







                                                       



                                                                                        
                      
# Created by: Axel Steiner <ast@treibsand.com>

PORTNAME=	spmfilter-clamav
PORTVERSION=	0.2.3
CATEGORIES=	mail
MASTER_SITES=	http://www.spmfilter.org/files/

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

BUILD_DEPENDS=	spmfilter>=0.6:mail/spmfilter
RUN_DEPENDS=	spmfilter>=0.6:mail/spmfilter

USES=		cmake:noninja pkgconfig
CMAKE_ARGS+=	--no-warn-unused-cli \
		-DCMAKE_INCLUDE_PATH="${LOCALBASE}/include" \
		-DCMAKE_LIBRARY_PATH="${LOCALBASE}/lib"

USE_LDCONFIG=	${PREFIX}/lib/spmfilter

OPTIONS_DEFINE=	DEBUG DOCS

DEBUG_CMAKE_ON=	-DENABLE_DEBUG=TRUE

PORTDOCS=	*

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

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/contrib
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/contrib/virus-notify.txt ${STAGEDIR}${DOCSDIR}/contrib

.include <bsd.port.mk>