PORTNAME=	Crypt-OpenSSL-CA
PORTVERSION=	0.91
CATEGORIES=	security perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl extension for OpenSSL CA API
WWW=		https://metacpan.org/release/Crypt-OpenSSL-CA

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

# Note: Devel::Mallinfo is skipped because mallinfo() is a GNU libc function
BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-Convert-ASN1>=0.20:converters/p5-Convert-ASN1 \
		p5-Devel-Leak>=0:devel/p5-Devel-Leak \
		p5-File-Slurp>=0:devel/p5-File-Slurp \
		p5-File-Which>=0:sysutils/p5-File-Which \
		p5-IPC-Run>=0:devel/p5-IPC-Run \
		p5-Inline-C>=0:devel/p5-Inline-C \
		p5-Inline>=0.40:devel/p5-Inline \
		p5-Net-SSLeay>=1.25:security/p5-Net-SSLeay
TEST_DEPENDS=	p5-Test-Taint>=0:devel/p5-Test-Taint \
		p5-Test-Simple>=1.302200:devel/p5-Test-Simple

USES=		perl5 ssl
USE_PERL5=	modbuild

CONFIGURE_ARGS=	--openssl-cflags=-L${OPENSSLINC} \
		--openssl-ldflags="-I${OPENSSLLIB} ${OPENSSL_LDFLAGS}"

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Crypt/OpenSSL/CA/*/*.so

.include <bsd.port.mk>
