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