mirror of https://github.com/microsoft/vcpkg.git
Add rubberband feature to ffmpeg port. (#49235)
This commit is contained in:
parent
45c8fe90b3
commit
5087d22fd7
|
|
@ -599,6 +599,14 @@ else()
|
|||
set(WITH_ZMQ OFF)
|
||||
endif()
|
||||
|
||||
if("rubberband" IN_LIST FEATURES)
|
||||
set(OPTIONS "${OPTIONS} --enable-librubberband")
|
||||
set(WITH_RUBBERBAND ON)
|
||||
else()
|
||||
set(OPTIONS "${OPTIONS} --disable-librubberband")
|
||||
set(WITH_RUBBERBAND OFF)
|
||||
endif()
|
||||
|
||||
set(OPTIONS_CROSS "--enable-cross-compile")
|
||||
|
||||
# ffmpeg needs --cross-prefix option to use appropriate tools for cross-compiling.
|
||||
|
|
|
|||
|
|
@ -313,6 +313,14 @@ if(@WITH_ZMQ@)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(@WITH_RUBBERBAND@)
|
||||
pkg_check_modules(rubberband IMPORTED_TARGET rubberband)
|
||||
list(APPEND FFMPEG_LIBRARIES PkgConfig::rubberband)
|
||||
if(vcpkg_no_avfilter_target AND TARGET FFmpeg::avfilter)
|
||||
target_link_libraries(FFmpeg::avfilter INTERFACE PkgConfig::rubberband)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
endif()
|
||||
unset(z_vcpkg_using_vcpkg_find_ffmpeg)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "ffmpeg",
|
||||
"version": "7.1.2",
|
||||
"port-version": 4,
|
||||
"port-version": 5,
|
||||
"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."
|
||||
|
|
@ -567,6 +567,19 @@
|
|||
"mfx-dispatch"
|
||||
]
|
||||
},
|
||||
"rubberband": {
|
||||
"description": "Enable rubberband support",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "ffmpeg",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"gpl"
|
||||
]
|
||||
},
|
||||
"rubberband"
|
||||
]
|
||||
},
|
||||
"sdl2": {
|
||||
"description": "Sdl2 support",
|
||||
"dependencies": [
|
||||
|
|
|
|||
|
|
@ -2918,7 +2918,7 @@
|
|||
},
|
||||
"ffmpeg": {
|
||||
"baseline": "7.1.2",
|
||||
"port-version": 4
|
||||
"port-version": 5
|
||||
},
|
||||
"ffnvcodec": {
|
||||
"baseline": "13.0.19.0",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "bf414f1e4f2a63ff7410444dc4eabb5b392f6d16",
|
||||
"version": "7.1.2",
|
||||
"port-version": 5
|
||||
},
|
||||
{
|
||||
"git-tree": "4d296d54e7c2880504575318ca86ed35d6232eb6",
|
||||
"version": "7.1.2",
|
||||
|
|
|
|||
Loading…
Reference in New Issue