# ex:ts=8
# Ports collection makefile for:	re_graph
# Date created:			Apr 22, 2005
# Whom:				ijliao
#
# $FreeBSD: branches/RELEASE_8_4_0/textproc/re_graph/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	re_graph
PORTVERSION=	0.2
PORTREVISION=	3
CATEGORIES=	textproc
MASTER_SITES=	http://www.oualline.com/sw/re/
DISTNAME=	${PORTNAME:S/_/-/}_${PORTVERSION:S/.//}
EXTRACT_SUFX=	.tar

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Regular Expression Graphing Program

RUN_DEPENDS=	p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
		p5-GD-Arrow>=0:${PORTSDIR}/graphics/p5-GD-Arrow

NO_WRKSUBDIR=	yes
EXTRACT_CMD=	${TAR}
EXTRACT_BEFORE_ARGS=	-xf
EXTRACT_AFTER_ARGS=	# empty
NO_BUILD=	yes
USE_PERL5_RUN=	yes

PLIST_FILES=	bin/re_graph

.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/re_graph.pl ${PREFIX}/bin/re_graph
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/re_graph.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/tut* ${DOCSDIR}
.endif

.include <bsd.port.mk>
