From fbe998596cf66f6a6da45a8cfdc90df548efb317 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Tue, 23 Nov 2004 10:26:43 +0000 Subject: Add Template::Plugin::*'s optional dependencies PR: 73922 Submitted by: ports@c0decafe.net Approved by: with perl's hat on --- www/p5-Template-Toolkit/Makefile | 66 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/www/p5-Template-Toolkit/Makefile b/www/p5-Template-Toolkit/Makefile index c4ebd1cc6402..a143011f3c33 100644 --- a/www/p5-Template-Toolkit/Makefile +++ b/www/p5-Template-Toolkit/Makefile @@ -18,6 +18,21 @@ COMMENT= Extensive Toolkit for template processing BUILD_DEPENDS= ${SITE_PERL}/AppConfig.pm:${PORTSDIR}/devel/p5-AppConfig RUN_DEPENDS= ${BUILD_DEPENDS} +OPTIONS=TEXT_AUTOFORMAT "With Text::Autoformat Plugin" off \ + GD "With GD Plugin (needs perl5.6)" off \ + GD_TEXT "With GD::Text Plugin (needs GD)" off \ + GD_GRAPH "With GD::Graph Plugin (needs GD)" off \ + GD_GRAPH3D "With GD::Graph3d Plugin (needs GD)" off \ + IMAGE_INFO "With Image::Info Plugin" off \ + IMAGE_SIZE "With Image::Size Plugin" off \ + DATE_CALC "With Date::Calc Plugin" off \ + POD_POM "With Pod::POM Plugin" off \ + TIE_DBI "With Tie::DBI Plugin" off \ + XML_DOM "With XML::DOM Plugin" off \ + XML_RSS "With XML::RSS Plugin (needs perl5.6)" off \ + XML_XPATH "With XML::XPath Plugin" off \ + DBI "With DBI Plugin" off + PERL_CONFIGURE= yes MASTER_SITE_BACKUP+= http://www.template-toolkit.org/download/ @@ -31,6 +46,57 @@ BUILD_DEPENDS+= ${SITE_PERL}/File/Spec/Functions.pm:${PORTSDIR}/devel/p5-File-Sp .endif .endif +.if defined(WITH_TEXT_AUTOFORMAT) +BUILD_DEPENDS+=${SITE_PERL}/Text/Autoformat.pm:${PORTSDIR}/textproc/p5-Text-Autoformat +.endif +.if defined(WITH_IMAGE_INFO) +BUILD_DEPENDS+=${SITE_PERL}/Image/Info.pm:${PORTSDIR}/graphics/p5-Image-Info +.endif +.if defined(WITH_IMAGE_SIZE) +BUILD_DEPENDS+=${SITE_PERL}/Image/Size.pm:${PORTSDIR}/graphics/p5-Image-Size +.endif +.if defined(WITH_DATE_CALC) +BUILD_DEPENDS+=${SITE_PERL}/${PERL_ARCH}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc +.endif +.if defined(WITH_POD_POM) +BUILD_DEPENDS+=${SITE_PERL}/Pod/POM.pm:${PORTSDIR}/textproc/p5-Pod-POM +.endif +.if defined(WITH_TIE_DBI) +BUILD_DEPENDS+=${SITE_PERL}/Tie/DBI.pm:${PORTSDIR}/databases/p5-Tie-DBI +.endif +.if defined(WITH_XML_DOM) +BUILD_DEPENDS+=${SITE_PERL}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM +.endif +.if defined(WITH_XML_XPATH) +BUILD_DEPENDS+=${SITE_PERL}/XML/XPath.pm:${PORTSDIR}/textproc/p5-XML-XPath +.endif + +.if defined(WITH_DBI) +.if ${PERL_LEVEL} > 500600 +BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI +.else +BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137 +.endif +.endif + +.if ${PERL_LEVEL} > 500600 +.if defined(WITH_GD) +BUILD_DEPENDS+=${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD +.endif +.if defined(WITH_GD_TEXT) +BUILD_DEPENDS+=${SITE_PERL}/GD/Text.pm:${PORTSDIR}/graphics/p5-GD-TextUtil +.endif +.if defined(WITH_GD_GRAPH) +BUILD_DEPENDS+=${SITE_PERL}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph +.endif +.if defined(WITH_GD_GRAPH3D) +BUILD_DEPENDS+=${SITE_PERL}/GD/Graph3d.pm:${PORTSDIR}/graphics/p5-GD-Graph3d +.endif +.if defined(WITH_XML_RSS) +BUILD_DEPENDS+=${SITE_PERL}/XML/RSS.pm:${PORTSDIR}/textproc/p5-XML-RSS +.endif +.endif + .if defined(BATCH) CONFIGURE_ENV= | .endif -- cgit v1.2.3