summaryrefslogtreecommitdiff
path: root/www/p5-HTML-Mason/options.mk
blob: b6f504de48937678e89f6b797841c0e100a099d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $NetBSD: options.mk,v 1.2 2009/05/17 19:56:58 sno Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.p5-HTML-Mason
PKG_SUPPORTED_OPTIONS=	fcgi modperl
PKG_SUGGESTED_OPTIONS=	# empty

.include "../../mk/bsd.options.mk"

###
### mod_perl usage for Apache webservers
###
.if !empty(PKG_OPTIONS:Mmodperl)
.  include "../../mk/apache.mk"
.  if ${PKG_APACHE} == "apache13"
DEPENDS+=	p5-libapreq>=0.32:../../www/p5-libapreq
.    include "../../www/ap-perl/buildlink3.mk"
.  elif ${PKG_APACHE} == "apache2" || ${PKG_APACHE} == "apache22"
DEPENDS+=	p5-libapreq2-[0-9]*:../../www/p5-libapreq2
.    include "../../www/ap2-perl/buildlink3.mk"
.  endif
.endif

###
### FastCGI Support e.g. for lighttpd
###
.if !empty(PKG_OPTIONS:Mfcgi)
DEPENDS+=	p5-FCGI-[0-9]*:../../www/p5-FCGI
.endif