git: f6e17b1726ba - main - multimedia/av1an: fix build on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jan 2022 18:17:54 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=f6e17b1726baff072878a53cdcd19e31a9d33454 commit f6e17b1726baff072878a53cdcd19e31a9d33454 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-01-04 18:11:39 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-01-04 18:11:39 +0000 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. --- ...crates_ffmpeg-sys-next-4.4.0_src_avutil_pixfmt.rs | 10 ++++++++++ multimedia/av1an/files/patch-powerpc | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/multimedia/av1an/files/patch-cargo-crates_ffmpeg-sys-next-4.4.0_src_avutil_pixfmt.rs b/multimedia/av1an/files/patch-cargo-crates_ffmpeg-sys-next-4.4.0_src_avutil_pixfmt.rs new file mode 100644 index 000000000000..b567c08cd69f --- /dev/null +++ b/multimedia/av1an/files/patch-cargo-crates_ffmpeg-sys-next-4.4.0_src_avutil_pixfmt.rs @@ -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; diff --git a/multimedia/av1an/files/patch-powerpc b/multimedia/av1an/files/patch-powerpc new file mode 100644 index 000000000000..89cf5d021970 --- /dev/null +++ b/multimedia/av1an/files/patch-powerpc @@ -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",