# Created by: tobez
# $FreeBSD: branches/RELEASE_8_4_0/graphics/p5-GraphViz/Makefile 310181 2013-01-10 14:00:34Z tobez $

PORTNAME=	GraphViz
PORTVERSION=	2.14
CATEGORIES=	graphics perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-
EXTRACT_SUFX=	.tgz

MAINTAINER=	perl@FreeBSD.org
COMMENT=	GraphViz - Perl interface to the GraphViz graphing tool

BUILD_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz \
    		p5-File-Which>=0:${PORTSDIR}/sysutils/p5-File-Which
RUN_DEPENDS=	p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run \
		p5-Parse-RecDescent>=0:${PORTSDIR}/devel/p5-Parse-RecDescent \
		p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig \
		dot:${PORTSDIR}/graphics/graphviz

PERL_CONFIGURE=	yes

MAN3=		Devel::GraphVizProf.3 \
		GraphViz.3 \
		GraphViz::Data::Grapher.3 \
		GraphViz::No.3 \
		GraphViz::Parse::RecDescent.3 \
		GraphViz::Parse::Yacc.3 \
		GraphViz::Parse::Yapp.3 \
		GraphViz::Regex.3 \
		GraphViz::Small.3 \
		GraphViz::XML.3

.if defined(MAINTAINER_MODE)
regression-test: build
	cd ${WRKSRC} && ${MAKE} test
.endif

.include <bsd.port.mk>
