| @@ -1,22 +1,38 @@ | | | @@ -1,22 +1,38 @@ |
1 | # $NetBSD: options.mk,v 1.9 2015/02/01 08:58:52 obache Exp $ | | 1 | # $NetBSD: options.mk,v 1.10 2015/02/18 09:16:52 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.tnftp |
4 | PKG_SUPPORTED_OPTIONS= inet6 | | 4 | PKG_SUPPORTED_OPTIONS= inet6 ssl |
5 | PKG_OPTIONS_OPTIONAL_GROUPS+= socks | | 5 | PKG_OPTIONS_OPTIONAL_GROUPS+= socks |
6 | PKG_OPTIONS_GROUP.socks= socks5 | | 6 | PKG_OPTIONS_GROUP.socks= socks5 |
7 | PKG_SUGGESTED_OPTIONS= inet6 | | 7 | PKG_SUGGESTED_OPTIONS= inet6 |
8 | | | 8 | |
| | | 9 | CHECK_BUILTIN.openssl:= yes |
| | | 10 | .include "../../security/openssl/builtin.mk" |
| | | 11 | CHECK_BUILTIN.openssl:= no |
| | | 12 | |
| | | 13 | .if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) |
| | | 14 | PKG_SUGGESTED_OPTIONS+= ssl |
| | | 15 | .endif |
| | | 16 | |
9 | .include "../../mk/bsd.options.mk" | | 17 | .include "../../mk/bsd.options.mk" |
10 | | | 18 | |
11 | .if !empty(PKG_OPTIONS:Msocks5) | | 19 | .if !empty(PKG_OPTIONS:Msocks5) |
12 | CONFIGURE_ARGS+= --with-socks | | 20 | CONFIGURE_ARGS+= --with-socks |
13 | .include "../../net/socks5/buildlink3.mk" | | 21 | .include "../../net/socks5/buildlink3.mk" |
14 | .else | | 22 | .else |
15 | CONFIGURE_ARGS+= --without-socks | | 23 | CONFIGURE_ARGS+= --without-socks |
16 | .endif | | 24 | .endif |
17 | | | 25 | |
18 | .if !empty(PKG_OPTIONS:Minet6) | | 26 | .if !empty(PKG_OPTIONS:Minet6) |
19 | CONFIGURE_ARGS+= --enable-ipv6 | | 27 | CONFIGURE_ARGS+= --enable-ipv6 |
20 | .else | | 28 | .else |
21 | CONFIGURE_ARGS+= --disable-ipv6 | | 29 | CONFIGURE_ARGS+= --disable-ipv6 |
22 | .endif | | 30 | .endif |
| | | 31 | |
| | | 32 | .if !empty(PKG_OPTIONS:Mssl) |
| | | 33 | CONFIGURE_ARGS+= --enable-ssl |
| | | 34 | .include "../../security/openssl/buildlink3.mk" |
| | | 35 | CONFIGURE_ARGS+= --with-openssl=${SSLBASE} |
| | | 36 | .else |
| | | 37 | CONFIGURE_ARGS+= --disable-ssl |
| | | 38 | .endif |