Update multimedia/rav1e to version 0.3.3_1
[dports.git] / multimedia / rav1e / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       rav1e
4 DISTVERSIONPREFIX=      v
5 DISTVERSION=    0.3.3
6 PORTREVISION?=  1
7 CATEGORIES=     multimedia
8
9 PATCH_SITES=    https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
10 PATCHFILES+=    9c4c1111deb8.patch:-p1 # https://github.com/xiph/rav1e/pull/2361
11 PATCHFILES+=    faaee6685f7c.patch:-p1 # https://github.com/xiph/rav1e/pull/2361
12 PATCHFILES+=    dfc0e67eb1e4.patch:-p1 # https://github.com/xiph/rav1e/pull/2361
13
14 MAINTAINER=     jbeich@FreeBSD.org
15 COMMENT=        Fast and safe AV1 encoder
16
17 LICENSE=        BSD2CLAUSE
18 LICENSE_FILE=   ${WRKSRC}/LICENSE
19
20 BUILD_DEPENDS+= ${BUILD_DEPENDS_${ARCH}}
21 BUILD_DEPENDS_x86_64=   nasm:devel/nasm
22
23 USES=           cargo
24 USE_GITHUB=     yes
25 GH_ACCOUNT=     xiph
26 PLIST_FILES?=   bin/${PORTNAME}
27
28 CARGO_CRATES=   addr2line-0.12.1 \
29                 adler32-1.0.4 \
30                 aho-corasick-0.7.10 \
31                 ansi_term-0.11.0 \
32                 aom-sys-0.1.4 \
33                 arbitrary-0.2.0 \
34                 arc-swap-0.4.7 \
35                 arg_enum_proc_macro-0.3.0 \
36                 arrayvec-0.5.1 \
37                 assert_cmd-1.0.1 \
38                 atty-0.2.14 \
39                 autocfg-1.0.0 \
40                 backtrace-0.3.48 \
41                 bindgen-0.53.3 \
42                 bindgen-0.54.0 \
43                 bitflags-1.2.1 \
44                 bitstream-io-0.8.5 \
45                 bstr-0.2.13 \
46                 bumpalo-3.4.0 \
47                 bytemuck-1.2.0 \
48                 byteorder-1.3.4 \
49                 cast-0.2.3 \
50                 cc-1.0.54 \
51                 cexpr-0.4.0 \
52                 cfg-if-0.1.10 \
53                 chrono-0.4.11 \
54                 clang-sys-0.29.3 \
55                 clap-2.33.1 \
56                 cmake-0.1.44 \
57                 console-0.11.3 \
58                 crc32fast-1.2.0 \
59                 criterion-0.3.2 \
60                 criterion-plot-0.4.2 \
61                 crossbeam-deque-0.7.3 \
62                 crossbeam-epoch-0.8.2 \
63                 crossbeam-queue-0.2.2 \
64                 crossbeam-utils-0.7.2 \
65                 csv-1.1.3 \
66                 csv-core-0.1.10 \
67                 ctor-0.1.14 \
68                 dav1d-sys-0.3.2 \
69                 deflate-0.8.4 \
70                 difference-2.0.0 \
71                 doc-comment-0.3.3 \
72                 either-1.5.3 \
73                 encode_unicode-0.3.6 \
74                 env_logger-0.7.1 \
75                 error-chain-0.10.0 \
76                 fern-0.6.0 \
77                 getrandom-0.1.14 \
78                 gimli-0.21.0 \
79                 glob-0.3.0 \
80                 hermit-abi-0.1.13 \
81                 humantime-1.3.0 \
82                 image-0.23.4 \
83                 inflate-0.4.5 \
84                 interpolate_name-0.2.3 \
85                 itertools-0.8.2 \
86                 itertools-0.9.0 \
87                 itoa-0.4.5 \
88                 jobserver-0.1.21 \
89                 js-sys-0.3.40 \
90                 lazy_static-1.4.0 \
91                 lazycell-1.2.1 \
92                 libc-0.2.71 \
93                 libloading-0.5.2 \
94                 log-0.4.8 \
95                 maybe-uninit-2.0.0 \
96                 memchr-2.3.3 \
97                 memoffset-0.5.4 \
98                 metadeps-1.1.2 \
99                 nasm-rs-0.1.7 \
100                 nom-5.1.1 \
101                 noop_proc_macro-0.2.1 \
102                 num-derive-0.3.0 \
103                 num-integer-0.1.42 \
104                 num-iter-0.1.40 \
105                 num-rational-0.2.4 \
106                 num-traits-0.2.11 \
107                 num_cpus-1.13.0 \
108                 object-0.19.0 \
109                 oorandom-11.1.1 \
110                 output_vt100-0.1.2 \
111                 paste-0.1.16 \
112                 paste-impl-0.1.16 \
113                 peeking_take_while-0.1.2 \
114                 pkg-config-0.3.17 \
115                 plotters-0.2.15 \
116                 png-0.16.4 \
117                 ppv-lite86-0.2.8 \
118                 predicates-1.0.4 \
119                 predicates-core-1.0.0 \
120                 predicates-tree-1.0.0 \
121                 pretty_assertions-0.6.1 \
122                 proc-macro-hack-0.5.16 \
123                 proc-macro2-1.0.18 \
124                 quick-error-1.2.3 \
125                 quote-1.0.6 \
126                 rand-0.7.3 \
127                 rand_chacha-0.2.2 \
128                 rand_core-0.5.1 \
129                 rand_hc-0.2.0 \
130                 rayon-1.3.0 \
131                 rayon-core-1.7.0 \
132                 regex-1.3.9 \
133                 regex-automata-0.1.9 \
134                 regex-syntax-0.6.18 \
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.16 \
140                 rustc-hash-1.1.0 \
141                 rustc_version-0.2.3 \
142                 ryu-1.0.5 \
143                 same-file-1.0.6 \
144                 scan_fmt-0.2.5 \
145                 scopeguard-1.1.0 \
146                 semver-0.9.0 \
147                 semver-parser-0.7.0 \
148                 serde-1.0.111 \
149                 serde_derive-1.0.111 \
150                 serde_json-1.0.53 \
151                 shlex-0.1.1 \
152                 signal-hook-0.1.15 \
153                 signal-hook-registry-1.2.0 \
154                 simd_helpers-0.1.0 \
155                 strsim-0.8.0 \
156                 syn-1.0.30 \
157                 termcolor-1.1.0 \
158                 terminal_size-0.1.12 \
159                 termios-0.3.2 \
160                 textwrap-0.11.0 \
161                 thiserror-1.0.19 \
162                 thiserror-impl-1.0.19 \
163                 thread_local-1.0.1 \
164                 time-0.1.43 \
165                 tinytemplate-1.1.0 \
166                 toml-0.2.1 \
167                 toml-0.5.6 \
168                 treeline-0.1.0 \
169                 unicode-width-0.1.7 \
170                 unicode-xid-0.2.0 \
171                 vec_map-0.8.2 \
172                 version_check-0.9.2 \
173                 wait-timeout-0.2.0 \
174                 walkdir-2.3.1 \
175                 wasi-0.9.0+wasi-snapshot-preview1 \
176                 wasm-bindgen-0.2.63 \
177                 wasm-bindgen-backend-0.2.63 \
178                 wasm-bindgen-macro-0.2.63 \
179                 wasm-bindgen-macro-support-0.2.63 \
180                 wasm-bindgen-shared-0.2.63 \
181                 web-sys-0.3.40 \
182                 which-3.1.1 \
183                 winapi-0.3.8 \
184                 winapi-i686-pc-windows-gnu-0.4.0 \
185                 winapi-util-0.1.5 \
186                 winapi-x86_64-pc-windows-gnu-0.4.0 \
187                 y4m-0.5.3
188
189 post-patch:
190 # Extract (snapshot) version from the port instead of CARGO_PKG_VERSION
191         @${REINPLACE_CMD} 's/env!("VERGEN_SEMVER_LIGHTWEIGHT")/"${DISTVERSIONFULL}"/' \
192                 ${WRKSRC}/src/capi.rs ${WRKSRC}/src/lib.rs
193
194 .if !target(post-install)
195 post-install:
196         @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
197 .endif
198
199 .include <bsd.port.mk>