# New ports collection makefile for:	ExtUtils-Constant
# Date created:	   03 February 2005
# Whom:		   Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD: ports/devel/p5-ExtUtils-Constant/Makefile,v 1.1 2005/02/03 15:43:11 skv Exp $
#

PORTNAME=	ExtUtils-Constant
PORTVERSION=	0.16
CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	ExtUtils
PKGNAMEPREFIX=	p5-

MAINTAINER=	skv@FreeBSD.org
COMMENT=	Generate XS code to import C header constants

PERL_CONFIGURE=	yes

MAN3=		ExtUtils::Constant.3 ExtUtils::Constant::Base.3 \
		ExtUtils::Constant::Utils.3 ExtUtils::Constant::XS.3

post-patch:
	@${PERL} -pi -e 's!^(\s+INSTALLDIRS\s+=>\s+).*$$!$$1"site",!' \
		${WRKSRC}/Makefile.PL

.include <bsd.port.mk>
