| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.18 2017/11/16 19:48:24 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.19 2017/11/20 16:02:59 abs Exp $ |
2 | | | 2 | |
3 | DISTNAME= rustc-1.21.0-src | | 3 | DISTNAME= rustc-1.21.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 |
| @@ -26,26 +26,28 @@ CONFIGURE_ARGS+= --local-rust-root=${RUS | | | @@ -26,26 +26,28 @@ CONFIGURE_ARGS+= --local-rust-root=${RUS |
26 | CONFIGURE_ARGS+= --enable-extended # Build and install cargo too. | | 26 | CONFIGURE_ARGS+= --enable-extended # Build and install cargo too. |
27 | CONFIGURE_ARGS+= --enable-rpath | | 27 | CONFIGURE_ARGS+= --enable-rpath |
28 | CONFIGURE_ARGS+= --disable-codegen-tests | | 28 | CONFIGURE_ARGS+= --disable-codegen-tests |
29 | CONFIGURE_ARGS+= --disable-dist-src | | 29 | CONFIGURE_ARGS+= --disable-dist-src |
30 | CONFIGURE_ARGS+= --disable-llvm-static-stdcpp | | 30 | CONFIGURE_ARGS+= --disable-llvm-static-stdcpp |
31 | CONFIGURE_ARGS+= --disable-ninja | | 31 | CONFIGURE_ARGS+= --disable-ninja |
32 | | | 32 | |
33 | # This should allow us to perform "offline" builds (so cargo doesn't fetch | | 33 | # This should allow us to perform "offline" builds (so cargo doesn't fetch |
34 | # dependencies during the build stage) but this isn't hooked up yet. | | 34 | # dependencies during the build stage) but this isn't hooked up yet. |
35 | CONFIGURE_ARGS+= --enable-vendor | | 35 | CONFIGURE_ARGS+= --enable-vendor |
36 | | | 36 | |
37 | UNLIMIT_RESOURCES+= cputime | | 37 | UNLIMIT_RESOURCES+= cputime |
38 | | | 38 | |
| | | 39 | PYTHON_VERSIONS_ACCEPTED= 27 |
| | | 40 | |
39 | TEST_TARGET= check | | 41 | TEST_TARGET= check |
40 | | | 42 | |
41 | # bin/* lib/*, but names vary | | 43 | # bin/* lib/*, but names vary |
42 | CHECK_RELRO_SUPPORTED= no | | 44 | CHECK_RELRO_SUPPORTED= no |
43 | CHECK_SSP_SUPPORTED= no | | 45 | CHECK_SSP_SUPPORTED= no |
44 | | | 46 | |
45 | # Required for LLVM (-std=c++11) | | 47 | # Required for LLVM (-std=c++11) |
46 | GCC_REQD+= 4.8 | | 48 | GCC_REQD+= 4.8 |
47 | | | 49 | |
48 | .include "../../mk/bsd.prefs.mk" | | 50 | .include "../../mk/bsd.prefs.mk" |
49 | | | 51 | |
50 | # | | 52 | # |
51 | # Under NetBSD, do not use DT_RUNPATH | | 53 | # Under NetBSD, do not use DT_RUNPATH |