# New ports collection makefile for:	p5-GD-TextUtil
# Date created:				21 February 2000
# Whom:	      				Dmitry Sivachenko <dima@Chg.RU>
#
# $FreeBSD: ports/graphics/p5-GD-TextUtil/Makefile,v 1.7 2002/04/30 19:48:25 demon Exp $
#

PORTNAME=	GD-TextUtil
PORTVERSION=	0.82
CATEGORIES=	graphics perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	GD
PKGNAMEPREFIX=	p5-
DISTNAME=	GDTextUtil-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

RUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD

PERL_CONFIGURE=	YES

MANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=		GD::Text.3 GD::Text::Wrap.3 GD::Text::Align.3

post-patch:
# Silence 'strict subs'
	${PERL} -pi -e 's/Cwd::cwd/Cwd::cwd()/'	${WRKSRC}/Text.pm

.include <bsd.port.mk>
