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
)
16 CONFIGURE_ARGS
+= --add-module
=..
/${NAXSI}/naxsi_src
19 .if
!empty
(PKG_OPTIONS
:Mdebug
)
20 CONFIGURE_ARGS
+= --with-debug
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
29 .if
!empty
(PKG_OPTIONS
:Mpcre
)
30 .
include "../../devel/pcre/buildlink3.mk"
32 CONFIGURE_ARGS
+= --without-pcre
33 CONFIGURE_ARGS
+= --without-http_rewrite_module
36 .if
!empty
(PKG_OPTIONS
:Mdav
)
37 CONFIGURE_ARGS
+= --with-http_dav_module
40 .if
!empty
(PKG_OPTIONS
:Mflv
)
41 CONFIGURE_ARGS
+= --with-http_flv_module
44 .if
!empty
(PKG_OPTIONS
:Mspdy
)
45 CONFIGURE_ARGS
+= --with-http_spdy_module
48 .if
!empty
(PKG_OPTIONS
:Msub
)
49 CONFIGURE_ARGS
+= --with-http_sub_module
52 .if
!empty
(PKG_OPTIONS
:Mgtools
)
53 CONFIGURE_ARGS
+= --with-google_perftools_module
56 .if
!empty
(PKG_OPTIONS
:Mmail-proxy
)
57 CONFIGURE_ARGS
+= --with-mail
60 .if empty
(PKG_OPTIONS
:Mmemcache
)
61 CONFIGURE_ARGS
+= --without-http_memcached_module
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}
71 .if
!empty
(PKG_OPTIONS
:Mrealip
)
72 CONFIGURE_ARGS
+= --with-http_realip_module
75 .if
!empty
(PKG_OPTIONS
:Minet6
)
76 CONFIGURE_ARGS
+= --with-ipv6
79 .if
!empty
(PKG_OPTIONS
:Muwsgi
)
80 EGFILES
+= uwsgi_params
83 CONFIGURE_ARGS
+= --without-http_uwsgi_module
86 .if
!empty
(PKG_OPTIONS
:Mpush
)
87 CONFIGURE_ARGS
+= --add-module
=..
/${PUSH}
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}
97 .if
!empty
(PKG_OPTIONS
:Mupload
)
98 CONFIGURE_ARGS
+= --add-module
=..
/${NGX_UPLOAD}
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
/
109 .if
!empty
(PKG_OPTIONS
:Mimage-filter
)
110 .
include "../../graphics/gd/buildlink3.mk"
111 CONFIGURE_ARGS
+= --with-http_image_filter_module
114 .if
!empty
(PKG_OPTIONS
:Mstatus
)
115 CONFIGURE_ARGS
+= --with-http_stub_status_module