1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00

multimedia/av1an: fix build on big-endian

1. patch-powerpc is similar to the one other ports use.
2. Additionally, add a missing endianness check.
This commit is contained in:
Piotr Kubaj 2022-01-04 18:11:39 +00:00
parent 4b3b879fbb
commit f6e17b1726
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- cargo-crates/ffmpeg-sys-next-4.4.0/src/avutil/pixfmt.rs.orig 2022-01-03 20:02:01 UTC
+++ cargo-crates/ffmpeg-sys-next-4.4.0/src/avutil/pixfmt.rs
@@ -35,6 +35,7 @@ pub const AV_PIX_FMT_BGR555: AVPixelFormat = AV_PIX_FM
#[cfg(target_endian = "little")]
pub const AV_PIX_FMT_BGR444: AVPixelFormat = AV_PIX_FMT_BGR444LE;
+#[cfg(target_endian = "little")]
pub const AV_PIX_FMT_YUV420P9: AVPixelFormat = AV_PIX_FMT_YUV420P9LE;
#[cfg(target_endian = "little")]
pub const AV_PIX_FMT_YUV422P9: AVPixelFormat = AV_PIX_FMT_YUV422P9LE;

View File

@ -0,0 +1,20 @@
--- cargo-crates/crossbeam-epoch-0.9.5/no_atomic.rs.orig 1970-01-01 00:00:00 UTC
+++ cargo-crates/crossbeam-epoch-0.9.5/no_atomic.rs
@@ -30,6 +30,7 @@ const NO_ATOMIC_64: &[&str] = &[
"mipsel-unknown-none",
"mipsisa32r6-unknown-linux-gnu",
"mipsisa32r6el-unknown-linux-gnu",
+ "powerpc-unknown-freebsd",
"powerpc-unknown-linux-gnu",
"powerpc-unknown-linux-gnuspe",
"powerpc-unknown-linux-musl",
--- cargo-crates/crossbeam-utils-0.8.5/no_atomic.rs.orig 1970-01-01 00:00:00 UTC
+++ cargo-crates/crossbeam-utils-0.8.5/no_atomic.rs
@@ -30,6 +30,7 @@ const NO_ATOMIC_64: &[&str] = &[
"mipsel-unknown-none",
"mipsisa32r6-unknown-linux-gnu",
"mipsisa32r6el-unknown-linux-gnu",
+ "powerpc-unknown-freebsd",
"powerpc-unknown-linux-gnu",
"powerpc-unknown-linux-gnuspe",
"powerpc-unknown-linux-musl",