| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.217 2021/02/14 08:24:30 he Exp $ | | 1 | # $NetBSD: Makefile,v 1.218 2021/02/18 15:41:03 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= rustc-1.49.0-src | | 3 | DISTNAME= rustc-1.49.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= https://static.rust-lang.org/dist/ | | 6 | MASTER_SITES= https://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 | CONFLICTS+= rust-bin-[0-9]* | | 13 | CONFLICTS+= rust-bin-[0-9]* |
14 | | | 14 | |
| @@ -433,27 +433,27 @@ fix-darwin-install-name: | | | @@ -433,27 +433,27 @@ fix-darwin-install-name: |
433 | .endif | | 433 | .endif |
434 | | | 434 | |
435 | GENERATE_PLIST+= ${FIND} ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \ | | 435 | GENERATE_PLIST+= ${FIND} ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \ |
436 | ${SED} -e 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ; | | 436 | ${SED} -e 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ; |
437 | | | 437 | |
438 | # Create a relocatable stage2 bootstrap from the bits we just built that can be | | 438 | # Create a relocatable stage2 bootstrap from the bits we just built that can be |
439 | # used to build the next version of rust. Currently only tested on SmartOS. | | 439 | # used to build the next version of rust. Currently only tested on SmartOS. |
440 | # | | 440 | # |
441 | # Use the alternate BOOTSTRAP_NAME when creating a nightly release. | | 441 | # Use the alternate BOOTSTRAP_NAME when creating a nightly release. |
442 | # | | 442 | # |
443 | #BOOTSTRAP_NAME= ${PKGNAME_NOREV:C/rust/rust-nightly/}-${RUST_ARCH} | | 443 | #BOOTSTRAP_NAME= ${PKGNAME_NOREV:C/rust/rust-nightly/}-${RUST_ARCH} |
444 | BOOTSTRAP_NAME= ${PKGNAME_NOREV}-${RUST_ARCH} | | 444 | BOOTSTRAP_NAME= ${PKGNAME_NOREV}-${RUST_ARCH} |
445 | BOOTSTRAP_TMPDIR= ${WRKDIR}/${BOOTSTRAP_NAME} | | 445 | BOOTSTRAP_TMPDIR= ${WRKDIR}/${BOOTSTRAP_NAME} |
446 | USE_TOOLS+= gtar | | 446 | #USE_TOOLS+= bsdtar |
447 | | | 447 | |
448 | # The NetBSD part is so far untested, because I could not convince | | 448 | # The NetBSD part is so far untested, because I could not convince |
449 | # the rust build to use the gcc wrapper when building natively, | | 449 | # the rust build to use the gcc wrapper when building natively, |
450 | # so that I could get a placeholder in the RPATH, because chrpath | | 450 | # so that I could get a placeholder in the RPATH, because chrpath |
451 | # cannot extend the length of the RPATH... | | 451 | # cannot extend the length of the RPATH... |
452 | ELFEDIT?= /usr/bin/elfedit | | 452 | ELFEDIT?= /usr/bin/elfedit |
453 | | | 453 | |
454 | .PHONY: stage0-bootstrap | | 454 | .PHONY: stage0-bootstrap |
455 | stage0-bootstrap: install | | 455 | stage0-bootstrap: install |
456 | ${RM} -rf ${BOOTSTRAP_TMPDIR} | | 456 | ${RM} -rf ${BOOTSTRAP_TMPDIR} |
457 | ${MKDIR} ${BOOTSTRAP_TMPDIR} | | 457 | ${MKDIR} ${BOOTSTRAP_TMPDIR} |
458 | .if ${OPSYS} == "NetBSD" | | 458 | .if ${OPSYS} == "NetBSD" |
459 | (cd ${BOOTSTRAP_TMPDIR}; \ | | 459 | (cd ${BOOTSTRAP_TMPDIR}; \ |