summaryrefslogtreecommitdiff
path: root/textproc/p5-XML-Reader/Makefile
blob: 68393bf315c40df09398fe7ef0e51175577c1ca3 (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
# Created by: Wen Heping <wen@FreeBSD.org>
# $FreeBSD$

PORTNAME=	XML-Reader
PORTVERSION=	0.49
CATEGORIES=	textproc perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Reading XML and providing path information based on a pull-parser

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

TEST_DEPENDS=	p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser

OPTIONS_DEFINE=	PP
PP_DESC=	Use XML::Parsepp (Perl 5.14+ required)

USES=		perl5
USE_PERL5=	configure

MAN3=		XML::Reader.3 \
		XML::Reader_de.3 \
		XML::Reader_fr.3 \
		XML::Reader::Testcases.3

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPP}
BUILD_DEPENDS+=	p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
RUN_DEPENDS+=	p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
.else
BUILD_DEPENDS+=	p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
RUN_DEPENDS+=	p5-XML-Parser>=1:${PORTSDIR}/textproc/p5-XML-Parser
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} >= 501400
TEST_DEPENDS+=	p5-XML-Parsepp>=0.04:${PORTSDIR}/textproc/p5-XML-Parsepp
.endif

.include <bsd.port.post.mk>