| @@ -1,35 +1,54 @@ | | | @@ -1,35 +1,54 @@ |
1 | # $NetBSD: options.mk,v 1.5 2008/04/16 00:09:39 bjs Exp $ | | 1 | # $NetBSD: options.mk,v 1.6 2008/10/10 01:56:38 bjs Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.aria2 | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.aria2 |
4 | | | 4 | |
5 | PKG_OPTIONS_GROUP.ssl= gnutls ssl | | 5 | PKG_OPTIONS_GROUP.ssl= gnutls ssl |
6 | PKG_OPTIONS_GROUP.asyncns= ares cares | | 6 | PKG_OPTIONS_GROUP.asyncns= ares cares |
7 | PKG_OPTIONS_REQUIRED_GROUPS= ssl asyncns | | 7 | PKG_OPTIONS_REQUIRED_GROUPS= ssl asyncns |
| | | 8 | |
| | | 9 | PKG_SUPPORTED_OPTIONS= sqlite firefox3 |
8 | PKG_SUGGESTED_OPTIONS= ssl cares | | 10 | PKG_SUGGESTED_OPTIONS= ssl cares |
9 | ### | | 11 | ### |
10 | ### XXX Remove this in the future [2008-04-15 bjs] | | 12 | ### XXX Remove this in the future [2008-04-15 bjs] |
11 | ### | | 13 | ### |
12 | .if !empty(PKG_OPTIONS.aria2:U:Maria2-metalink) || \ | | 14 | .if !empty(PKG_OPTIONS.aria2:U:Maria2-metalink) || \ |
13 | !empty(PKG_DEFAULT_OPTIONS:U:Maria2-metalink) | | 15 | !empty(PKG_DEFAULT_OPTIONS:U:Maria2-metalink) |
14 | PKG_OPTIONS_DEPRECATED_WARNINGS+=\ | | 16 | PKG_OPTIONS_DEPRECATED_WARNINGS+=\ |
15 | "NOTE: The aria2-metalink option is deprecated; this package"\ | | 17 | "NOTE: The aria2-metalink option is deprecated; this package"\ |
16 | " now supports the metalink protocol by default." | | 18 | " now supports the metalink protocol by default." |
17 | .endif | | 19 | .endif |
18 | | | 20 | |
19 | .include "../../mk/bsd.options.mk" | | 21 | .include "../../mk/bsd.options.mk" |
20 | | | 22 | ### |
| | | 23 | ### SSL/TLS implementation |
| | | 24 | ### |
21 | .if !empty(PKG_OPTIONS:Mssl) | | 25 | .if !empty(PKG_OPTIONS:Mssl) |
22 | CONFIGURE_ARGS+= --with-openssl | | 26 | CONFIGURE_ARGS+= --with-openssl |
23 | CONFIGURE_ARGS+= --without-gnutls | | 27 | CONFIGURE_ARGS+= --with-gnutls=no |
24 | . include "../../security/openssl/buildlink3.mk" | | 28 | . include "../../security/openssl/buildlink3.mk" |
25 | .else | | 29 | .else |
26 | CONFIGURE_ARGS+= --with-gnutls | | 30 | CONFIGURE_ARGS+= --with-gnutls |
27 | CONFIGURE_ARGS+= --without-openssl | | 31 | CONFIGURE_ARGS+= --with-openssl=no |
28 | . include "../../security/gnutls/buildlink3.mk" | | 32 | . include "../../security/gnutls/buildlink3.mk" |
29 | .endif | | 33 | .endif |
| | | 34 | ### |
| | | 35 | ### asynchronous resolver library. |
| | | 36 | ### |
30 | .if !empty(PKG_OPTIONS:Mcares) | | 37 | .if !empty(PKG_OPTIONS:Mcares) |
| | | 38 | CONFIGURE_ARGS+= --with-libares=no |
31 | CONFIGURE_ARGS+= --with-libcares-prefix=${BUILDLINK_PREFIX.libcares:Q} | | 39 | CONFIGURE_ARGS+= --with-libcares-prefix=${BUILDLINK_PREFIX.libcares:Q} |
32 | . include "../../net/libcares/buildlink3.mk" | | 40 | . include "../../net/libcares/buildlink3.mk" |
33 | .elif !empty(PKG_OPTIONS:Mares) | | 41 | .elif !empty(PKG_OPTIONS:Mares) |
| | | 42 | CONFIGURE_ARGS+= --with-libcares=no |
34 | CONFIGURE_ARGS+= --with-libares-prefix=${BUILDLINK_PREFIX.libares:Q} | | 43 | CONFIGURE_ARGS+= --with-libares-prefix=${BUILDLINK_PREFIX.libares:Q} |
35 | .endif | | 44 | .endif |
| | | 45 | ### |
| | | 46 | ### firefox3 cookie support via sqlite3 |
| | | 47 | ### |
| | | 48 | .if !empty(PKG_OPTIONS:Mfirefox3) || !empty(PKG_OPTIONS:Msqlite) |
| | | 49 | CONFIGURE_ARGS+= --with-sqlite3 |
| | | 50 | CONFIGURE_ARGS+= --with-sqlite3-prefix=${BUILDLINK_PREFIX.sqlite:Q} |
| | | 51 | . include "../../databases/sqlite3/buildlink3.mk" |
| | | 52 | .else |
| | | 53 | CONFIGURE_ARGS+= --with-sqlite3=no |
| | | 54 | .endif |