Files
packages/anda/multimedia/x265/x265-high-bit-depth-soname.patch
T
Raboneko 1871aadac9 chore(x265): Update build (#12773) (#12778)
(cherry picked from commit 59ccf2c5bc)

Co-authored-by: Gilver <roachy@fyralabs.com>
2026-05-31 22:55:52 -05:00

33 lines
1.3 KiB
Diff

diff -Naur x265_4.2.old/source/CMakeLists.txt x265_4.2/source/CMakeLists.txt
--- x265_4.2.old/source/CMakeLists.txt 2026-05-22 09:31:41.395284685 +0200
+++ x265_4.2/source/CMakeLists.txt 2026-05-22 09:31:41.446248583 +0200
@@ -1075,7 +1075,15 @@
if(MSVC)
set_target_properties(x265-shared PROPERTIES OUTPUT_NAME libx265)
else()
- set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265)
+ if(HIGH_BIT_DEPTH)
+ if(MAIN12)
+ set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265_main12)
+ else()
+ set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265_main10)
+ endif()
+ else()
+ set_target_properties(x265-shared PROPERTIES OUTPUT_NAME x265)
+ endif(HIGH_BIT_DEPTH)
endif()
if(UNIX)
set_target_properties(x265-shared PROPERTIES VERSION ${X265_BUILD})
diff -Naur x265_4.2.old/source/encoder/api.cpp x265_4.2/source/encoder/api.cpp
--- x265_4.2.old/source/encoder/api.cpp 2026-05-22 09:31:41.431540093 +0200
+++ x265_4.2/source/encoder/api.cpp 2026-05-22 09:31:41.446517920 +0200
@@ -1119,7 +1119,7 @@
#define ext ".dylib"
#else
#include <dlfcn.h>
-#define ext ".so"
+#define ext ".so." xstr(X265_BUILD)
#endif
#if defined(__GNUC__) && __GNUC__ >= 8
#pragma GCC diagnostic ignored "-Wcast-function-type"