Update multimedia/rav1e to version 0.5.1
[dports.git] / multimedia / rav1e / Makefile
1 PORTNAME=       rav1e
2 DISTVERSIONPREFIX=      v
3 DISTVERSION=    0.5.1
4 PORTREVISION?=  0
5 CATEGORIES=     multimedia
6
7 MAINTAINER=     jbeich@FreeBSD.org
8 COMMENT=        Fast and safe AV1 encoder
9
10 LICENSE=        BSD2CLAUSE
11 LICENSE_FILE=   ${WRKSRC}/LICENSE
12
13 BUILD_DEPENDS+= ${BUILD_DEPENDS_${ARCH}}
14 BUILD_DEPENDS_x86_64=   nasm:devel/nasm
15
16 USES=           cargo
17 USE_GITHUB=     yes
18 GH_ACCOUNT=     xiph
19 PLIST_FILES?=   bin/${PORTNAME}
20
21 CARGO_CRATES=   addr2line-0.17.0 \
22                 adler-1.0.2 \
23                 adler32-1.2.0 \
24                 aho-corasick-0.7.18 \
25                 ansi_term-0.12.1 \
26                 anyhow-1.0.51 \
27                 aom-sys-0.3.0 \
28                 arbitrary-0.4.7 \
29                 arg_enum_proc_macro-0.3.2 \
30                 arrayvec-0.7.2 \
31                 assert_cmd-2.0.2 \
32                 atty-0.2.14 \
33                 autocfg-1.0.1 \
34                 av-metrics-0.7.2 \
35                 backtrace-0.3.63 \
36                 bindgen-0.58.1 \
37                 bitflags-1.3.2 \
38                 bitstream-io-1.2.0 \
39                 bstr-0.2.17 \
40                 bumpalo-3.8.0 \
41                 bytemuck-1.7.2 \
42                 byteorder-1.4.3 \
43                 cast-0.2.7 \
44                 cc-1.0.72 \
45                 cexpr-0.4.0 \
46                 cfg-expr-0.7.4 \
47                 cfg-if-1.0.0 \
48                 chrono-0.4.19 \
49                 clang-sys-1.3.0 \
50                 clap-2.34.0 \
51                 cmake-0.1.46 \
52                 color_quant-1.1.0 \
53                 console-0.14.1 \
54                 crc32fast-1.3.0 \
55                 criterion-0.3.5 \
56                 criterion-plot-0.4.4 \
57                 crossbeam-0.8.1 \
58                 crossbeam-channel-0.5.1 \
59                 crossbeam-deque-0.8.1 \
60                 crossbeam-epoch-0.9.5 \
61                 crossbeam-queue-0.3.2 \
62                 crossbeam-utils-0.8.5 \
63                 csv-1.1.6 \
64                 csv-core-0.1.10 \
65                 ctor-0.1.21 \
66                 dav1d-sys-0.3.4 \
67                 deflate-0.8.6 \
68                 diff-0.1.12 \
69                 difflib-0.4.0 \
70                 doc-comment-0.3.3 \
71                 either-1.6.1 \
72                 encode_unicode-0.3.6 \
73                 env_logger-0.8.4 \
74                 fern-0.6.0 \
75                 getrandom-0.2.3 \
76                 gimli-0.26.1 \
77                 glob-0.3.0 \
78                 half-1.8.2 \
79                 heck-0.3.3 \
80                 hermit-abi-0.1.19 \
81                 humantime-2.1.0 \
82                 image-0.23.14 \
83                 interpolate_name-0.2.3 \
84                 itertools-0.8.2 \
85                 itertools-0.10.3 \
86                 itoa-0.4.8 \
87                 jobserver-0.1.24 \
88                 js-sys-0.3.55 \
89                 lab-0.11.0 \
90                 lazy_static-1.4.0 \
91                 lazycell-1.3.0 \
92                 libc-0.2.112 \
93                 libfuzzer-sys-0.3.5 \
94                 libloading-0.7.2 \
95                 log-0.4.14 \
96                 memchr-2.4.1 \
97                 memoffset-0.6.5 \
98                 miniz_oxide-0.3.7 \
99                 miniz_oxide-0.4.4 \
100                 nasm-rs-0.2.2 \
101                 nom-5.1.2 \
102                 noop_proc_macro-0.3.0 \
103                 num-derive-0.3.3 \
104                 num-integer-0.1.44 \
105                 num-iter-0.1.42 \
106                 num-rational-0.3.2 \
107                 num-traits-0.2.14 \
108                 num_cpus-1.13.0 \
109                 object-0.27.1 \
110                 oorandom-11.1.3 \
111                 output_vt100-0.1.2 \
112                 paste-1.0.6 \
113                 peeking_take_while-0.1.2 \
114                 pkg-config-0.3.24 \
115                 plotters-0.3.1 \
116                 plotters-backend-0.3.2 \
117                 plotters-svg-0.3.1 \
118                 png-0.16.8 \
119                 ppv-lite86-0.2.15 \
120                 predicates-2.1.0 \
121                 predicates-core-1.0.2 \
122                 predicates-tree-1.0.4 \
123                 pretty_assertions-0.7.2 \
124                 proc-macro2-1.0.33 \
125                 quote-1.0.10 \
126                 rand-0.8.4 \
127                 rand_chacha-0.3.1 \
128                 rand_core-0.6.3 \
129                 rand_hc-0.3.1 \
130                 rayon-1.5.1 \
131                 rayon-core-1.9.1 \
132                 regex-1.5.4 \
133                 regex-automata-0.1.10 \
134                 regex-syntax-0.6.25 \
135                 rust_hawktracer-0.7.0 \
136                 rust_hawktracer_normal_macro-0.4.1 \
137                 rust_hawktracer_proc_macro-0.4.1 \
138                 rust_hawktracer_sys-0.4.2 \
139                 rustc-demangle-0.1.21 \
140                 rustc-hash-1.1.0 \
141                 rustc_version-0.4.0 \
142                 ryu-1.0.9 \
143                 same-file-1.0.6 \
144                 scan_fmt-0.2.6 \
145                 scopeguard-1.1.0 \
146                 semver-1.0.4 \
147                 serde-1.0.131 \
148                 serde_cbor-0.11.2 \
149                 serde_derive-1.0.131 \
150                 serde_json-1.0.72 \
151                 shlex-1.1.0 \
152                 signal-hook-0.3.12 \
153                 signal-hook-registry-1.4.0 \
154                 simd_helpers-0.1.0 \
155                 smallvec-1.7.0 \
156                 strsim-0.8.0 \
157                 strum-0.21.0 \
158                 strum_macros-0.21.1 \
159                 syn-1.0.82 \
160                 system-deps-3.1.2 \
161                 termcolor-1.1.2 \
162                 terminal_size-0.1.17 \
163                 termtree-0.2.3 \
164                 textwrap-0.11.0 \
165                 thiserror-1.0.30 \
166                 thiserror-impl-1.0.30 \
167                 time-0.1.43 \
168                 tinytemplate-1.2.1 \
169                 toml-0.5.8 \
170                 unicode-segmentation-1.8.0 \
171                 unicode-width-0.1.9 \
172                 unicode-xid-0.2.2 \
173                 vec_map-0.8.2 \
174                 version-compare-0.0.11 \
175                 version_check-0.9.3 \
176                 wait-timeout-0.2.0 \
177                 walkdir-2.3.2 \
178                 wasi-0.10.2+wasi-snapshot-preview1 \
179                 wasm-bindgen-0.2.78 \
180                 wasm-bindgen-backend-0.2.78 \
181                 wasm-bindgen-macro-0.2.78 \
182                 wasm-bindgen-macro-support-0.2.78 \
183                 wasm-bindgen-shared-0.2.78 \
184                 web-sys-0.3.55 \
185                 which-3.1.1 \
186                 winapi-0.3.9 \
187                 winapi-i686-pc-windows-gnu-0.4.0 \
188                 winapi-util-0.1.5 \
189                 winapi-x86_64-pc-windows-gnu-0.4.0 \
190                 y4m-0.7.0
191
192 post-patch:
193 # Extract (snapshot) version from the port instead of CARGO_PKG_VERSION
194         @${REINPLACE_CMD} 's/env!("VERGEN_SEMVER_LIGHTWEIGHT")/"${DISTVERSIONFULL}"/' \
195                 ${WRKSRC}/src/capi.rs ${WRKSRC}/src/lib.rs
196
197 .if !target(post-install)
198 post-install:
199         @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
200 .endif
201
202 .include <bsd.port.mk>