1 # $NetBSD: options.mk,v 1.2 2007/09/21 19:32:54 adrianp Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.bugzilla
5 PKG_OPTIONS_REQUIRED_GROUPS= db
6 PKG_OPTIONS_GROUP.db= mysql pgsql oracle
8 PKG_SUPPORTED_OPTIONS= bugzilla-notify bugzilla-graphicalreports
9 PKG_SUPPORTED_OPTIONS+= bugzilla-inboundemail bugzilla-movebugs
10 PKG_SUPPORTED_OPTIONS+= bugzilla-imagemagick bugzilla-patchviewer
11 PKG_SUPPORTED_OPTIONS+= bugzilla-descriptions bugzilla-xmlrpc
12 PKG_SUPPORTED_OPTIONS+= bugzilla-modperl radius
13 PKG_SUPPORTED_OPTIONS+= mysql pgsql oracle ldap
14 PKG_SUGGESTED_OPTIONS= mysql
16 .include "../../mk/bsd.options.mk"
19 ### Use mysql or postgresql backend
21 .if !empty(PKG_OPTIONS:Mmysql)
22 DEPENDS+= p5-DBD-mysql>=4.000:../../databases/p5-DBD-mysql
24 .elif !empty(PKG_OPTIONS:Mpgsql)
25 DEPENDS+= p5-DBD-postgresql>=1.45:../../databases/p5-DBD-postgresql
27 .elif !empty(PKG_OPTIONS:Moracle)
28 DEPENDS+= p5-DBD-Oracle>=1.19:../../databases/p5-DBD-Oracle
33 ### Automatic Update Notifications
35 .if !empty(PKG_OPTIONS:Mbugzilla-notify)
36 DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
40 ### RADIUS authentication
42 .if !empty(PKG_OPTIONS:Mradius)
43 DEPENDS+= p5-RadiusPerl-[0-9]*:../../net/p5-RadiusPerl
47 ### More HTML in Product/Group Descriptions
49 .if !empty(PKG_OPTIONS:Mbugzilla-descriptions)
50 DEPENDS+= p5-HTML-Scrubber-[0-9]*:../../www/p5-HTML-Scrubber
51 DEPENDS+= p5-HTML-Parser>=3.40:../../www/p5-HTML-Parser
57 .if !empty(PKG_OPTIONS:Mbugzilla-modperl)
58 DEPENDS+= p5-CGI>=3.11:../../www/p5-CGI
59 DEPENDS+= p5-Apache-DBI>=0.96:../../databases/p5-Apache-DBI
60 . if defined(PKG_APACHE)
61 . if !empty(PKG_APACHE:Mapache2)
62 . include "../../www/ap2-perl/buildlink3.mk"
63 . elif !empty(PKG_APACHE:Mapache22)
64 . include "../../www/ap2-perl/buildlink3.mk"
65 . elif !empty(PKG_APACHE:Mapache13)
66 . include "../../www/ap-perl/buildlink3.mk"
74 .if !empty(PKG_OPTIONS:Mbugzilla-xmlrpc)
75 DEPENDS+= p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
81 .if !empty(PKG_OPTIONS:Mbugzilla-inboundemail)
82 DEPENDS+= p5-Email-MIME-Attachment-Stripper-[0-9]*:../../mail/p5-Email-MIME-Attachment-Stripper
83 DEPENDS+= p5-Email-Reply-[0-9]*:../../mail/p5-Email-Reply
87 ### If you want to convert BMP image attachments to PNG to conserve
90 .if !empty(PKG_OPTIONS:Mbugzilla-imagemagick)
91 DEPENDS+= p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick
95 ### Use OpenLDAP for authentication
97 .if !empty(PKG_OPTIONS:Mldap)
98 DEPENDS+= p5-perl-ldap-[0-9]*:../../databases/p5-perl-ldap
102 ### Generation of graphical reports
104 .if !empty(PKG_OPTIONS:Mbugzilla-graphicalreports)
105 DEPENDS+= gd>=1.20:../../graphics/gd
106 DEPENDS+= p5-Chart>=1.0:../../graphics/p5-Chart
107 DEPENDS+= p5-GDTextUtil-[0-9]*:../../graphics/p5-GDTextUtil
108 DEPENDS+= p5-GDGraph-[0-9]*:../../graphics/p5-GDGraph
109 DEPENDS+= p5-Template-GD-[0-9]*:../../graphics/p5-Template-GD
113 ### Patchviewer support
115 .if !empty(PKG_OPTIONS:Mbugzilla-patchviewer)
116 DEPENDS+= p5-PatchReader>=0.9.4:../../devel/p5-PatchReader
117 DEPENDS+= patchutils-[0-9]*:../../devel/patchutils
121 ### Add support for bulk import/export of bugs in XML format
123 .if !empty(PKG_OPTIONS:Mbugzilla-movebugs)
124 DEPENDS+= p5-XML-Twig-[0-9]*:../../textproc/p5-XML-Twig
125 DEPENDS+= p5-MIME-tools>=5.406:../../mail/p5-MIME-tools