9c0808198e
This allows rust-bin and rust to coexist in bulk builds (for testing, etc), but the packages still may not be installed at the same time. rust.mk as a solution for picking the correct rust variant was suggested by gdt@. It is intended to be included directly by packages that do not use cargo.mk, and indirectly by packages that do use cargo.mk. rust.mk provides one user-settable variable: RUST_TYPE as before, whether to bootstrap rust from source or use official binaries. may be "src" or "bin" And two package-settable variables: RUST_REQ the minimum version of Rust required by the package. defaults to "1.20.0" RUST_RUNTIME whether Rust is a runtime dependency, may be "yes" or "no"
13 lines
338 B
Makefile
13 lines
338 B
Makefile
# $NetBSD: buildlink3.mk,v 1.1 2020/06/14 15:33:28 nia Exp $
|
|
|
|
BUILDLINK_TREE+= rust-bin
|
|
|
|
.if !defined(RUST_BIN_BUILDLINK3_MK)
|
|
RUST_BIN_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.rust-bin+= rust-bin>=1.20.0
|
|
BUILDLINK_PKGSRCDIR.rust-bin?= ../../lang/rust-bin
|
|
BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/lib/rustlib
|
|
.endif
|
|
|
|
BUILDLINK_TREE+= -rust-bin
|