# Created by: snowchyld
# $FreeBSD: tags/RELEASE_10_0_0/mail/libspf2/Makefile 328226 2013-09-25 00:54:08Z bdrewery $

PORTNAME=	libspf2
PORTVERSION=	1.2.10
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://www.libspf2.org/spf/ \
		LOCAL/sunpoet

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Sender Rewriting Scheme 2 C Implementation

LICENSE=	BSD LGPL21 LGPL3
LICENSE_COMB=	dual

CONFLICTS=	${PORTNAME}-1.0.* p5-Mail-SPF-Query-[0-9]*

GNU_CONFIGURE=	yes
USE_AUTOTOOLS=	libtool
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e '/__VA_ARGS__/ s|format, ||g' ${WRKSRC}/src/include/spf_log.h

.include <bsd.port.mk>
