Index: Makefile =================================================================== RCS file: /home/ncvs/ports/databases/p5-SQL-Translator/Makefile,v retrieving revision 1.26 diff -u -r1.26 Makefile --- Makefile 13 Dec 2010 08:34:30 -0000 1.26 +++ Makefile 20 May 2011 01:40:28 -0000 @@ -7,6 +7,7 @@ PORTNAME= SQL-Translator PORTVERSION= 0.11007 +PORTREVISION= 1 CATEGORIES= databases perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -24,15 +25,16 @@ p5-Class-Accessor>=0:${PORTSDIR}/devel/p5-Class-Accessor \ p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \ p5-Template-Toolkit>=2.20:${PORTSDIR}/www/p5-Template-Toolkit \ - p5-GD>=0:${PORTSDIR}/graphics/p5-GD \ - p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz \ - p5-Graph>=0:${PORTSDIR}/math/p5-Graph \ p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \ p5-Spreadsheet-ParseExcel>=0.41:${PORTSDIR}/textproc/p5-Spreadsheet-ParseExcel \ + p5-Text-ParseWords>0:${PORTSDIR}/textproc/p5-Text-ParseWords \ p5-Text-RecordParser>=0.02:${PORTSDIR}/textproc/p5-Text-RecordParser \ - p5-XML-Writer>=0.500:${PORTSDIR}/textproc/p5-XML-Writer + p5-XML-Writer>=0.500:${PORTSDIR}/textproc/p5-XML-Writer \ + p5-XML-LibXML>=1.69:${PORTSDIR}/textproc/p5-XML-LibXML RUN_DEPENDS= ${BUILD_DEPENDS} +OPTIONS= DIAGRAM "Diagram generation support" Off + PERL_CONFIGURE= yes MAN1= sqlt-diagram.1 \ @@ -114,4 +116,10 @@ BUILD_DEPENDS+= p5-Scalar-List-Utils>=0:${PORTSDIR}/lang/p5-Scalar-List-Utils .endif +.if defined(WITH_DIAGRAM) +BUILD_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \ + p5-Graph>=0:${PORTSDIR}/math/p5-Graph \ + p5-GraphViz>=0:${PORTSDIR}/graphics/p5-GraphViz +.endif + .include