aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-IO-Event/Makefile
blob: 27656cda9d9d34d7b5e7b9bd05a036b1bc8b59d9 (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
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=   IO-Event
PORTVERSION=    0.813
CATEGORIES= devel perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Tied Filehandles for Nonblocking IO with Object Callbacks

LICENSE=    ART10 GPLv1
LICENSE_COMB=   dual

BUILD_DEPENDS=  p5-List-MoreUtils>=0:${PORTSDIR}/lang/p5-List-MoreUtils
RUN_DEPENDS:=   ${BUILD_DEPENDS}
TEST_DEPENDS=   p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent

OPTIONS_DEFINE= ANYEVENT EVENT
OPTIONS_DEFAULT=ANYEVENT EVENT
EVENT_DESC= Use Event as underlying event handler
ANYEVENT_DESC=  Use AnyEvent as underlying event handler

USE_PERL5=  configure
USES=       perl5

MAN3=       IO::Event.3 \
        IO::Event::Callback.3

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MANYEVENT}
BUILD_DEPENDS+= p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
RUN_DEPENDS+=   p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent
.endif

.if ${PORT_OPTIONS:MEVENT}
BUILD_DEPENDS+= p5-Event>=0:${PORTSDIR}/devel/p5-Event
RUN_DEPENDS+=   p5-Event>=0:${PORTSDIR}/devel/p5-Event
.endif

.include <bsd.port.mk>