aboutsummaryrefslogtreecommitdiffstats
path: root/net/p5-ZeroMQ/Makefile
blob: f0309421ccf6762bbb3610aa2afc2d1be9a694c6 (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
# Created by: Andrej Zverev <az@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ZeroMQ
PORTVERSION=    0.21
PORTREVISION=   1
CATEGORIES= net perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:DMAKI
PKGNAMEPREFIX=  p5-

MAINTAINER= az@FreeBSD.org
COMMENT=    ZeroMQ2 wrapper for Perl

LICENSE=    ART10 GPLv1
LICENSE_COMB=   dual

RUN_DEPENDS=    p5-Task-Weaken>=0:${PORTSDIR}/devel/p5-Task-Weaken
BUILD_DEPENDS=  p5-Task-Weaken>=0:${PORTSDIR}/devel/p5-Task-Weaken
LIB_DEPENDS=    zmq.1:${PORTSDIR}/devel/zmq \
        uuid:${PORTSDIR}/misc/e2fsprogs-libuuid

TEST_DEPENDS=   p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal \
        p5-Test-Requires>=0.05:${PORTSDIR}/devel/p5-Test-Requires \
        p5-Test-TCP>=1.08:${PORTSDIR}/devel/p5-Test-TCP \
        p5-AnyEvent>=0:${PORTSDIR}/devel/p5-AnyEvent \
        p5-JSON>=2.00:${PORTSDIR}/converters/p5-JSON

USES=       pkgconfig
MAKE_JOBS_UNSAFE=   yes

USES=       perl5
USE_PERL5=  configure

MAN3=   \
    ZeroMQ::Raw.3 \
    ZeroMQ::Socket.3 \
    ZeroMQ::Context.3 \
    ZeroMQ.3 \
    ZeroMQ::Constants.3 \
    ZeroMQ::Poller.3 \
    ZeroMQ::Message.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+=  p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple
.endif

post-patch:
    @${REINPLACE_CMD} -i '' -e "s/lib => 'zmq',//" ${WRKSRC}/Makefile.PL

.include <bsd.port.post.mk>