# New ports collection makefile for:	p5-Convert-Recode
# Date created:				17 January 2000
# Whom:					Dmitry Sivachenko <dima@Chg.RU>
#
# $FreeBSD$
#

PORTNAME=	Convert-Recode
PORTVERSION=	1.03
CATEGORIES=	converters perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Convert
PKGNAMEPREFIX=	p5-

MAINTAINER=	demon@FreeBSD.org

RUN_DEPENDS=	recode:${PORTSDIR}/converters/recode

USE_PERL5=	YES

MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=		Convert::Recode.3

post-patch:
		${PERL} -pi -e 's#recode -\$$#${LOCALBASE}/bin/recode -\$$#' \
		${WRKSRC}/Recode.pm

do-configure:
		@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL

.include <bsd.port.mk>
