| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.117 2019/10/02 12:51:43 he Exp $ | | 1 | # $NetBSD: Makefile,v 1.118 2019/10/24 17:34:10 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= rustc-1.38.0-src | | 3 | DISTNAME= rustc-1.38.0-src |
4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} | | 4 | PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= http://static.rust-lang.org/dist/ | | 6 | MASTER_SITES= http://static.rust-lang.org/dist/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.rust-lang.org/ | | 9 | HOMEPAGE= https://www.rust-lang.org/ |
10 | COMMENT= Safe, concurrent, practical language | | 10 | COMMENT= Safe, concurrent, practical language |
11 | LICENSE= mit OR apache-2.0 | | 11 | LICENSE= mit OR apache-2.0 |
12 | | | 12 | |
13 | USE_GCC_RUNTIME= yes | | 13 | USE_GCC_RUNTIME= yes |
14 | USE_LANGUAGES= c c++11 | | 14 | USE_LANGUAGES= c c++11 |
| @@ -270,28 +270,30 @@ SITES.${RUST_STAGE0}= ${MASTER_SITE_LOCA | | | @@ -270,28 +270,30 @@ SITES.${RUST_STAGE0}= ${MASTER_SITE_LOCA |
270 | SITES.${RUST_STD_STAGE0}= ${MASTER_SITE_LOCAL:=rust/} | | 270 | SITES.${RUST_STD_STAGE0}= ${MASTER_SITE_LOCAL:=rust/} |
271 | pre-build-fix: | | 271 | pre-build-fix: |
272 | .endif | | 272 | .endif |
273 | | | 273 | |
274 | # You may override RUST_BOOTSTRAP_PATH and RUST_ARCH in mk.conf if you have a local bootstrap compiler. | | 274 | # You may override RUST_BOOTSTRAP_PATH and RUST_ARCH in mk.conf if you have a local bootstrap compiler. |
275 | .if !defined(RUST_ARCH) && !defined(RUST_BOOTSTRAP_PATH) | | 275 | .if !defined(RUST_ARCH) && !defined(RUST_BOOTSTRAP_PATH) |
276 | NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM} | | 276 | NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM} |
277 | .else | | 277 | .else |
278 | RUST_BOOTSTRAP_PATH?= ${WRKDIR}/rust-bootstrap | | 278 | RUST_BOOTSTRAP_PATH?= ${WRKDIR}/rust-bootstrap |
279 | .endif | | 279 | .endif |
280 | | | 280 | |
281 | .if ${OPSYS} == "SunOS" | | 281 | .if ${OPSYS} == "SunOS" |
282 | BUILD_DEPENDS+= coreutils>=0:../../sysutils/coreutils | | 282 | BUILD_DEPENDS+= coreutils>=0:../../sysutils/coreutils |
| | | 283 | BUILD_DEPENDS+= gzip>=0:../../archivers/gzip |
283 | TOOLS_CREATE+= md5sum | | 284 | TOOLS_CREATE+= md5sum |
284 | TOOLS_PATH.md5sum= ${PREFIX}/bin/gmd5sum | | 285 | TOOLS_PATH.md5sum= ${PREFIX}/bin/gmd5sum |
| | | 286 | TOOLS_PLATFORM.gzcat= ${PREFIX}/bin/gzip -cd |
285 | .endif | | 287 | .endif |
286 | | | 288 | |
287 | SUBST_CLASSES+= rpath | | 289 | SUBST_CLASSES+= rpath |
288 | SUBST_STAGE.rpath= pre-configure | | 290 | SUBST_STAGE.rpath= pre-configure |
289 | SUBST_FILES.rpath= src/bootstrap/bin/rustc.rs | | 291 | SUBST_FILES.rpath= src/bootstrap/bin/rustc.rs |
290 | SUBST_FILES.rpath+= src/build_helper/lib.rs | | 292 | SUBST_FILES.rpath+= src/build_helper/lib.rs |
291 | SUBST_FILES.rpath+= src/librustc_codegen_ssa/back/linker.rs | | 293 | SUBST_FILES.rpath+= src/librustc_codegen_ssa/back/linker.rs |
292 | SUBST_VARS.rpath= PREFIX | | 294 | SUBST_VARS.rpath= PREFIX |
293 | | | 295 | |
294 | post-extract: | | 296 | post-extract: |
295 | set -e; \ | | 297 | set -e; \ |
296 | if ${TEST} -e ${WRKDIR}/rust-${RUST_STAGE0_VER}-${RUST_ARCH}/install.sh \ | | 298 | if ${TEST} -e ${WRKDIR}/rust-${RUST_STAGE0_VER}-${RUST_ARCH}/install.sh \ |
297 | -a ! -e ${RUST_BOOTSTRAP_PATH}/bin/rustc; then \ | | 299 | -a ! -e ${RUST_BOOTSTRAP_PATH}/bin/rustc; then \ |