Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / www / nginx / options.mk
blob05409201a5d34ea2b0be854288ba521f29d23857
1 # $NetBSD: options.mk,v 1.19 2013/04/19 07:25:18 imil Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.nginx
4 PKG_SUPPORTED_OPTIONS= dav flv gtools inet6 mail-proxy memcache naxsi pcre \
5 push realip ssl sub uwsgi image-filter upload debug \
6 status nginx-autodetect-cflags spdy
7 PKG_SUGGESTED_OPTIONS= inet6 pcre ssl
9 PLIST_VARS+= naxsi uwsgi
11 .include "../../mk/bsd.options.mk"
13 # documentation says naxsi must be the first module
14 .if !empty(PKG_OPTIONS:Mnaxsi)
15 PLIST.naxsi= yes
16 CONFIGURE_ARGS+= --add-module=../${NAXSI}/naxsi_src
17 .endif
19 .if !empty(PKG_OPTIONS:Mdebug)
20 CONFIGURE_ARGS+= --with-debug
21 .endif
23 .if !empty(PKG_OPTIONS:Mssl)
24 .include "../../security/openssl/buildlink3.mk"
25 CONFIGURE_ARGS+= --with-mail_ssl_module
26 CONFIGURE_ARGS+= --with-http_ssl_module
27 .endif
29 .if !empty(PKG_OPTIONS:Mpcre)
30 .include "../../devel/pcre/buildlink3.mk"
31 .else
32 CONFIGURE_ARGS+= --without-pcre
33 CONFIGURE_ARGS+= --without-http_rewrite_module
34 .endif
36 .if !empty(PKG_OPTIONS:Mdav)
37 CONFIGURE_ARGS+= --with-http_dav_module
38 .endif
40 .if !empty(PKG_OPTIONS:Mflv)
41 CONFIGURE_ARGS+= --with-http_flv_module
42 .endif
44 .if !empty(PKG_OPTIONS:Mspdy)
45 CONFIGURE_ARGS+= --with-http_spdy_module
46 .endif
48 .if !empty(PKG_OPTIONS:Msub)
49 CONFIGURE_ARGS+= --with-http_sub_module
50 .endif
52 .if !empty(PKG_OPTIONS:Mgtools)
53 CONFIGURE_ARGS+= --with-google_perftools_module
54 .endif
56 .if !empty(PKG_OPTIONS:Mmail-proxy)
57 CONFIGURE_ARGS+= --with-mail
58 .endif
60 .if empty(PKG_OPTIONS:Mmemcache)
61 CONFIGURE_ARGS+= --without-http_memcached_module
62 .endif
64 .if !empty(PKG_OPTIONS:Mnaxsi) || make(makesum)
65 NAXSI= naxsi-core-0.50
66 NAXSI_DISTFILE= ${NAXSI}.tgz
67 SITES.${NAXSI_DISTFILE}= http://naxsi.googlecode.com/files/
68 DISTFILES+= ${NAXSI_DISTFILE}
69 .endif
71 .if !empty(PKG_OPTIONS:Mrealip)
72 CONFIGURE_ARGS+= --with-http_realip_module
73 .endif
75 .if !empty(PKG_OPTIONS:Minet6)
76 CONFIGURE_ARGS+= --with-ipv6
77 .endif
79 .if !empty(PKG_OPTIONS:Muwsgi)
80 EGFILES+= uwsgi_params
81 PLIST.uwsgi= yes
82 .else
83 CONFIGURE_ARGS+= --without-http_uwsgi_module
84 .endif
86 .if !empty(PKG_OPTIONS:Mpush)
87 CONFIGURE_ARGS+= --add-module=../${PUSH}
88 .endif
89 .if !empty(PKG_OPTIONS:Mpush) || make(makesum)
90 PUSH= nginx_http_push_module-0.692
91 PUSH_DISTFILE= ${PUSH}.tar.gz
92 SITES.${PUSH_DISTFILE}= http://pushmodule.slact.net/downloads/
94 DISTFILES+= ${PUSH_DISTFILE}
95 .endif
97 .if !empty(PKG_OPTIONS:Mupload)
98 CONFIGURE_ARGS+= --add-module=../${NGX_UPLOAD}
99 .endif
101 .if !empty(PKG_OPTIONS:Mupload) || make(makesum)
102 DISTFILES+= ${NGX_UPLOAD_DISTFILE}
104 NGX_UPLOAD= nginx_upload_module-2.2.0
105 NGX_UPLOAD_DISTFILE= ${NGX_UPLOAD}.tar.gz
106 SITES.${NGX_UPLOAD_DISTFILE}= http://www.grid.net.ru/nginx/download/
107 .endif
109 .if !empty(PKG_OPTIONS:Mimage-filter)
110 .include "../../graphics/gd/buildlink3.mk"
111 CONFIGURE_ARGS+= --with-http_image_filter_module
112 .endif
114 .if !empty(PKG_OPTIONS:Mstatus)
115 CONFIGURE_ARGS+= --with-http_stub_status_module
116 .endif