summaryrefslogtreecommitdiffstats
path: root/security/p5-Net-SSLeay/Makefile
blob: 001317a397a0d6fab5e8e9996964e8e9f2d8e1f3 (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
# New ports collection makefile for:	p5-Net-SSLeay
# Date created:				April 17th 2000
# Whom:	      				Andreas Klemm <andreas@klemm.gtn.com>
#
# $FreeBSD$
#

PORTNAME=	Net-SSLeay
PORTVERSION=	1.30
PORTREVISION=	1
CATEGORIES=	security perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Net
PKGNAMEPREFIX=	p5-
DISTNAME=	Net_SSLeay.pm-${PORTVERSION}

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl5 interface to SSL

PERL_CONFIGURE=	yes
CONFIGURE_ARGS=	"${OPENSSLBASE}"
USE_OPENSSL=	yes

MAN3=		Net::SSLeay.3 Net::SSLeay::Handle.3

EXAMPLESDIR=	${PREFIX}/share/examples/p5-Net-SSLeay
SRCDIR=		${WRKSRC}/examples

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${SRCDIR}/*.pl ${EXAMPLESDIR}/
	${INSTALL_DATA} ${SRCDIR}/req.conf ${EXAMPLESDIR}/req.conf
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
EXTRA_PATCHES+=	${PATCHDIR}/extrapatch-SSLeay.xs

post-patch:
	${PERL} -pi -e 's/\$\^V/\$\]/' ${WRKSRC}/Net-SSLeay-Handle-*/Handle.pm
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud