Changeset View
Changeset View
Standalone View
Standalone View
lang/rust/Makefile
PORTNAME= rust | PORTNAME= rust | ||||
PORTVERSION?= 1.82.0 | PORTVERSION?= 1.82.0 | ||||
PORTREVISION?= 0 | PORTREVISION?= 1 | ||||
CATEGORIES= lang | CATEGORIES= lang | ||||
MASTER_SITES= https://static.rust-lang.org/dist/:src \ | MASTER_SITES= https://static.rust-lang.org/dist/:src \ | ||||
https://dev-static.rust-lang.org/dist/:src \ | https://dev-static.rust-lang.org/dist/:src \ | ||||
LOCAL/rust:bootstrap \ | LOCAL/rust:bootstrap \ | ||||
https://static.rust-lang.org/dist/:bootstrap | https://static.rust-lang.org/dist/:bootstrap | ||||
DISTNAME?= ${PORTNAME}c-${PORTVERSION}-src | DISTNAME?= ${PORTNAME}c-${PORTVERSION}-src | ||||
DISTFILES?= ${NIGHTLY_DATE:D${NIGHTLY_DATE}/}${DISTNAME}${EXTRACT_SUFX}:src \ | DISTFILES?= ${NIGHTLY_DATE:D${NIGHTLY_DATE}/}${DISTNAME}${EXTRACT_SUFX}:src \ | ||||
${_RUSTC_BOOTSTRAP}${EXTRACT_SUFX}:bootstrap \ | ${_RUSTC_BOOTSTRAP}${EXTRACT_SUFX}:bootstrap \ | ||||
Show All 31 Lines | |||||
# rustc stashes intermediary files in TMPDIR (default /tmp) which | # rustc stashes intermediary files in TMPDIR (default /tmp) which | ||||
# might cause issues for users that for some reason space limit | # might cause issues for users that for some reason space limit | ||||
# their /tmp. WRKDIR should have plenty of space. | # their /tmp. WRKDIR should have plenty of space. | ||||
# ?= to allow users to still overwrite it in make.conf. | # ?= to allow users to still overwrite it in make.conf. | ||||
TMPDIR?= ${WRKDIR} | TMPDIR?= ${WRKDIR} | ||||
OPTIONS_DEFINE= DOCS GDB LTO PORT_LLVM SOURCES WASM | OPTIONS_DEFINE= DOCS GDB LTO PORT_LLVM SOURCES WASM | ||||
OPTIONS_DEFAULT= SOURCES WASM | OPTIONS_DEFAULT= SOURCES WASM | ||||
OPTIONS_DEFINE_i386= SSE2 | |||||
OPTIONS_DEFAULT_i386= SSE2 | |||||
GDB_DESC= Install ports gdb (necessary for debugging rust programs) | GDB_DESC= Install ports gdb (necessary for debugging rust programs) | ||||
PORT_LLVM_DESC= Build against devel/llvm instead of bundled copy (experimental) | PORT_LLVM_DESC= Build against devel/llvm instead of bundled copy (experimental) | ||||
SSE2_DESC= Enable SSE2 instructions | |||||
SOURCES_DESC= Install source files | SOURCES_DESC= Install source files | ||||
WASM_DESC= Build the WebAssembly target (wasm32-unknown-unknown) | WASM_DESC= Build the WebAssembly target (wasm32-unknown-unknown) | ||||
SSE2_EXTRA_PATCHES_OFF+= ${FILESDIR}/extra-patch-compiler_rustc__target_src_spec_targets_i686__unknown__freebsd.rs | |||||
DOCS_VARS= _RUST_BUILD_DOCS=true \ | DOCS_VARS= _RUST_BUILD_DOCS=true \ | ||||
_COMPONENTS+="rust-docs-${_PACKAGE_VERS}-${_RUST_TARGET} rust-docs-json-${_PACKAGE_VERS}-${_RUST_TARGET}" \ | _COMPONENTS+="rust-docs-${_PACKAGE_VERS}-${_RUST_TARGET} rust-docs-json-${_PACKAGE_VERS}-${_RUST_TARGET}" \ | ||||
_RUST_TOOLS+=rustdoc | _RUST_TOOLS+=rustdoc | ||||
DOCS_VARS_OFF= _RUST_BUILD_DOCS=false | DOCS_VARS_OFF= _RUST_BUILD_DOCS=false | ||||
GDB_RUN_DEPENDS= ${LOCALBASE}/bin/gdb:devel/gdb | GDB_RUN_DEPENDS= ${LOCALBASE}/bin/gdb:devel/gdb | ||||
PORT_LLVM_USES= llvm:min=17,lib,noexport | PORT_LLVM_USES= llvm:min=17,lib,noexport | ||||
PORT_LLVM_MAKE_ENV= RUSTFLAGS="-Lnative=${LOCALBASE}/lib" | PORT_LLVM_MAKE_ENV= RUSTFLAGS="-Lnative=${LOCALBASE}/lib" | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |