summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-06-01 13:55:31 +0000
committerwiz <wiz@pkgsrc.org>2019-06-01 13:55:31 +0000
commit0038f501de6530419b94127200d2007d14816e13 (patch)
treead315d4d8ba59d210cc9df60fb945deef655960b /graphics
parent3afee9720bf42cba1f6a0854e2b9737234febb12 (diff)
downloadpkgsrc-0038f501de6530419b94127200d2007d14816e13.tar.gz
librsvg: use lang/rust/platform.mk
Diffstat (limited to 'graphics')
-rw-r--r--graphics/librsvg/buildlink3.mk20
1 files changed, 4 insertions, 16 deletions
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