aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackBoosY <yuzaiyang@beyondsoft.com>2019-08-08 22:37:53 -0700
committerJackBoosY <yuzaiyang@beyondsoft.com>2019-08-08 22:38:20 -0700
commit8cbef1424afff5e4be3bf0e1121058465c7d6f6a (patch)
tree2c18a01e37e327a9ebef09aaed4c6c484e6636bb
parent743e168ef5c7705e44d1d5cab5b9cca22328345e (diff)
downloadvcpkg-8cbef1424afff5e4be3bf0e1121058465c7d6f6a.tar.gz
vcpkg-8cbef1424afff5e4be3bf0e1121058465c7d6f6a.zip
[ffmpeg]Add feature avresample.
-rw-r--r--ports/ffmpeg/CONTROL5
-rw-r--r--ports/ffmpeg/portfile.cmake4
2 files changed, 8 insertions, 1 deletions
diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL
index 3bbf544c1..abf59b857 100644
--- a/ports/ffmpeg/CONTROL
+++ b/ports/ffmpeg/CONTROL
@@ -1,5 +1,5 @@
Source: ffmpeg
-Version: 4.1-9
+Version: 4.1-10
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.
@@ -45,3 +45,6 @@ Description: allow nonfree and unredistributable libraries
Feature: gpl
Description: allow GPL licensed libraries
+
+Feature: avresample
+Description: Libav audio resampling library support in ffmpeg
diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake
index 7309bd544..91c12b553 100644
--- a/ports/ffmpeg/portfile.cmake
+++ b/ports/ffmpeg/portfile.cmake
@@ -126,6 +126,10 @@ else()
set(OPTIONS "${OPTIONS} --disable-bzlib")
endif()
+if("avresample" IN_LIST FEATURES)
+ set(OPTIONS "${OPTIONS} --enable-avresample")
+endif()
+
set(OPTIONS_CROSS "")
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")