diff --git a/www/p5-HTML-Template/Makefile b/www/p5-HTML-Template/Makefile index fdc43532a3d8..1e47309a10ae 100644 --- a/www/p5-HTML-Template/Makefile +++ b/www/p5-HTML-Template/Makefile @@ -18,14 +18,15 @@ COMMENT= Perl module to use HTML Templates from CGI scripts PERL_CONFIGURE= yes MAN3= HTML::Template.3 -MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} post-patch: ${PERL} -i -pe 's@%%PERL_INC%%@${SITE_PERL}@' ${WRKSRC}/Template.pm -.include +.include .if ${PERL_LEVEL} < 500600 && !exists(${SITE_PERL}/File/Spec.pm) BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec RUN_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec .endif + +.include