1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/devel/p5-Config-Auto/Makefile
Erwin Lansing d07fe76de9 - Update to 0.06
- Fix problem with duplicate post-patch target

PR:		63291
Submitted by:	maintainer
Pointy hat to:	erwin
2004-02-23 23:05:41 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: p5-Config-Auto
# Date created: August 29 2003
# Whom: Lars Thegler <lars@thegler.dk>
#
# $FreeBSD$
PORTNAME= Config-Auto
PORTVERSION= 0.06
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Config
PKGNAMEPREFIX= p5-
MAINTAINER= lars@thegler.dk
COMMENT= Magical config file parser
BUILD_DEPENDS= ${SITE_PERL}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles
RUN_DEPENDS= ${BUILD_DEPENDS}
OPTIONS= XMLSIMPLE "Support for XML config files" off
.include <bsd.port.pre.mk>
.ifdef(WITH_XMLSIMPLE)
BUILD_DEPENDS+= ${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple
RUN_DEPENDS+= ${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple
.endif
PERL_CONFIGURE= yes
MAN3= Config::Auto.3
.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
post-patch:
@${PERL} -pi -e 's/^our (\$$\w+)/use vars qw($$1); $$1/;' \
-e '$$_ = "" if (/5.006/);' \
-e '$$_ = "" if (/use warnings/);' \
${WRKSRC}/lib/Config/Auto.pm
.endif
.if ${PERL_LEVEL} <= 500503
# make PREFIX-clean under perl 5.005_03
post-configure:
@${PERL} -pi -e 's,/usr/local/,\$${PREFIX}/,g' ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>