pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/rust



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Jun  1 13:55:11 UTC 2019

Added Files:
        pkgsrc/lang/rust: platform.mk

Log Message:
rust: add platform.mk to provide list of supported platforms

Based on code by dholland, pkglinted.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/rust/platform.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/rust/platform.mk
diff -u /dev/null pkgsrc/lang/rust/platform.mk:1.1
--- /dev/null   Sat Jun  1 13:55:11 2019
+++ pkgsrc/lang/rust/platform.mk        Sat Jun  1 13:55:11 2019
@@ -0,0 +1,18 @@
+# $NetBSD: platform.mk,v 1.1 2019/06/01 13:55:11 wiz Exp $
+
+.if !defined(PLATFORM_SUPPORTS_RUST)
+
+.for _rust_arch in aarch64 armv7 i386 powerpc sparc64 x86_64
+.for _rust_os in Darwin FreeBSD Linux NetBSD SunOS
+RUST_PLATFORMS+=        ${_rust_os}-*-${_rust_arch}
+.endfor
+.endfor
+
+.for _rust_platform in ${RUST_PLATFORMS}
+.if !empty(MACHINE_PLATFORM:M${_rust_platform})
+PLATFORM_SUPPORTS_RUST=         yes
+.endif
+.endfor
+PLATFORM_SUPPORTS_RUST?=        no
+
+.endif # !defined(PLATFORM_SUPPORTS_RUST)



Home | Main Index | Thread Index | Old Index