pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/librsvg librsvg: use lang/rust/platform.mk



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e1bc04b2de52
branches:  trunk
changeset: 396465:e1bc04b2de52
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jun 01 13:55:31 2019 +0000

description:
librsvg: use lang/rust/platform.mk

diffstat:

 graphics/librsvg/buildlink3.mk |  20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diffs (34 lines):

diff -r 89686f6c918f -r e1bc04b2de52 graphics/librsvg/buildlink3.mk
--- a/graphics/librsvg/buildlink3.mk    Sat Jun 01 13:55:11 2019 +0000
+++ b/graphics/librsvg/buildlink3.mk    Sat Jun 01 13:55:31 2019 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index