Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/cargo.mk
Show First 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | |||||
CARGO_ENV+= OPENSSL_LIB_DIR=${OPENSSLLIB} \ | CARGO_ENV+= OPENSSL_LIB_DIR=${OPENSSLLIB} \ | ||||
OPENSSL_INCLUDE_DIR=${OPENSSLINC} | OPENSSL_INCLUDE_DIR=${OPENSSLINC} | ||||
. endif | . endif | ||||
. if ${_CARGO_CRATES:Mpkg-config} | . if ${_CARGO_CRATES:Mpkg-config} | ||||
.include "${USESDIR}/pkgconfig.mk" | .include "${USESDIR}/pkgconfig.mk" | ||||
. endif | . endif | ||||
. if ${_CARGO_CRATES:Mzstd-sys} | |||||
# Use the system's zstd instead of building the bundled version | |||||
CARGO_ENV+= ZSTD_SYS_USE_PKG_CONFIG=1 | |||||
. endif | |||||
. for _index _crate _name _version in ${_CARGO_CRATES} | . for _index _crate _name _version in ${_CARGO_CRATES} | ||||
# Split up semantic version and try to sanitize it by removing | # Split up semantic version and try to sanitize it by removing | ||||
# pre-release identifier (-) or build metadata (+) | # pre-release identifier (-) or build metadata (+) | ||||
. if ${_version:S/./ /:S/./ /:C/[-+].*//:_:[#]} == 3 | . if ${_version:S/./ /:S/./ /:C/[-+].*//:_:[#]} == 3 | ||||
. for _major _minor _patch in $_ | . for _major _minor _patch in $_ | ||||
# FreeBSD 12.0 changed ABI: r318736 and r320043 | # FreeBSD 12.0 changed ABI: r318736 and r320043 | ||||
# https://github.com/rust-lang/libc/commit/78f93220d70e | # https://github.com/rust-lang/libc/commit/78f93220d70e | ||||
# https://github.com/rust-lang/libc/commit/969ad2b73cdc | # https://github.com/rust-lang/libc/commit/969ad2b73cdc | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |