From 4ca0b6325f01b2a3827583f1c585fa35df378fe5 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Thu, 8 Jun 2023 10:48:17 +0300
Subject: [PATCH] =?UTF-8?q?May=20be=20f=C3=ACx=20aarch64=20x265=20=20gcc?=
 =?UTF-8?q?=20build=3F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 cinelerra-5.1/thirdparty/src/x265_3.5.patch1 | 37 ++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 cinelerra-5.1/thirdparty/src/x265_3.5.patch1

diff --git a/cinelerra-5.1/thirdparty/src/x265_3.5.patch1 b/cinelerra-5.1/thirdparty/src/x265_3.5.patch1
new file mode 100644
index 00000000..e7acbec8
--- /dev/null
+++ b/cinelerra-5.1/thirdparty/src/x265_3.5.patch1
@@ -0,0 +1,37 @@
+From 0b75c44c10e605fe9e9ebed58f04a46271131827 Mon Sep 17 00:00:00 2001
+From: mahesh pittala <mahesh@multicorewareinc.com>
+Date: Tue, 13 Sep 2022 09:12:28 +0530
+Subject: [PATCH] Fix 32bit and 64bit builds generation for ARM
+
+---
+ build/aarch64-linux/crosscompile.cmake | 2 +-
+ build/arm-linux/make-Makefiles.bash    | 2 +-
+ source/common/version.cpp              | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/build/aarch64-linux/crosscompile.cmake b/build/aarch64-linux/crosscompile.cmake
+index 41c8217f2..17f1d3bb5 100644
+--- a/build/aarch64-linux/crosscompile.cmake
++++ b/build/aarch64-linux/crosscompile.cmake
+@@ -3,7 +3,7 @@
+ # Please report bugs on bitbucket
+ # Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source
+ 
+-set(CROSS_COMPILE_ARM 1)
++set(CROSS_COMPILE_ARM64 1)
+ set(CMAKE_SYSTEM_NAME Linux)
+ set(CMAKE_SYSTEM_PROCESSOR aarch64)
+ 
+diff --git a/build/arm-linux/make-Makefiles.bash b/build/arm-linux/make-Makefiles.bash
+index cd88c4180..c9582da0a 100644
+--- a/build/arm-linux/make-Makefiles.bash
++++ b/build/arm-linux/make-Makefiles.bash
+@@ -1,4 +1,4 @@
+ #!/bin/bash
+ # Run this from within a bash shell
+ 
+-cmake -G "Unix Makefiles" ../../source && ccmake ../../source
++cmake -DCMAKE_TOOLCHAIN_FILE="crosscompile.cmake" -G "Unix Makefiles" ../../source && ccmake ../../source
+-- 
+2.41.0
+
-- 
2.41.0

