+AUTOBUILD_CONFIGURE_EXTRA="${AUTOBUILD_CONFIGURE_EXTRA:-} --disable-libx265_static --disable-libx265"
source Autobuild/aarch64.sh
source Autobuild/bionic.sh
+AUTOBUILD_CONFIGURE_EXTRA="${AUTOBUILD_CONFIGURE_EXTRA:-} --disable-libx265_static --disable-libx265"
source Autobuild/aarch64.sh
source Autobuild/buster.sh
+AUTOBUILD_CONFIGURE_EXTRA="${AUTOBUILD_CONFIGURE_EXTRA:-} --disable-libx265_static --disable-libx265"
source Autobuild/aarch64.sh
source Autobuild/focal.sh
+AUTOBUILD_CONFIGURE_EXTRA="${AUTOBUILD_CONFIGURE_EXTRA:-} --disable-libx265_static --disable-libx265"
source Autobuild/armv7l.sh
EXTRA_X265_CMAKE_OPTS="${EXTRA_X265_CMAKE_OPTS:-} -DCROSS_COMPILE_ARM=0"
source Autobuild/raspiosbookworm.sh
+AUTOBUILD_CONFIGURE_EXTRA="${AUTOBUILD_CONFIGURE_EXTRA:-} --disable-libx265_static --disable-libx265"
source Autobuild/aarch64.sh
source Autobuild/stretch.sh
+AUTOBUILD_CONFIGURE_EXTRA="${AUTOBUILD_CONFIGURE_EXTRA:-} --disable-libx265_static --disable-libx265"
source Autobuild/aarch64.sh
source Autobuild/xenial.sh
LIBX265_SHA1 = 11880a3aa9e4ee618f539a2d6a8ece0ea442f505
LIBX265_DIFFS = libx265.pic.diff
LIBX265_DIFFS += libx265-silence.patch
+LIBX265_DIFFS += libx265-substring.patch
+LIBX265_DIFFS += libx265-armv9.patch
LIBVPX_VER = 1.14.1
LIBVPX = libvpx-$(LIBVPX_VER)
--- /dev/null
+diff -urN ../x265_4.1/source/CMakeLists.txt ./source/CMakeLists.txt
+--- ../x265_4.1/source/CMakeLists.txt 2025-05-11 13:30:50.896442393 +0200
++++ ./source/CMakeLists.txt 2025-05-11 12:55:08.021237448 +0200
+@@ -103,8 +103,10 @@
+ # Neon I8MM is mandatory from Armv8.6.
+ set(AARCH64_NEON_I8MM_FLAG "-march=armv8.2-a+dotprod+i8mm")
+ set(AARCH64_SVE_FLAG "-march=armv8.2-a+dotprod+i8mm+sve")
+- # SVE2 is only available from Armv9.0, and armv9-a implies +dotprod and +sve.
+- set(AARCH64_SVE2_FLAG "-march=armv9-a+i8mm+sve2")
++ if((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12) OR (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 12))
++ # SVE2 is only available from Armv9.0, and armv9-a implies +dotprod and +sve.
++ set(AARCH64_SVE2_FLAG "-march=armv9-a+i8mm+sve2")
++ endif()
+ else()
+ message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}` is unknown")
+ message(STATUS "Please add this value near ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE}")
--- /dev/null
+diff -urN ../x265_4.1/source/cmake/Version.cmake ./source/cmake/Version.cmake
+--- ../x265_4.1/source/cmake/Version.cmake 2024-11-22 13:07:34.000000000 +0100
++++ ./source/cmake/Version.cmake 2025-05-11 09:57:56.402729493 +0200
+@@ -126,7 +126,7 @@
+ #for x265 the repository changeset has to be a tag id or commit id after the tag
+ #hence mandating it's presence in version file always for valid tag distances.
+ if(DEFINED git_repositorychangeset)
+- string(SUBSTRING "${git_repositorychangeset}" 0 9 X265_REVISION_ID)
++ string(REGEX MATCH "^.{1,9}" X265_REVISION_ID "${git_repositorychangeset}")
+ else()
+ message(WARNING "X265 LATEST COMMIT TIP INFORMATION NOT AVAILABLE")
+ endif()