diff options
| -rw-r--r-- | ports/ffmpeg/0014-avfilter-dependency-fix.patch | 23 | ||||
| -rw-r--r-- | ports/ffmpeg/CONTROL | 2 | ||||
| -rw-r--r-- | ports/ffmpeg/FindFFMPEG.cmake.in | 47 | ||||
| -rw-r--r-- | ports/ffmpeg/portfile.cmake | 1 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/f-/ffmpeg.json | 5 |
6 files changed, 55 insertions, 25 deletions
diff --git a/ports/ffmpeg/0014-avfilter-dependency-fix.patch b/ports/ffmpeg/0014-avfilter-dependency-fix.patch new file mode 100644 index 000000000..bc9dc0219 --- /dev/null +++ b/ports/ffmpeg/0014-avfilter-dependency-fix.patch @@ -0,0 +1,23 @@ +diff --git a/configure b/configure +index a092a6b457..41e55b4101 100755 +--- a/configure ++++ b/configure +@@ -3666,6 +3666,18 @@ vpp_qsv_filter_select="qsvvpp" + xfade_opencl_filter_deps="opencl" + yadif_cuda_filter_deps="ffnvcodec" + yadif_cuda_filter_deps_any="cuda_nvcc cuda_llvm" ++ametadata_filter_deps="avformat" ++metadata_filter_deps="avformat" ++headphone_filter_deps="avcodec" ++headphone_filter_select="fft" ++showspatial_filter_deps="avcodec" ++showspatial_filter_select="fft" ++superequalizer_filter_deps="avcodec" ++superequalizer_filter_select="rdft" ++surround_filter_deps="avcodec" ++surround_filter_select="rdft" ++sinc_filter_deps="avcodec" ++sinc_filter_select="rdft" + + # examples + avio_list_dir_deps="avformat avutil" diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index c58ac7439..dc32fe3a4 100644 --- a/ports/ffmpeg/CONTROL +++ b/ports/ffmpeg/CONTROL @@ -1,6 +1,6 @@ Source: ffmpeg Version: 4.3.1 -Port-Version: 10 +Port-Version: 11 Homepage: https://ffmpeg.org Description: a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations. diff --git a/ports/ffmpeg/FindFFMPEG.cmake.in b/ports/ffmpeg/FindFFMPEG.cmake.in index a0b4d2005..c06b355d3 100644 --- a/ports/ffmpeg/FindFFMPEG.cmake.in +++ b/ports/ffmpeg/FindFFMPEG.cmake.in @@ -62,6 +62,16 @@ function(select_library_configurations_from_targets) set(${_slc_BASENAME}_LIBRARIES ${${_slc_BASENAME}_LIBRARIES} PARENT_SCOPE) endfunction() +# for finding system libraries (e.g. Apple framework libraries) +function(find_platform_dependent_libraries) + cmake_parse_arguments(_fpd "" "" "NAMES" ${ARGN}) + foreach(_name ${_fpd_NAMES}) + find_library(${_name}_LIBRARY ${_name} REQUIRED) + list(APPEND FFMPEG_PLATFORM_DEPENDENT_LIBS ${${_name}_LIBRARY}) + endforeach() + set(FFMPEG_PLATFORM_DEPENDENT_LIBS ${FFMPEG_PLATFORM_DEPENDENT_LIBS} PARENT_SCOPE) +endfunction() + set(FFMPEG_VERSION "4.3.1") find_dependency(Threads) @@ -230,45 +240,36 @@ macro(FFMPEG_FIND varname shortname headername) endmacro(FFMPEG_FIND) if(APPLE) - find_library(VT_UNIT VideoToolbox) - if (NOT VT_UNIT) - message(FATAL_ERROR "VideoToolbox not found") + find_platform_dependent_libraries(NAMES VideoToolbox CoreServices CoreMedia CoreVideo) + if(@ENABLE_OPENCL@) + find_platform_dependent_libraries(NAMES OpenCL) endif() - find_library(AT_UNIT AudioToolbox) - if (NOT AT_UNIT) - message(FATAL_ERROR "AudioToolbox not found") + if(@ENABLE_AVDEVICE@) + find_platform_dependent_libraries(NAMES AVFoundation CoreFoundation CoreGraphics Foundation) endif() - find_library(SEC_UNIT Security) - if (NOT SEC_UNIT) - message(FATAL_ERROR "Security not found") + if(@ENABLE_AVFILTER@) + find_platform_dependent_libraries(NAMES OpenGL AppKit CoreImage) endif() - find_library(CF_UNIT CoreFoundation) - if (NOT CF_UNIT) - message(FATAL_ERROR "CoreFoundation not found") + if(@ENABLE_AVFORMAT@) + find_platform_dependent_libraries(NAMES Security) endif() - find_library(CM_UNIT CoreMedia) - if (NOT CM_UNIT) - message(FATAL_ERROR "CoreMedia not found") + if(@ENABLE_AVCODEC@) + find_platform_dependent_libraries(NAMES AudioToolbox) endif() - find_library(CV_UNIT CoreVideo) - if (NOT CV_UNIT) - message(FATAL_ERROR "CoreVideo not found") - endif() - list(APPEND FFMPEG_PLATFORM_DEPENDENT_LIBS ${VT_UNIT} ${AT_UNIT} ${SEC_UNIT} ${CF_UNIT} ${CM_UNIT} ${CV_UNIT}) endif() if(@ENABLE_AVDEVICE@) FFMPEG_FIND(libavdevice avdevice avdevice.h) endif() +if(@ENABLE_AVFILTER@) + FFMPEG_FIND(libavfilter avfilter avfilter.h) +endif() if(@ENABLE_AVFORMAT@) FFMPEG_FIND(libavformat avformat avformat.h) endif() if(@ENABLE_AVCODEC@) FFMPEG_FIND(libavcodec avcodec avcodec.h) endif() -if(@ENABLE_AVFILTER@) - FFMPEG_FIND(libavfilter avfilter avfilter.h) -endif() if(@ENABLE_AVRESAMPLE@) FFMPEG_FIND(libavresample avresample avresample.h) endif() diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index 3f0b7f457..2e38ee053 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -17,6 +17,7 @@ vcpkg_from_github( 0011-Fix-x265-detection.patch 0012-Fix-ssl-110-detection.patch 0013-define-WINVER.patch + 0014-avfilter-dependency-fix.patch ) if (SOURCE_PATH MATCHES " ") diff --git a/versions/baseline.json b/versions/baseline.json index 66c34cd4f..bf45e9335 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1910,7 +1910,7 @@ }, "ffmpeg": { "baseline": "4.3.1", - "port-version": 10 + "port-version": 11 }, "ffnvcodec": { "baseline": "10.0.26.0", diff --git a/versions/f-/ffmpeg.json b/versions/f-/ffmpeg.json index a2ddd9b00..2b34eb5c3 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "985bdde5191e69e38ecda3472663614fcd491052", + "version-string": "4.3.1", + "port-version": 11 + }, + { "git-tree": "93395ca1a700faa1c8c6ce04ef4a6dfa26e9fade", "version-string": "4.3.1", "port-version": 10 |
