1
1
diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake
2
- index 35bac875b..b16d9cb64 100644
2
+ index e536d1a449..09ccc915e4 100644
3
3
--- a/ports/ffmpeg/portfile.cmake
4
4
+++ b/ports/ffmpeg/portfile.cmake
5
- @@ -42 ,7 +42 ,20 @@ else()
6
- set(LIB_PATH_VAR "LIBRARY_PATH ")
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
7
endif()
8
8
9
9
- set(OPTIONS "--enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect")
10
10
+ set(OPTIONS "--enable-pic --disable-doc --enable-runtime-cpudetect --disable-autodetect")
11
11
+
12
- + # Only enable what is used by Vita3K
12
+ + # Only enable what is used by RPCS3
13
13
+ string(APPEND OPTIONS " --disable-everything")
14
14
+ 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
15
+ string(APPEND OPTIONS " --enable-decoder=mov --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=mpeg2video --enable-decoder=mjpeg --enable-decoder=mjpegb")
@@ -22,9 +22,9 @@ index 35bac875b..b16d9cb64 100644
22
22
+ string(APPEND OPTIONS " --enable-bsf=mjpeg2jpeg")
23
23
+ string(APPEND OPTIONS " --enable-indev=dshow")
24
24
25
- if(VCPKG_TARGET_IS_WINDOWS )
26
- vcpkg_acquire_msys(MSYS_ROOT PACKAGES automake1.16 )
27
- @@ -80 ,7 +93 ,7 @@ endif()
25
+ if(VCPKG_TARGET_IS_MINGW )
26
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" )
27
+ @@ -61 ,7 +74 ,7 @@ endif()
28
28
vcpkg_cmake_get_vars(cmake_vars_file)
29
29
include("${cmake_vars_file}")
30
30
if(VCPKG_DETECTED_MSVC)
@@ -33,14 +33,14 @@ index 35bac875b..b16d9cb64 100644
33
33
set(OPTIONS "--toolchain=msvc ${OPTIONS}")
34
34
# This is required because ffmpeg depends upon optimizations to link correctly
35
35
string(APPEND VCPKG_COMBINED_C_FLAGS_DEBUG " -O2")
36
- @@ -574 ,6 +587 ,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
36
+ @@ -713 ,6 +726 ,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
37
37
# We use response files here as the only known way to handle spaces in paths
38
38
set(crsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cflags.rsp")
39
39
string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE}")
40
40
+ if(VCPKG_TARGET_IS_OSX)
41
- + # macosx-version-min version is set with current macOS version. So replace them to 11 .0
41
+ + # macosx-version-min version is set with current macOS version. So replace them to 14 .0
42
42
+ 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")
43
+ + string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED " -mmacosx-version-min=14 .0")
44
44
+ endif()
45
45
file(WRITE "${crsp}" "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}")
46
46
set(ldrsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/ldflags.rsp")
0 commit comments