| @@ -1,27 +1,29 @@ | | | @@ -1,27 +1,29 @@ |
1 | # $NetBSD: available.mk,v 1.1 2019/06/08 19:51:38 leot Exp $ | | 1 | # $NetBSD: available.mk,v 1.1.6.1 2020/06/17 13:40:26 bsiegert Exp $ |
2 | # | | 2 | # |
3 | # This mk fragment define LIBRSVG_TYPE variable used in other librsvg mk | | 3 | # This mk fragment define LIBRSVG_TYPE variable used in other librsvg mk |
4 | # fragments. | | 4 | # fragments. |
5 | # | | 5 | # |
6 | # User-settable variables: | | 6 | # User-settable variables: |
7 | # | | 7 | # |
8 | # LIBRSVG_TYPE | | 8 | # LIBRSVG_TYPE |
9 | # Type of used librsvg implementation. | | 9 | # Type of used librsvg implementation. |
10 | # | | 10 | # |
11 | # Possible values: c rust | | 11 | # Possible values: c rust |
12 | # Default: rust on platforms were Rust is supported | | 12 | # Default: rust on platforms were Rust is supported |
13 | # | | 13 | # |
14 | | | 14 | |
15 | .if !defined(LIBRSVG_AVAILABLE_MK) | | 15 | .if !defined(LIBRSVG_AVAILABLE_MK) |
16 | LIBRSVG_AVAILABLE_MK= defined | | 16 | LIBRSVG_AVAILABLE_MK= defined |
17 | | | 17 | |
18 | .include "../../mk/bsd.prefs.mk" | | 18 | .include "../../mk/bsd.prefs.mk" |
19 | | | 19 | |
20 | .include "../../lang/rust/platform.mk" | | 20 | .include "../../lang/rust/platform.mk" |
21 | .if !empty(PLATFORM_SUPPORTS_RUST:M[Yy][Ee][Ss]) | | 21 | # https://mail-index.netbsd.org/tech-pkg/2020/06/16/msg023380.html |
| | | 22 | .if !empty(PLATFORM_SUPPORTS_RUST:M[Yy][Ee][Ss]) && \ |
| | | 23 | empty(MACHINE_PLATFORM:MNetBSD-*-earm*) |
22 | LIBRSVG_TYPE?= rust | | 24 | LIBRSVG_TYPE?= rust |
23 | .else | | 25 | .else |
24 | LIBRSVG_TYPE?= c | | 26 | LIBRSVG_TYPE?= c |
25 | .endif | | 27 | .endif |
26 | | | 28 | |
27 | .endif # LIBRSVG_AVAILABLE_MK | | 29 | .endif # LIBRSVG_AVAILABLE_MK |