diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index 6c0b0ca216991d..dc4c2d215ce365 100644 --- a/ports/ffmpeg/CONTROL +++ b/ports/ffmpeg/CONTROL @@ -1,6 +1,6 @@ Source: ffmpeg Version: 4.3.2 -Port-Version: 3 +Port-Version: 4 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/portfile.cmake b/ports/ffmpeg/portfile.cmake index 23769742a5febd..ca1ac781da9f0f 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -46,7 +46,17 @@ else() set(LIB_PATH_VAR "LIBRARY_PATH") endif() -set(OPTIONS "--enable-asm --enable-x86asm --disable-doc --enable-debug --enable-runtime-cpudetect") +set(OPTIONS "--enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect") + +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") + set(OPTIONS "${OPTIONS} --disable-asm --disable-x86asm") +endif() +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") + set(OPTIONS "${OPTIONS} --enable-asm --disable-x86asm") +endif() +if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") + set(OPTIONS "${OPTIONS} --enable-asm --enable-x86asm") +endif() if(VCPKG_TARGET_IS_WINDOWS) if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") @@ -575,7 +585,7 @@ endif() if(VCPKG_TARGET_IS_WINDOWS) file(GLOB DEF_FILES ${CURRENT_PACKAGES_DIR}/lib/*.def ${CURRENT_PACKAGES_DIR}/debug/lib/*.def) - + if(NOT VCPKG_TARGET_IS_MINGW) if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") set(LIB_MACHINE_ARG /machine:ARM) @@ -603,7 +613,7 @@ if(VCPKG_TARGET_IS_WINDOWS) ) endforeach() endif() - + file(GLOB EXP_FILES ${CURRENT_PACKAGES_DIR}/lib/*.exp ${CURRENT_PACKAGES_DIR}/debug/lib/*.exp) file(GLOB LIB_FILES ${CURRENT_PACKAGES_DIR}/bin/*${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX} ${CURRENT_PACKAGES_DIR}/debug/bin/*${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}) if(VCPKG_TARGET_IS_MINGW) @@ -636,7 +646,7 @@ vcpkg_copy_pdbs() if (VCPKG_TARGET_IS_WINDOWS) # Translate cygpath to local path set(CYGPATH_CMD "${MSYS_ROOT}/usr/bin/cygpath.exe" -w) - + foreach(PKGCONFIG_PATH "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig") file(GLOB PKGCONFIG_FILES "${PKGCONFIG_PATH}/*.pc") foreach(PKGCONFIG_FILE IN LISTS PKGCONFIG_FILES) @@ -665,7 +675,7 @@ if (VCPKG_TARGET_IS_WINDOWS) ) string(REPLACE "\n" "" FIXED_INCLUDE_PATH "${FIXED_INCLUDE_PATH}") file(TO_CMAKE_PATH ${FIXED_INCLUDE_PATH} FIXED_INCLUDE_PATH) - + vcpkg_replace_string("${PKGCONFIG_FILE}" "${prefix_cygpath}" "${FIXED_PREFIX_PATH}") vcpkg_replace_string("${PKGCONFIG_FILE}" "${libdir_cygpath}" "${FIXED_LIBDIR_PATH}") vcpkg_replace_string("${PKGCONFIG_FILE}" "${includedir_cygpath}" "${FIXED_INCLUDE_PATH}") diff --git a/versions/baseline.json b/versions/baseline.json index 973c80f07c6784..c4a7c077980446 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1942,7 +1942,7 @@ }, "ffmpeg": { "baseline": "4.3.2", - "port-version": 3 + "port-version": 4 }, "ffnvcodec": { "baseline": "10.0.26.0", diff --git a/versions/f-/ffmpeg.json b/versions/f-/ffmpeg.json index 7ff9ab8d0db8de..cd822f12f46b3b 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "993a1a305ccef12934ba4b72648ba205498841f7", + "version-string": "4.3.2", + "port-version": 4 + }, { "git-tree": "d70a90e893854dbcb0efbe740f286baf47adafef", "version-string": "4.3.2",