PORTNAME=	Mail-OpenDKIM
PORTVERSION=	4204
CATEGORIES=	mail perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	matthew@FreeBSD.org
COMMENT=	Perl interface to OpenDKIM C library
WWW=		https://metacpan.org/release/Mail-OpenDKIM

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

BUILD_DEPENDS=	opendkim>=2.10.0:mail/opendkim
LIB_DEPENDS=	libopendkim.so:mail/opendkim
RUN_DEPENDS=	opendkim>=2.10.0:mail/opendkim \
		p5-Error>=0:lang/p5-Error

USES=		perl5
USE_PERL5=	configure

PLIST_FILES=	%%SITE_ARCH%%/Mail/OpenDKIM.pm \
		%%SITE_ARCH%%/Mail/OpenDKIM/DKIM.pm \
		%%SITE_ARCH%%/Mail/OpenDKIM/PrivateKey.pm \
		%%SITE_ARCH%%/Mail/OpenDKIM/Signature.pm \
		%%SITE_ARCH%%/Mail/OpenDKIM/Signer.pm \
		%%SITE_ARCH%%/auto/Mail/OpenDKIM/OpenDKIM.so \
		%%PERL5_MAN3%%/Mail::OpenDKIM.3.gz \
		%%PERL5_MAN3%%/Mail::OpenDKIM::DKIM.3.gz \
		%%PERL5_MAN3%%/Mail::OpenDKIM::PrivateKey.3.gz \
		%%PERL5_MAN3%%/Mail::OpenDKIM::Signature.3.gz \
		%%PERL5_MAN3%%/Mail::OpenDKIM::Signer.3.gz

post-install:
	${STRIP_CMD}	${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Mail/OpenDKIM/OpenDKIM.so

.include <bsd.port.mk>