freebsd-ports/multimedia/rav1e/Makefile
Tobias Kortkamp 5abe8902a5 lang/rust: Update to 1.43.0
- Add workaround to fix build when CC/CXX have "clang" in them [1]
- Respect AR to fix build with external toolchains [2]
- Force rebuild all consumers to catch regressions early

Changes:	https://blog.rust-lang.org/2020/04/23/Rust-1.43.0.html
PR:		238556 [1], 245583 [2]
Reported by:	Matthias Apitz <guru@unixarea.de> [1], Greg V <greg@unrelenting.technology> [2]
Tested by:	mikael, pkubaj, tobik
With hat:	rust
Differential Revision:	https://reviews.freebsd.org/D24521
2020-04-23 15:32:29 +00:00

197 lines
4.1 KiB
Makefile

# $FreeBSD$
PORTNAME= rav1e
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.1
PORTREVISION?= 3
CATEGORIES= multimedia
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Fast and safe AV1 encoder
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS+= ${BUILD_DEPENDS_${ARCH}}
BUILD_DEPENDS_amd64= nasm:devel/nasm
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= xiph
PLIST_FILES?= bin/${PORTNAME}
CARGO_CRATES= adler32-1.0.4 \
aho-corasick-0.7.8 \
ansi_term-0.11.0 \
anyhow-1.0.26 \
aom-sys-0.1.3 \
arbitrary-0.2.0 \
arc-swap-0.4.4 \
arg_enum_proc_macro-0.3.0 \
arrayvec-0.5.1 \
atty-0.2.14 \
autocfg-0.1.7 \
autocfg-1.0.0 \
backtrace-0.3.44 \
backtrace-sys-0.1.32 \
better-panic-0.2.0 \
bindgen-0.51.1 \
bindgen-0.52.0 \
bitflags-1.2.1 \
bitstream-io-0.8.4 \
bstr-0.2.11 \
bumpalo-3.2.0 \
byteorder-1.3.4 \
c2-chacha-0.2.3 \
cast-0.2.3 \
cc-1.0.50 \
cexpr-0.3.6 \
cfg-if-0.1.10 \
chrono-0.4.10 \
clang-sys-0.28.1 \
clap-2.33.0 \
clicolors-control-1.0.1 \
cmake-0.1.42 \
console-0.9.2 \
crc32fast-1.2.0 \
criterion-0.3.1 \
criterion-plot-0.4.1 \
crossbeam-deque-0.7.2 \
crossbeam-epoch-0.8.0 \
crossbeam-queue-0.2.1 \
crossbeam-utils-0.7.0 \
csv-1.1.3 \
csv-core-0.1.10 \
ctor-0.1.12 \
dav1d-sys-0.3.0 \
deflate-0.7.20 \
difference-2.0.0 \
either-1.5.3 \
encode_unicode-0.3.6 \
env_logger-0.6.2 \
env_logger-0.7.1 \
err-derive-0.2.2 \
error-chain-0.10.0 \
fern-0.5.9 \
getrandom-0.1.14 \
glob-0.3.0 \
heck-0.3.1 \
hermit-abi-0.1.7 \
humantime-1.3.0 \
image-0.22.5 \
inflate-0.4.5 \
interpolate_name-0.2.3 \
itertools-0.8.2 \
itoa-0.4.5 \
jobserver-0.1.21 \
js-sys-0.3.35 \
lazy_static-1.4.0 \
lazycell-1.2.1 \
libc-0.2.66 \
libloading-0.5.2 \
log-0.4.8 \
memchr-2.3.2 \
memoffset-0.5.3 \
metadeps-1.1.2 \
nasm-rs-0.1.7 \
nom-4.2.3 \
noop_proc_macro-0.2.1 \
num-derive-0.3.0 \
num-integer-0.1.42 \
num-iter-0.1.40 \
num-rational-0.2.3 \
num-traits-0.2.11 \
num_cpus-1.12.0 \
oorandom-11.1.0 \
output_vt100-0.1.2 \
paste-0.1.6 \
paste-impl-0.1.6 \
peeking_take_while-0.1.2 \
pkg-config-0.3.17 \
plotters-0.2.12 \
png-0.15.3 \
ppv-lite86-0.2.6 \
pretty_assertions-0.6.1 \
proc-macro-error-0.4.9 \
proc-macro-error-attr-0.4.9 \
proc-macro-hack-0.5.11 \
proc-macro2-1.0.8 \
quick-error-1.2.3 \
quote-1.0.2 \
rand-0.7.3 \
rand_chacha-0.2.1 \
rand_core-0.5.1 \
rand_hc-0.2.0 \
rayon-1.3.0 \
rayon-core-1.7.0 \
redox_syscall-0.1.56 \
regex-1.3.4 \
regex-automata-0.1.8 \
regex-syntax-0.6.14 \
rust_hawktracer-0.7.0 \
rust_hawktracer_normal_macro-0.4.1 \
rust_hawktracer_proc_macro-0.4.1 \
rust_hawktracer_sys-0.4.2 \
rustc-demangle-0.1.16 \
rustc-hash-1.1.0 \
rustc_version-0.2.3 \
rustversion-1.0.2 \
ryu-1.0.2 \
same-file-1.0.6 \
scan_fmt-0.2.5 \
scopeguard-1.1.0 \
semver-0.9.0 \
semver-parser-0.7.0 \
serde-1.0.104 \
serde_derive-1.0.104 \
serde_json-1.0.48 \
shlex-0.1.1 \
signal-hook-0.1.13 \
signal-hook-registry-1.2.0 \
simd_helpers-0.1.0 \
sourcefile-0.1.4 \
strsim-0.8.0 \
syn-1.0.14 \
syn-mid-0.5.0 \
synstructure-0.12.3 \
termcolor-1.1.0 \
termios-0.3.1 \
textwrap-0.11.0 \
thread_local-1.0.1 \
time-0.1.42 \
tinytemplate-1.0.3 \
toml-0.2.1 \
toml-0.5.6 \
unicode-segmentation-1.6.0 \
unicode-width-0.1.7 \
unicode-xid-0.2.0 \
vec_map-0.8.1 \
version_check-0.1.5 \
walkdir-2.3.1 \
wasi-0.9.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.58 \
wasm-bindgen-backend-0.2.58 \
wasm-bindgen-macro-0.2.58 \
wasm-bindgen-macro-support-0.2.58 \
wasm-bindgen-shared-0.2.58 \
wasm-bindgen-webidl-0.2.58 \
web-sys-0.3.35 \
weedle-0.10.0 \
which-3.1.0 \
winapi-0.3.8 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.3 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
y4m-0.5.0
post-patch:
# Extract (snapshot) version from the port instead of CARGO_PKG_VERSION
@${REINPLACE_CMD} 's/env!("VERGEN_SEMVER_LIGHTWEIGHT")/"${DISTVERSIONFULL}"/' \
${WRKSRC}/src/capi.rs ${WRKSRC}/src/lib.rs
.if !target(post-install)
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.endif
.include <bsd.port.mk>