# New ports collection makefile for:    p5-SQL-Statement
# Date created:				August 8th, 1999
# Whom:	      				wolman@cs.washington.edu
#
# $FreeBSD: ports/databases/p5-SQL-Statement/Makefile,v 1.17 2004/07/03 21:34:56 lth Exp $
#

PORTNAME=	SQL-Statement
PORTVERSION=	1.09
PORTREVISION=	1
CATEGORIES=	databases perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	SQL
PKGNAMEPREFIX=	p5-

MAINTAINER=	lth@FreeBSD.org
COMMENT=	A perl5 module for SQL parsing and processing

PERL_CONFIGURE=	yes

MAN3=		SQL::Dialects::ANSI.3 SQL::Dialects::AnyData.3 \
		SQL::Dialects::CSV.3 SQL::Eval.3 SQL::Parser.3 SQL::Statement.3

.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} <= 500503

# make PREFIX-clean under perl 5.005_03
# remove DOS line-endings that confuses poor old pod2man
post-configure:
	${PERL} -pi -e 's,/usr/local/,\$$(PREFIX)/,g' ${WRKSRC}/Makefile
	${PERL} -pi -e 's,\r\n,\n,' `${FIND} ${WRKSRC} -type f`
	${PERL} -pi -e 's,^use warnings;,,' ${WRKSRC}/lib/SQL/Parser.pm

.endif
.include <bsd.port.post.mk>
