aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Sys-Virt/Makefile
blob: 478d50b70d94870a3e7a7778ade632bae3be486e (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
54
55
56
57
# Created by: Frank Wall <fw@moov.de>
# $FreeBSD$

PORTNAME=	Sys-Virt
PORTVERSION=	1.1.1
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	fw@moov.de
COMMENT=	Perl bindings for libvirt

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-XML-XPath>=0:${PORTSDIR}/textproc/p5-XML-XPath
LIB_DEPENDS=	virt.1001:${PORTSDIR}/devel/libvirt
RUN_DEPENDS=	p5-XML-XPath>=0:${PORTSDIR}/textproc/p5-XML-XPath
TEST_DEPENDS=	p5-CPAN-Changes>=0:${PORTSDIR}/devel/p5-CPAN-Changes \
		p5-Test-Pod>=0:${PORTSDIR}/devel/p5-Test-Pod \
		p5-Test-Pod-Coverage>=0:${PORTSDIR}/devel/p5-Test-Pod-Coverage

USES=		perl5 pkgconfig
USE_PERL5=	configure
MAKE_JOBS_UNSAFE=	yes

MAN3=		Sys::Virt.3 \
		Sys::Virt::Domain.3 \
		Sys::Virt::DomainSnapshot.3 \
		Sys::Virt::Error.3 \
		Sys::Virt::Event.3 \
		Sys::Virt::Interface.3 \
		Sys::Virt::NWFilter.3 \
		Sys::Virt::Network.3 \
		Sys::Virt::NodeDevice.3 \
		Sys::Virt::Secret.3 \
		Sys::Virt::StoragePool.3 \
		Sys::Virt::StorageVol.3 \
		Sys::Virt::Stream.3

PORTEXAMPLES=	*

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

post-patch:
.if ${PORT_OPTIONS:MEXAMPLES}
	@${REINPLACE_CMD} -e '1 s|/usr/bin/perl|${PERL}|' ${WRKSRC}/examples/*.pl
.endif

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/examples/*.pl ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>