diff options
| author | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2021-06-11 18:01:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-11 10:01:10 -0700 |
| commit | b598c70a6c3e533200395d775dec088463393a06 (patch) | |
| tree | b8d4feb7b2e840bf7848e9837a3c42c95c0a9a8d | |
| parent | 2cc4ca3d831bcf2b87268b09346a2aede74dbfc6 (diff) | |
| download | vcpkg-b598c70a6c3e533200395d775dec088463393a06.tar.gz vcpkg-b598c70a6c3e533200395d775dec088463393a06.zip | |
[ffmpeg] fix release-only builds (#18367)
* [ffmpeg] fix release-only builds
* [ffmpeg] bump port version
* [ffmpeg] x-add-version
* [ffmpeg] strequal: use quotes when comparing against strings
* [ffmpeg] x-add-version
| -rw-r--r-- | ports/ffmpeg/portfile.cmake | 14 | ||||
| -rw-r--r-- | ports/ffmpeg/vcpkg.json | 2 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/f-/ffmpeg.json | 5 |
4 files changed, 16 insertions, 7 deletions
diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index d9cc4aadb..c905401c1 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -485,7 +485,7 @@ set(ENV_LIB_PATH "$ENV{${LIB_PATH_VAR}}") message(STATUS "Building Options: ${OPTIONS}") # Release build -if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL release) +if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release") message(STATUS "Building Release Options: ${OPTIONS_RELEASE}") set(ENV{${LIB_PATH_VAR}} "${CURRENT_INSTALLED_DIR}/lib${VCPKG_HOST_PATH_SEPARATOR}${ENV_LIB_PATH}") set(ENV{CFLAGS} "${VCPKG_C_FLAGS} ${VCPKG_C_FLAGS_RELEASE}") @@ -508,7 +508,7 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL release) endif() # Debug build -if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug) +if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") message(STATUS "Building Debug Options: ${OPTIONS_DEBUG}") set(ENV{${LIB_PATH_VAR}} "${CURRENT_INSTALLED_DIR}/debug/lib${VCPKG_HOST_PATH_SEPARATOR}${ENV_LIB_PATH}") set(ENV{CFLAGS} "${VCPKG_C_FLAGS} ${VCPKG_C_FLAGS_DEBUG}") @@ -591,16 +591,20 @@ endif() vcpkg_copy_pdbs() if (VCPKG_TARGET_IS_WINDOWS) - foreach(_debug "" "/debug") + set(_dirs "/") + if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug") + list(APPEND _dirs "/debug/") + endif() + foreach(_debug IN LISTS _dirs) foreach(PKGCONFIG_MODULE IN LISTS FFMPEG_PKGCONFIG_MODULES) - set(PKGCONFIG_FILE "${CURRENT_PACKAGES_DIR}${_debug}/lib/pkgconfig/${PKGCONFIG_MODULE}.pc") + set(PKGCONFIG_FILE "${CURRENT_PACKAGES_DIR}${_debug}lib/pkgconfig/${PKGCONFIG_MODULE}.pc") # remove redundant cygwin style -libpath entries execute_process( COMMAND "${MSYS_ROOT}/usr/bin/cygpath.exe" -u "${CURRENT_INSTALLED_DIR}" OUTPUT_VARIABLE CYG_INSTALLED_DIR OUTPUT_STRIP_TRAILING_WHITESPACE ) - vcpkg_replace_string("${PKGCONFIG_FILE}" "-libpath:${CYG_INSTALLED_DIR}${_debug}/lib/pkgconfig/../../lib " "") + vcpkg_replace_string("${PKGCONFIG_FILE}" "-libpath:${CYG_INSTALLED_DIR}${_debug}lib/pkgconfig/../../lib " "") # transform libdir, includedir, and prefix paths from cygwin style to windows style file(READ "${PKGCONFIG_FILE}" PKGCONFIG_CONTENT) foreach(PATH_NAME prefix libdir includedir) diff --git a/ports/ffmpeg/vcpkg.json b/ports/ffmpeg/vcpkg.json index ae1d7cbdc..d64ac5bb1 100644 --- a/ports/ffmpeg/vcpkg.json +++ b/ports/ffmpeg/vcpkg.json @@ -1,7 +1,7 @@ { "name": "ffmpeg", "version": "4.4", - "port-version": 3, + "port-version": 4, "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 e22cefaef..54f4afe56 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1982,7 +1982,7 @@ }, "ffmpeg": { "baseline": "4.4", - "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 ed22d7051..3691438cc 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "dfea2c203835c55baec68138cc7e8c65ebcce33a", + "version": "4.4", + "port-version": 4 + }, + { "git-tree": "90a0309bd2757ee32bb13e47e07fa7b8405e6594", "version": "4.4", "port-version": 3 |
