From 47a132e8ed62ffcfaf05c47fd744e3f0c1964df7 Mon Sep 17 00:00:00 2001 From: Vinogradov Daniil Date: Wed, 21 Feb 2024 18:54:06 +0100 Subject: [PATCH] [FFMpeg] better iOS support (#36835) If this PR updates an existing port, please uncomment and fill out this checklist: - [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [X] SHA512s are updated for each updated download. - [X] The "supports" clause reflects platforms that may be fixed by this new version. - [X] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [X] Any patches that are no longer applied are deleted from the port's directory. - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file. --- ports/ffmpeg/portfile.cmake | 4 ++++ ports/ffmpeg/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/f-/ffmpeg.json | 5 +++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index 82eca0f1e0ddc0..3d64bf64a80c97 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -56,6 +56,8 @@ elseif(VCPKG_TARGET_IS_WINDOWS) string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-dxva2 --enable-mediafoundation") elseif(VCPKG_TARGET_IS_OSX) string(APPEND OPTIONS " --target-os=darwin --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox --enable-videotoolbox") +elseif(VCPKG_TARGET_IS_IOS) + string(APPEND OPTIONS " --enable-avfoundation --enable-coreimage --enable-videotoolbox") elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Android") string(APPEND OPTIONS " --target-os=android --enable-jni --enable-mediacodec") elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "QNX") @@ -398,6 +400,8 @@ else() string(APPEND OPTIONS " --enable-schannel") elseif(VCPKG_TARGET_IS_OSX) string(APPEND OPTIONS " --enable-securetransport") + elseif(VCPKG_TARGET_IS_IOS) + string(APPEND OPTIONS " --enable-securetransport") endif() endif() diff --git a/ports/ffmpeg/vcpkg.json b/ports/ffmpeg/vcpkg.json index 7499e6135886ec..ed4d7f723f29db 100644 --- a/ports/ffmpeg/vcpkg.json +++ b/ports/ffmpeg/vcpkg.json @@ -1,6 +1,7 @@ { "name": "ffmpeg", "version": "6.1.1", + "port-version": 1, "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/versions/baseline.json b/versions/baseline.json index 6b8e2d3bb2a878..0a308b1f53a4a7 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2638,7 +2638,7 @@ }, "ffmpeg": { "baseline": "6.1.1", - "port-version": 0 + "port-version": 1 }, "ffnvcodec": { "baseline": "11.1.5.3", diff --git a/versions/f-/ffmpeg.json b/versions/f-/ffmpeg.json index f2d8064f6475a6..551e326a1b7a16 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "830c58775efe5c5e501bad472af97b064b3446bc", + "version": "6.1.1", + "port-version": 1 + }, { "git-tree": "1bb35d5c0d560a56e6429ca412c7bc5f3e55e930", "version": "6.1.1",