|
1 | 1 | diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake |
2 | | -index 519b343af0..7740bd7c5a 100644 |
| 2 | +index 88598976fb..845f007c7d 100644 |
3 | 3 | --- a/ports/ffmpeg/portfile.cmake |
4 | 4 | +++ b/ports/ffmpeg/portfile.cmake |
5 | | -@@ -29,7 +29,20 @@ if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQU |
6 | | - vcpkg_add_to_path("${NASM_EXE_PATH}") |
7 | | - endif() |
8 | | - |
9 | | --set(OPTIONS "--enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect") |
10 | | -+set(OPTIONS "--enable-pic --disable-doc --enable-runtime-cpudetect --disable-autodetect") |
11 | | -+ |
12 | | -+# Only enable what is used by Vita3K |
13 | | -+string(APPEND OPTIONS " --disable-everything") |
| 5 | +@@ -32,6 +32,19 @@ endif() |
| 6 | + |
| 7 | + set(OPTIONS "--enable-pic --disable-doc --enable-runtime-cpudetect --disable-autodetect") |
| 8 | + |
| 9 | ++# Only enable what is used by RPCS3 |
| 10 | ++string(APPEND OPTIONS " --disable-everything --disable-network") |
14 | 11 | +string(APPEND OPTIONS " --enable-decoder=aac --enable-decoder=aac_latm --enable-decoder=atrac3 --enable-decoder=atrac3p --enable-decoder=atrac9 --enable-decoder=mp3 --enable-decoder=pcm_s16le --enable-decoder=pcm_s8") |
15 | 12 | +string(APPEND OPTIONS " --enable-decoder=mov --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=mpeg2video --enable-decoder=mjpeg --enable-decoder=mjpegb") |
16 | | -+string(APPEND OPTIONS " --enable-encoder=pcm_s16le") |
17 | | -+string(APPEND OPTIONS " --enable-encoder=ffv1 --enable-encoder=mpeg4 --enable-encoder=mjpeg") |
18 | | -+string(APPEND OPTIONS " --enable-muxer=avi") |
| 13 | ++string(APPEND OPTIONS " --enable-encoder=pcm_s16le --enable-encoder=mp3 --enable-encoder=ac3 --enable-encoder=aac") |
| 14 | ++string(APPEND OPTIONS " --enable-encoder=ffv1 --enable-encoder=mpeg4 --enable-encoder=mjpeg --enable-encoder=h264") |
| 15 | ++string(APPEND OPTIONS " --enable-muxer=avi --enable-muxer=h264 --enable-muxer=mjpeg --enable-muxer=mp4") |
19 | 16 | +string(APPEND OPTIONS " --enable-demuxer=h264 --enable-demuxer=m4v --enable-demuxer=mp3 --enable-demuxer=mpegvideo --enable-demuxer=mpegps --enable-demuxer=mjpeg --enable-demuxer=mov --enable-demuxer=avi --enable-demuxer=aac --enable-demuxer=pmp --enable-demuxer=oma --enable-demuxer=pcm_s16le --enable-demuxer=pcm_s8 --enable-demuxer=wav") |
20 | 17 | +string(APPEND OPTIONS " --enable-parser=h264 --enable-parser=mpeg4video --enable-parser=mpegaudio --enable-parser=mpegvideo --enable-parser=mjpeg --enable-parser=aac --enable-parser=aac_latm") |
21 | 18 | +string(APPEND OPTIONS " --enable-protocol=file") |
22 | 19 | +string(APPEND OPTIONS " --enable-bsf=mjpeg2jpeg") |
23 | 20 | +string(APPEND OPTIONS " --enable-indev=dshow") |
24 | | - |
| 21 | ++ |
25 | 22 | if(VCPKG_TARGET_IS_MINGW) |
26 | 23 | if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") |
27 | | -@@ -61,7 +74,7 @@ endif() |
28 | | - vcpkg_cmake_get_vars(cmake_vars_file) |
29 | | - include("${cmake_vars_file}") |
30 | | - if(VCPKG_DETECTED_MSVC) |
31 | | -- string(APPEND OPTIONS " --disable-inline-asm") # clang-cl has inline assembly but this leads to undefined symbols. |
32 | | -+ # string(APPEND OPTIONS " --disable-inline-asm") # clang-cl has inline assembly but this leads to undefined symbols. |
33 | | - set(OPTIONS "--toolchain=msvc ${OPTIONS}") |
34 | | - # This is required because ffmpeg depends upon optimizations to link correctly |
35 | | - string(APPEND VCPKG_COMBINED_C_FLAGS_DEBUG " -O2") |
36 | | -@@ -713,6 +726,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") |
| 24 | + string(APPEND OPTIONS " --target-os=mingw32") |
| 25 | +@@ -425,11 +438,7 @@ if("openssl" IN_LIST FEATURES) |
| 26 | + set(OPTIONS "${OPTIONS} --enable-openssl") |
| 27 | + set(WITH_OPENSSL ON) |
| 28 | + else() |
| 29 | +- set(OPTIONS "${OPTIONS} --disable-openssl") |
| 30 | +- if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP) |
| 31 | +- string(APPEND OPTIONS " --enable-schannel") |
| 32 | +- set(WITH_SCHANNEL ON) |
| 33 | +- endif() |
| 34 | ++ set(OPTIONS "${OPTIONS} --disable-openssl --disable-schannel") |
| 35 | + endif() |
| 36 | + |
| 37 | + if("opus" IN_LIST FEATURES) |
| 38 | +@@ -748,6 +757,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") |
37 | 39 | # We use response files here as the only known way to handle spaces in paths |
38 | 40 | set(crsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cflags.rsp") |
39 | 41 | string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE}") |
40 | 42 | + if(VCPKG_TARGET_IS_OSX) |
41 | | -+ # macosx-version-min version is set with current macOS version. So replace them to 11.0 |
| 43 | ++ # macosx-version-min version is set with current macOS version. So replace them to 14.0 |
42 | 44 | + string(REGEX REPLACE "-mmacosx-version-min=[0-9]+.[0-9]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}") |
43 | | -+ string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED " -mmacosx-version-min=11.0") |
| 45 | ++ string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED " -mmacosx-version-min=14.0") |
44 | 46 | + endif() |
45 | 47 | file(WRITE "${crsp}" "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}") |
46 | 48 | set(ldrsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/ldflags.rsp") |
|
0 commit comments