| @@ -1,40 +1,41 @@ | | | @@ -1,40 +1,41 @@ |
1 | # $NetBSD: options.mk,v 1.13 2020/11/12 22:56:00 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.14 2020/11/16 08:25:40 wiz Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.tor | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.tor |
4 | PKG_SUPPORTED_OPTIONS= doc # rust | | 4 | PKG_SUPPORTED_OPTIONS= doc # rust |
5 | PKG_SUGGESTED_OPTIONS+= doc | | 5 | PKG_SUGGESTED_OPTIONS+= doc |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | PLIST_VARS+= doc | | 9 | PLIST_VARS+= doc |
10 | | | 10 | |
11 | ### | | 11 | ### |
12 | ### This enables the build of manual pages. It requires asciidoc | | 12 | ### This enables the build of manual pages. It requires asciidoc |
13 | ### at build time, which comes with a tail of dependencies and | | 13 | ### at build time, which comes with a tail of dependencies and |
14 | ### may not be wanted under certain circumstances. | | 14 | ### may not be wanted under certain circumstances. |
15 | ### | | 15 | ### |
16 | .if !empty(PKG_OPTIONS:Mdoc) | | 16 | .if !empty(PKG_OPTIONS:Mdoc) |
17 | BUILD_DEPENDS+= asciidoc>=8.3.3:../../textproc/asciidoc | | 17 | BUILD_DEPENDS+= asciidoc>=8.3.3:../../textproc/asciidoc |
18 | CONFIGURE_ARGS+= --enable-asciidoc | | 18 | CONFIGURE_ARGS+= --enable-asciidoc |
19 | PLIST.doc= yes | | 19 | PLIST.doc= yes |
20 | .else | | 20 | .else |
21 | CONFIGURE_ARGS+= --disable-asciidoc | | 21 | CONFIGURE_ARGS+= --disable-asciidoc |
22 | .endif | | 22 | .endif |
23 | | | 23 | |
24 | ### This enables building tor with rust as per | | 24 | ### This enables building tor with rust as per |
25 | ### https://trac.torproject.org/projects/tor/wiki/RustInTor | | 25 | ### https://trac.torproject.org/projects/tor/wiki/RustInTor |
26 | ### XXX: | | 26 | ### XXX: |
27 | ### As of 0.4.4.6 I am not sure how this is supposed to work. | | 27 | ### As of 0.4.4.6 I am not sure how this is supposed to work. |
| | | 28 | ### https://gitlab.torproject.org/tpo/core/tor/-/issues/40191 |
28 | .if !empty(PKG_OPTIONS:Mrust) | | 29 | .if !empty(PKG_OPTIONS:Mrust) |
29 | CONFIGURE_ENV+= TOR_RUST_DEPENDENCIES=${WRKDIR}/vendor | | 30 | CONFIGURE_ENV+= TOR_RUST_DEPENDENCIES=${WRKDIR}/vendor |
30 | CONFIGURE_ARGS+= --enable-rust | | 31 | CONFIGURE_ARGS+= --enable-rust |
31 | CARGO_CRATE_DEPENDS+= digest-0.7.2 | | 32 | CARGO_CRATE_DEPENDS+= digest-0.7.2 |
32 | CARGO_CRATE_DEPENDS+= generic-array-0.9.0 | | 33 | CARGO_CRATE_DEPENDS+= generic-array-0.9.0 |
33 | CARGO_CRATE_DEPENDS+= libc-0.2.39 | | 34 | CARGO_CRATE_DEPENDS+= libc-0.2.39 |
34 | CARGO_CRATE_DEPENDS+= rand-0.5.0-pre.2 | | 35 | CARGO_CRATE_DEPENDS+= rand-0.5.0-pre.2 |
35 | CARGO_CRATE_DEPENDS+= rand_core-0.2.0-pre.0 | | 36 | CARGO_CRATE_DEPENDS+= rand_core-0.2.0-pre.0 |
36 | CARGO_CRATE_DEPENDS+= typenum-1.9.0 | | 37 | CARGO_CRATE_DEPENDS+= typenum-1.9.0 |
37 | | | 38 | |
38 | RUST_REQ= 1.34.0 | | 39 | RUST_REQ= 1.34.0 |
39 | .include "../../lang/rust/cargo.mk" | | 40 | .include "../../lang/rust/cargo.mk" |
40 | | | 41 | |