summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-09-11 18:19:54 +0000
committerjperkin <jperkin@pkgsrc.org>2016-09-11 18:19:54 +0000
commit6e7d76e7e102ca2eca0378a18d85d38351bbcd55 (patch)
tree41a7fdac050321367be5825c590af952a2b1782d /lang
parentd663a190fd9948d96ce92397430186d9f23672a1 (diff)
downloadpkgsrc-6e7d76e7e102ca2eca0378a18d85d38351bbcd55.tar.gz
Only try to fetch stage2 if it's available for the target.
Diffstat (limited to 'lang')
-rw-r--r--lang/rust/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index ed2085eb0bc..0c7ceeae7f8 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/09/06 10:36:49 jperkin Exp $
+# $NetBSD: Makefile,v 1.2 2016/09/11 18:19:54 jperkin Exp $
DISTNAME= rustc-1.11.0-src
PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -93,10 +93,12 @@ SITES.${RUST_STAGE2}= https://us-east.manta.joyent.com/pkgsrc/public/tmp/
NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM}
.endif
+.if defined(RUST_ARCH)
RUST_STAGE2_VER= 1.10.0
RUST_STAGE2?= rust-${RUST_STAGE2_VER}-${RUST_ARCH}.tar.gz
SITES.${RUST_STAGE2}?= https://static.rust-lang.org/dist/
DISTFILES= ${DEFAULT_DISTFILES} ${RUST_STAGE2}
+.endif
PLIST_SRC= PLIST
.if ${OPSYS} == "Darwin"