blob: 07df41034718aa546206c9284febcfacb737e756 (
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
|
# $NetBSD: available.mk,v 1.3 2020/12/26 10:02:39 nia 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])
LIBRSVG_TYPE?= rust
.else
LIBRSVG_TYPE?= c
.endif
.endif # LIBRSVG_AVAILABLE_MK
|