aboutsummaryrefslogtreecommitdiff
path: root/net/p5-POE-Component-ControlPort/Makefile
blob: 49af4117b5a2cc11fc7fcce478841a802205bc84 (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
48
49
50
51
52
53
# New ports collection makefile for:	net/p5-POE-Component-ControlPort
# Date created:				05 February 2006
# Whom:					Zach Thompson <hideo@lastamericanempire.com>
#
# $FreeBSD$
#

PORTNAME=	POE-Component-ControlPort
PORTVERSION=	0.01
CATEGORIES=	net perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	POE
PKGNAMEPREFIX=	p5-

MAINTAINER=	hideo@lastamericanempire.com
COMMENT=	Network control port for POE applications

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
		${SITE_PERL}/${PERL_ARCH}/Authen/Libwrap.pm:${PORTSDIR}/security/p5-Authen-Libwrap \
		${SITE_PERL}/POE.pm:${PORTSDIR}/devel/p5-POE
BUILD_DEPENDS=	${RUN_DEPENDS}
BUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple

PERL_CONFIGURE=	yes

MAN3=	POE::Component::ControlPort.3 \
	POE::Component::ControlPort::Command.3 \
	POE::Component::ControlPort::DefaultCommands.3

.include <bsd.port.pre.mk>

post-extract:
	@${PERL} -pi -e 's/my \$$ret =.*/my \$$ret = 0;/' ${WRKSRC}/Makefile.PL

.if ${PERL_LEVEL} < 500600
RUN_DEPENDS+=	${SITE_PERL}/XSLoader.pm:${PORTSDIR}/devel/p5-XSLoader \
		${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools

post-patch:
	@${PERL} -pi -e 's/^our (\W\w+);/use vars q($$1);/o;' \
		-e 's/^our\s+(\W\w+)(?!;)/use vars q($$1); $$1/o;' \
		-e 'undef $$_ if /^\s*(no|use) warnings/o;' \
		${WRKSRC}/VERSION \
		${WRKSRC}/t/*.t \
		${WRKSRC}/lib/POE/Component/ControlPort.pm \
		${WRKSRC}/lib/POE/Component/ControlPort/DefaultCommands.pm \
		${WRKSRC}/lib/POE/Component/ControlPort/Command.pm

post-configure:
	${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile
.endif

.include <bsd.port.post.mk>