Skip to content

Commit

Permalink
[ffmpeg] Honor macosx deployment target for ffmpeg (#18460)
Browse files Browse the repository at this point in the history
* Honor macosx deployment target for ffmpeg

* fixup! Honor macosx deployment target for ffmpeg

Co-authored-by: Martijn Otto <git@martijnotto.nl>
Co-authored-by: Martijn Otto <martijn@resolume.com>
  • Loading branch information
3 people committed Oct 6, 2021
1 parent ff5afba commit d6245fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
11 changes: 8 additions & 3 deletions ports/ffmpeg/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ else()
set(SHELL /bin/sh)
endif()

vcpkg_cmake_get_vars(cmake_vars_file)
include("${cmake_vars_file}")

if(VCPKG_TARGET_IS_OSX AND VCPKG_DETECTED_CMAKE_OSX_DEPLOYMENT_TARGET)
set(OPTIONS "--extra-cflags=-mmacosx-version-min=${VCPKG_DETECTED_CMAKE_OSX_DEPLOYMENT_TARGET} ${OPTIONS}")
set(OPTIONS "--extra-ldflags=-mmacosx-version-min=${VCPKG_DETECTED_CMAKE_OSX_DEPLOYMENT_TARGET} ${OPTIONS}")
endif()

set(ENV{${INCLUDE_VAR}} "${CURRENT_INSTALLED_DIR}/include${VCPKG_HOST_PATH_SEPARATOR}$ENV{${INCLUDE_VAR}}")

set(_csc_PROJECT_PATH ffmpeg)
Expand Down Expand Up @@ -544,9 +552,6 @@ else()
set(OPTIONS "${OPTIONS} --disable-zlib")
endif()

vcpkg_cmake_get_vars(cmake_vars_file)
include("${cmake_vars_file}")

if (VCPKG_TARGET_IS_OSX)
# if the sysroot isn't set in the triplet we fall back to whatever CMake detected for us
if ("${VCPKG_OSX_SYSROOT}" STREQUAL "")
Expand Down
2 changes: 1 addition & 1 deletion ports/ffmpeg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ffmpeg",
"version": "4.4",
"port-version": 14,
"port-version": 15,
"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."
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@
},
"ffmpeg": {
"baseline": "4.4",
"port-version": 14
"port-version": 15
},
"ffnvcodec": {
"baseline": "11.1.5.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/ffmpeg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "24cb6ddcd146248cb3758ec1aa4c038b28d4c0c5",
"version": "4.4",
"port-version": 15
},
{
"git-tree": "5d893a1c421f553fbdd9c1f79530a6a84bd0eb76",
"version": "4.4",
Expand Down

0 comments on commit d6245fc

Please sign in to comment.