summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authortriaxx <triaxx@pkgsrc.org>2020-05-24 06:51:24 +0000
committertriaxx <triaxx@pkgsrc.org>2020-05-24 06:51:24 +0000
commit2da1c72509862ccca32d60c7550e29a5aac62d30 (patch)
tree01ad5af1d0defa29ae3060df3411fb0e0fd7dc6d /lang/rust
parent23cba421e4098d77eccd9c68cebd006d80dd65d5 (diff)
downloadpkgsrc-2da1c72509862ccca32d60c7550e29a5aac62d30.tar.gz
rust: fix building on FreeBSD
pkgsrc changes: --------------- * fix grep in USE_TOOLS * make parallel building not safe for FreeBSD
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index a69ddcb6a7b..304df1e4ef0 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.168 2020/05/22 10:56:15 adam Exp $
+# $NetBSD: Makefile,v 1.169 2020/05/24 06:51:24 triaxx Exp $
DISTNAME= rustc-1.43.1-src
PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -14,7 +14,7 @@ LICENSE= mit OR apache-2.0
USE_GCC_RUNTIME= yes
USE_LANGUAGES= c c++11
USE_LIBTOOL= yes
-USE_TOOLS+= bash ggrep gmake perl:build pkg-config
+USE_TOOLS+= bash grep gmake perl:build pkg-config
# The NetBSD bootstraps are built for NetBSD 8 (because rust doesn't
# build on 7). Mark earlier versions as broken.
@@ -130,8 +130,8 @@ CONFIGURE_ARGS+= --debuginfo-level-tests=0
CONFIGURE_ARGS+= --set llvm.targets="ARM;X86"
.endif
-.if ${OPSYS} == "NetBSD" && !empty(MACHINE_PLATFORM:MNetBSD-9.99.*) && \
- !empty(MACHINE_PLATFORM:MNetBSD-[1-9][0-9].*)
+.if (${OPSYS} == "NetBSD" && !empty(MACHINE_PLATFORM:MNetBSD-9.99.*) && \
+ !empty(MACHINE_PLATFORM:MNetBSD-[1-9][0-9].*)) || ${OPSYS} == "FreeBSD"
MAKE_JOBS_SAFE= no
.endif