Allow Rust to build against ports LLVM.
- Build issues in PR/223300,223342 are no longer reproducible with Rust 1.56 and LLVM 13.
- https://github.com/rust-lang/rust/issues/46181 is fixed.
- Upstream tracks upstream LLVM "pretty closely" [1][2][3].
lang/rust-nightly LLVM_VER can be set after inclusion of MASTERDIR/Makefile.
Upstream allows [4] build with LLVM >=12, but I'm not sure about rust@ policy.
WASM depends on LLVM backend; I don't use WASM and didn't test it.
If anyone is interested in PORT_LLVM and WASM, a wasm target in llvm ports might be needed.
llvm-config in cargo.toml implies linking to LLVM libraries, -Lnative is passed for linking to proceed.
LIB_DEPENDS is set to libLLVM (a la graphics/mesa-devel); ldd on rustc binaries to get the exact sonames isn't useful.
[1]: https://github.com/rust-lang/rust/issues/46437#issuecomment-426696032
[2]: https://github.com/rust-lang/llvm-project/commits/a7348ae0d
[3]: https://github.com/rust-lang/rust/commit/03cf07f85
[4]: https://github.com/rust-lang/rust/commit/e9f545b9a