0004-dependencies.patch 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. diff --git a/configure b/configure
  2. index a8b74e0..c99f41c 100755
  3. --- a/configure
  4. +++ b/configure
  5. @@ -6633,7 +6633,7 @@ fi
  6. enabled zlib && { check_pkg_config zlib zlib "zlib.h" zlibVersion ||
  7. check_lib zlib zlib.h zlibVersion -lz; }
  8. -enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
  9. +enabled bzlib && require_pkg_config bzlib bzip2 bzlib.h BZ2_bzlibVersion
  10. enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma
  11. enabled zlib && test_exec $zlib_extralibs <<EOF && enable zlib_gzip
  12. @@ -6757,7 +6757,8 @@ if enabled libmfx; then
  13. fi
  14. enabled libmodplug && require_pkg_config libmodplug libmodplug libmodplug/modplug.h ModPlug_Load
  15. -enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame $libm_extralibs
  16. +enabled libmp3lame && { check_lib libmp3lame lame/lame.h lame_set_VBR_quality -lmp3lame $libm_extralibs ||
  17. + require libmp3lame lame/lame.h lame_set_VBR_quality -llibmp3lame-static -llibmpghip-static $libm_extralibs; }
  18. enabled libmysofa && { check_pkg_config libmysofa libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine ||
  19. require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }
  20. enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif ||
  21. @@ -6772,7 +6773,7 @@ require_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader; }
  22. enabled libopenh264 && require_pkg_config libopenh264 "openh264 >= 1.3.0" wels/codec_api.h WelsGetCodecVersion
  23. enabled libopenjpeg && { check_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version ||
  24. { require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } }
  25. -enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++"
  26. +enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create
  27. enabled libopenvino && { { check_pkg_config libopenvino openvino openvino/c/openvino.h ov_core_create && enable openvino2; } ||
  28. { check_pkg_config libopenvino openvino c_api/ie_c_api.h ie_c_api_version ||
  29. require libopenvino c_api/ie_c_api.h ie_c_api_version -linference_engine_c_api; } }
  30. @@ -6796,8 +6797,8 @@ enabled libshaderc && require_pkg_config spirv_compiler "shaderc >= 2019.
  31. enabled libshine && require_pkg_config libshine shine shine/layer3.h shine_encode_buffer
  32. enabled libsmbclient && { check_pkg_config libsmbclient smbclient libsmbclient.h smbc_init ||
  33. require libsmbclient libsmbclient.h smbc_init -lsmbclient; }
  34. -enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
  35. -enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr
  36. +enabled libsnappy && require_pkg_config libsnappy snappy snappy-c.h snappy_compress
  37. +enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr $libm_extralibs
  38. enabled libssh && require_pkg_config libssh "libssh >= 0.6.0" libssh/sftp.h sftp_init
  39. enabled libspeex && require_pkg_config libspeex speex speex/speex.h speex_decoder_init
  40. enabled libsrt && require_pkg_config libsrt "srt >= 1.3.0" srt/srt.h srt_socket
  41. @@ -6880,6 +6881,8 @@ enabled openal && { check_pkg_config openal "openal >= 1.1" "AL/al.h"
  42. enabled opencl && { check_pkg_config opencl OpenCL CL/cl.h clEnqueueNDRangeKernel ||
  43. check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel "-framework OpenCL" ||
  44. check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
  45. + check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL -lAdvapi32 -lOle32 -lCfgmgr32||
  46. + check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL -pthread -ldl ||
  47. die "ERROR: opencl not found"; } &&
  48. { test_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
  49. test_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
  50. @@ -7204,10 +7207,10 @@ enabled amf &&
  51. "(AMF_VERSION_MAJOR << 48 | AMF_VERSION_MINOR << 32 | AMF_VERSION_RELEASE << 16 | AMF_VERSION_BUILD_NUM) >= 0x0001000400210000"
  52. # Funny iconv installations are not unusual, so check it after all flags have been set
  53. -if enabled libc_iconv; then
  54. +if enabled libc_iconv && disabled iconv; then
  55. check_func_headers iconv.h iconv
  56. elif enabled iconv; then
  57. - check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv
  58. + check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv || check_lib iconv iconv.h iconv -liconv -lcharset
  59. fi
  60. enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"