pkgsrc/graphics/librsvg/available.mk

28 lines
586 B
Makefile
Raw Normal View History

# $NetBSD: available.mk,v 1.1 2019/06/08 19:51:38 leot 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"
.if !empty(PLATFORM_SUPPORTS_RUST:M[Yy][Ee][Ss])
LIBRSVG_TYPE?= rust
.else
LIBRSVG_TYPE?= c
.endif
.endif # LIBRSVG_AVAILABLE_MK