From 0038f501de6530419b94127200d2007d14816e13 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 1 Jun 2019 13:55:31 +0000 Subject: librsvg: use lang/rust/platform.mk --- graphics/librsvg/buildlink3.mk | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'graphics') diff --git a/graphics/librsvg/buildlink3.mk b/graphics/librsvg/buildlink3.mk index c561331cad0..31ebe382804 100644 --- a/graphics/librsvg/buildlink3.mk +++ b/graphics/librsvg/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.47 2019/05/29 12:38:23 wiz Exp $ +# $NetBSD: buildlink3.mk,v 1.48 2019/06/01 13:55:31 wiz Exp $ BUILDLINK_TREE+= librsvg @@ -10,21 +10,9 @@ BUILDLINK_ABI_DEPENDS.librsvg+= librsvg>=2.40.20nb4 .include "../../mk/bsd.fast.prefs.mk" -# platforms where pkgsrc supports lang/rust -.if (${MACHINE_ARCH} == "aarch64" \ - || ${MACHINE_ARCH} == "armv7" \ - || ${MACHINE_ARCH} == "i386" \ - || ${MACHINE_ARCH} == "powerpc" \ - || ${MACHINE_ARCH} == "sparc64" \ - || ${MACHINE_ARCH} == "x86_64") \ - && \ - (${OPSYS} == "Darwin" \ - || ${OPSYS} == "FreeBSD" \ - || ${OPSYS} == "Linux" \ - || ${OPSYS} == "NetBSD" \ - || ${OPSYS} == "SunOS") -LIBRSVG_USE_RUST?= yes -.endif +# default to rust version on platforms where pkgsrc supports lang/rust +.include "../../lang/rust/platform.mk" +LIBRSVG_USE_RUST?= ${PLATFORM_SUPPORTS_RUST} .if ${LIBRSVG_USE_RUST} == "yes" BUILDLINK_PKGSRCDIR.librsvg?= ../../graphics/librsvg -- cgit v1.2.3