aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-IO-Socket-SSL/Makefile
blob: bc7f01fc92e1282f14401f14eed236e9cd31f31f (plain) (blame)
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
46
47
# New ports collection makefile for:    p5-IO-Socket-SSL
# Date created:             October 27th 2000
# Whom:                     Marc G. Fournier <scrappy@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   IO-Socket-SSL
PORTVERSION=    1.39
CATEGORIES= security perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= ../../authors/id/S/SU/SULLR/
PKGNAMEPREFIX=  p5-

MAINTAINER= jadawin@FreeBSD.org
COMMENT=    Perl5 interface to SSL sockets

RUN_DEPENDS=    p5-Net-SSLeay>=1.21:${PORTSDIR}/security/p5-Net-SSLeay
BUILD_DEPENDS=  ${RUN_DEPENDS}

PERL_CONFIGURE= yes
INSTALL_TARGET= pure_install

MAN3=       IO::Socket::SSL.3

OPTIONS=    IDN "International Domain Names (IDN) support" off \
        IPV6 "IPv6 support" off

.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES=   *
post-install:
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/example/* ${EXAMPLESDIR}
.endif

.if defined(WITH_IDN)
RUN_DEPENDS+=   p5-Net-LibIDN>=0:${PORTSDIR}/dns/p5-Net-LibIDN
.endif

.if defined(WITH_IPV6)
RUN_DEPENDS+=   ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
.endif

regression-test:
    @(cd ${WRKSRC} && ${PERL} ${CONFIGURE_SCRIPT} && ${MAKE} test)

.include <bsd.port.mk>