update Tue Jun 15 18:37:00 PDT 2010
[pkgsrc.git] / www / nginx / options.mk
1 # $NetBSD: options.mk,v 1.9 2010/06/15 20:05:48 joerg Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.nginx
4 PKG_SUPPORTED_OPTIONS=  ssl pcre dav flv sub gtools mail-proxy memcache \
5                         realip inet6 uwsgi
6 PKG_SUGGESTED_OPTIONS=  ssl pcre
7
8 PLIST_VARS+=            uwsgi
9
10 .include "../../mk/bsd.options.mk"
11
12 .if !empty(PKG_OPTIONS:Mssl)
13 .include "../../security/openssl/buildlink3.mk"
14 CONFIGURE_ARGS+=        --with-mail_ssl_module
15 CONFIGURE_ARGS+=        --with-http_ssl_module
16 .endif
17
18 .if !empty(PKG_OPTIONS:Mpcre)
19 .include "../../devel/pcre/buildlink3.mk"
20 .else
21 CONFIGURE_ARGS+=        --without-pcre
22 CONFIGURE_ARGS+=        --without-http_rewrite_module
23 .endif
24
25 .if !empty(PKG_OPTIONS:Mdav)
26 CONFIGURE_ARGS+=        --with-http_dav_module
27 .endif
28
29 .if !empty(PKG_OPTIONS:Mflv)
30 CONFIGURE_ARGS+=        --with-http_flv_module
31 .endif
32
33 .if !empty(PKG_OPTIONS:Msub)
34 CONFIGURE_ARGS+=        --with-http_sub_module
35 .endif
36
37 .if !empty(PKG_OPTIONS:Mgtools)
38 CONFIGURE_ARGS+=        --with-google_perftools_module
39 .endif
40
41 .if !empty(PKG_OPTIONS:Mmail-proxy)
42 CONFIGURE_ARGS+=        --with-mail
43 .endif
44
45 .if empty(PKG_OPTIONS:Mmemcache)
46 CONFIGURE_ARGS+=        --without-http_memcached_module
47 .endif
48
49 .if !empty(PKG_OPTIONS:Mrealip)
50 CONFIGURE_ARGS+=       --with-http_realip_module
51 .endif
52
53 .if !empty(PKG_OPTIONS:Minet6)
54 CONFIGURE_ARGS+=       --with-ipv6
55 .endif
56
57 .if !empty(PKG_OPTIONS:Muwsgi)
58 EGFILES+=               uwsgi_params
59 PLIST.uwsgi=            yes
60 .else
61 CONFIGURE_ARGS+=        --without-http_uwsgi_module
62 .endif