opencv-4.9.0-cmake-cleanup.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From: Paul Zander <negril.nx+gentoo@gmail.com>
  2. don't check for deprecated libavresample
  3. fix openjpeg version string
  4. diff --git a/modules/videoio/cmake/detect_ffmpeg.cmake b/modules/videoio/cmake/detect_ffmpeg.cmake
  5. index aa669f3..208dcc3 100644
  6. --- a/modules/videoio/cmake/detect_ffmpeg.cmake
  7. +++ b/modules/videoio/cmake/detect_ffmpeg.cmake
  8. @@ -27,7 +27,7 @@ set(_used_ffmpeg_libraries ${_required_ffmpeg_libraries})
  9. if(NOT HAVE_FFMPEG AND PKG_CONFIG_FOUND)
  10. ocv_check_modules(FFMPEG libavcodec libavformat libavutil libswscale)
  11. if(FFMPEG_FOUND)
  12. - ocv_check_modules(FFMPEG_libavresample libavresample) # optional
  13. + # ocv_check_modules(FFMPEG_libavresample libavresample) # optional
  14. if(FFMPEG_libavresample_FOUND)
  15. list(APPEND FFMPEG_LIBRARIES ${FFMPEG_libavresample_LIBRARIES})
  16. list(APPEND _used_ffmpeg_libraries libavresample)
  17. diff --git a/CMakeLists.txt b/CMakeLists.txt
  18. index cbb302a..eab0a0a 100644
  19. --- a/CMakeLists.txt
  20. +++ b/CMakeLists.txt
  21. @@ -1472,7 +1472,7 @@ endif()
  22. if(HAVE_OPENJPEG)
  23. status(" JPEG 2000:" OpenJPEG_FOUND
  24. - THEN "OpenJPEG (ver ${OPENJPEG_VERSION})"
  25. + THEN "OpenJPEG (ver ${OPENJPEG_MAJOR_VERSION}.${OPENJPEG_MINOR_VERSION}.${OPENJPEG_BUILD_VERSION})"
  26. ELSE "build (ver ${OPENJPEG_VERSION})"
  27. )
  28. elseif(HAVE_JASPER)