need dependency on bash for REPLACE_BASH to work properly.
[pkgsrcv2.git] / devel / bugzilla3 / options.mk
1 # $NetBSD: options.mk,v 1.2 2007/09/21 19:32:54 adrianp Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.bugzilla
4
5 PKG_OPTIONS_REQUIRED_GROUPS=    db
6 PKG_OPTIONS_GROUP.db=           mysql pgsql oracle
7
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
15
16 .include "../../mk/bsd.options.mk"
17
18 ###
19 ### Use mysql or postgresql backend
20 ###
21 .if !empty(PKG_OPTIONS:Mmysql)
22 DEPENDS+=       p5-DBD-mysql>=4.000:../../databases/p5-DBD-mysql
23 DBDRIVER=       mysql
24 .elif !empty(PKG_OPTIONS:Mpgsql)
25 DEPENDS+=       p5-DBD-postgresql>=1.45:../../databases/p5-DBD-postgresql
26 DBDRIVER=       pg
27 .elif !empty(PKG_OPTIONS:Moracle)
28 DEPENDS+=       p5-DBD-Oracle>=1.19:../../databases/p5-DBD-Oracle
29 DBDRIVER=       oracle
30 .endif
31
32 ###
33 ### Automatic Update Notifications
34 ###
35 .if !empty(PKG_OPTIONS:Mbugzilla-notify)
36 DEPENDS+=       p5-libwww-[0-9]*:../../www/p5-libwww
37 .endif
38
39 ###
40 ### RADIUS authentication
41 ###
42 .if !empty(PKG_OPTIONS:Mradius)
43 DEPENDS+=       p5-RadiusPerl-[0-9]*:../../net/p5-RadiusPerl
44 .endif
45
46 ###
47 ### More HTML in Product/Group Descriptions
48 ###
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
52 .endif
53
54 ###
55 ### mod_perl
56 ###
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"
67 .  endif
68 . endif
69 .endif
70
71 ###
72 ### XML-RPC Interface
73 ###
74 .if !empty(PKG_OPTIONS:Mbugzilla-xmlrpc)
75 DEPENDS+=       p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
76 .endif
77
78 ###
79 ### Inbound Email
80 ###
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
84 .endif
85
86 ###
87 ### If you want to convert BMP image attachments to PNG to conserve
88 ### disk space.
89 ###
90 .if !empty(PKG_OPTIONS:Mbugzilla-imagemagick)
91 DEPENDS+=       p5-PerlMagick-[0-9]*:../../graphics/p5-PerlMagick
92 .endif
93
94 ###
95 ### Use OpenLDAP for authentication
96 ###
97 .if !empty(PKG_OPTIONS:Mldap)
98 DEPENDS+=       p5-perl-ldap-[0-9]*:../../databases/p5-perl-ldap
99 .endif
100
101 ###
102 ### Generation of graphical reports
103 ###
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
110 .endif
111
112 ###
113 ### Patchviewer support
114 ###
115 .if !empty(PKG_OPTIONS:Mbugzilla-patchviewer)
116 DEPENDS+=       p5-PatchReader>=0.9.4:../../devel/p5-PatchReader
117 DEPENDS+=       patchutils-[0-9]*:../../devel/patchutils
118 .endif
119
120 ###
121 ### Add support for bulk import/export of bugs in XML format
122 ###
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
126 .endif