diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 08:56:11 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-01-13 08:56:11 +0000 |
commit | 231c8808ee33ed3525d5b077cdf8b17688df695e (patch) | |
tree | e892723e26d1718594df83e83aea97dfa3672638 /www/p5-HTML-Template | |
parent | 2b1b14eb594f369a8fd4b7d1844a6975afe46528 (diff) | |
download | ports-231c8808ee33ed3525d5b077cdf8b17688df695e.tar.gz ports-231c8808ee33ed3525d5b077cdf8b17688df695e.zip |
Notes
Diffstat (limited to 'www/p5-HTML-Template')
-rw-r--r-- | www/p5-HTML-Template/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/www/p5-HTML-Template/Makefile b/www/p5-HTML-Template/Makefile index 5509f81fc0d8..67285918597b 100644 --- a/www/p5-HTML-Template/Makefile +++ b/www/p5-HTML-Template/Makefile @@ -14,20 +14,19 @@ PKGNAMEPREFIX= p5- MAINTAINER= kuriyama@FreeBSD.org -.include <bsd.port.pre.mk> - -.if !exists(${PREFIX}/lib/perl5/5.6.1/File/Spec.pm) -BUILD_DEPENDS= ${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec -RUN_DEPENDS= ${PERL_INC}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec -.endif - PERL_CONFIGURE= yes MAN3= HTML::Template.3 MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -PERL_INC= ${PREFIX}/lib/perl5/site_perl/${PERL_VER} post-patch: - ${PERL} -i -pe 's@%%PERL_INC%%@${PERL_INC}@' ${WRKSRC}/Template.pm + ${PERL} -i -pe 's@%%PERL_INC%%@${SITE_PERL}@' ${WRKSRC}/Template.pm -.include <bsd.port.post.mk> +.include <bsd.port.mk> + +# ${PERL} defined after bsd.port.post.mk. So place this after .include line. +USE_FILESPEC!= ${PERL} -MFile::Spec -e 'print $$File::Spec::VERSION<0.82' +.if (${USE_FILESPEC} == 1) +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 |