aboutsummaryrefslogtreecommitdiff
path: root/www/p5-CGI.pm
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-02-09 05:13:10 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-02-09 05:13:10 +0000
commitfb027e6ad322b7f543bb892c579a516ed9beffce (patch)
tree12f48290d38b63c1651571d19e32c9bea8831b6e /www/p5-CGI.pm
parent09e82cb728a7a06fb7469a6ed15b2a01c4903f30 (diff)
downloadports-fb027e6ad322b7f543bb892c579a516ed9beffce.tar.gz
ports-fb027e6ad322b7f543bb892c579a516ed9beffce.zip
Notes
Diffstat (limited to 'www/p5-CGI.pm')
-rw-r--r--www/p5-CGI.pm/Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/www/p5-CGI.pm/Makefile b/www/p5-CGI.pm/Makefile
index 76c6d2906010..6a011a83fcbd 100644
--- a/www/p5-CGI.pm/Makefile
+++ b/www/p5-CGI.pm/Makefile
@@ -15,16 +15,22 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
PERL_CONFIGURE= yes
-MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 CGI::Fast.3 \
- CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 CGI::Util.3
+MAN3= CGI.3 CGI::Apache.3 CGI::Carp.3 CGI::Cookie.3 \
+ CGI::Fast.3 CGI::Pretty.3 CGI::Push.3 CGI::Switch.3 \
+ CGI::Util.3
+
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
pre-patch:
@${PERL} -pi -e '$$_ = "" if /INSTALLDIRS|5\.6\.0/' ${WRKSRC}/Makefile.PL
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500601
+BUILD_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif
+
+.include <bsd.port.post.mk>