ports/multimedia/libopenshot/files/patch-src_CMakeLists.txt
Tatsuki Makino 985f2bd893 multimedia/{,lib}openshot: fix OPTIONS and audio output device selection
Documents that require doxygen have been separated into DOXYGEN option.
It is off by default.
This should fix an issue where no matter what we choose, we could only
output audio to the default sink.
In particular, it is a fix that has become necessary to make JACK work well.
Fixed stage-qa error - link with libpython.

PR:	277648
2024-05-06 18:05:33 +03:00

27 lines
1 KiB
Text

--- src/CMakeLists.txt.orig 2023-03-27 18:48:43 UTC
+++ src/CMakeLists.txt
@@ -516,6 +516,24 @@ See https://github.com/opencv/opencv/issues/19260]])
endif() # ENABLE_OPENCV
add_feature_info("OpenCV algorithms" ENABLE_OPENCV "Use OpenCV algorithms")
+# EXECINFO
+include(CheckFunctionExists)
+include(CheckLibraryExists)
+check_function_exists(backtrace FUNCTION_BACKTRACE_FOUND)
+if(NOT FUNCTION_BACKTRACE_FOUND)
+ find_library(EXECINFO_LIBRARY NAMES execinfo)
+ if(EXECINFO_LIBRARY)
+ unset(FUNCTION_BACKTRACE_FOUND CACHE)
+ check_library_exists(${EXECINFO_LIBRARY} backtrace "" FUNCTION_BACKTRACE_FOUND)
+ endif(EXECINFO_LIBRARY)
+endif(NOT FUNCTION_BACKTRACE_FOUND)
+if(NOT FUNCTION_BACKTRACE_FOUND)
+ message(FATAL_ERROR "backtrace - ${FUNCTION_BACKTRACE_FOUND}")
+endif(NOT FUNCTION_BACKTRACE_FOUND)
+if(EXECINFO_LIBRARY)
+ target_link_libraries(openshot PRIVATE ${EXECINFO_LIBRARY})
+endif(EXECINFO_LIBRARY)
+
############### LINK LIBRARY #################
# Link remaining dependency libraries
if(DEFINED PROFILER)