diff options
| author | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2021-04-30 19:01:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 11:01:30 -0700 |
| commit | 63c7a82c6a7715f4dd1123c216ed8ecc497ec41a (patch) | |
| tree | d526784d6b2d666051b8215079f603b27a9b842c | |
| parent | 8dad905c6f5b8a44ce72de7221b9165a591de107 (diff) | |
| download | vcpkg-63c7a82c6a7715f4dd1123c216ed8ecc497ec41a.tar.gz vcpkg-63c7a82c6a7715f4dd1123c216ed8ecc497ec41a.zip | |
[ffmpeg] add openh264 support (#17531)
* [ffmpeg] add openh264 support
* [ffmpeg] bump port version
* [ffmpeg] x-add-version
Co-authored-by: Billy Robert ONeal III <bion@microsoft.com>
| -rw-r--r-- | ports/ffmpeg/CONTROL | 8 | ||||
| -rw-r--r-- | ports/ffmpeg/FindFFMPEG.cmake.in | 5 | ||||
| -rw-r--r-- | ports/ffmpeg/portfile.cmake | 8 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/f-/ffmpeg.json | 5 |
5 files changed, 25 insertions, 3 deletions
diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL index a4480805e..ebf6d8dcb 100644 --- a/ports/ffmpeg/CONTROL +++ b/ports/ffmpeg/CONTROL @@ -1,6 +1,6 @@ Source: ffmpeg Version: 4.3.2 -Port-Version: 6 +Port-Version: 7 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. @@ -55,7 +55,7 @@ Feature: version3 Description: Upgrade (L)GPL to version 3 Feature: all -Build-Depends: ffmpeg[bzip2,iconv,freetype,lzma,mp3lame,openjpeg,opus,snappy,soxr,speex,theora,vorbis,vpx,webp,zlib], ffmpeg[ass] (!(uwp | arm)), ffmpeg[dav1d] (!(uwp | arm | x86 | osx)), ffmpeg[fontconfig] (!(windows & static) & !(uwp | arm)), ffmpeg[fribidi] (!(uwp | arm)), ffmpeg[ilbc] (!(arm & uwp)), ffmpeg[modplug] (!(windows & static) & !uwp), ffmpeg[nvcodec] ((windows | linux) & !uwp & !arm), ffmpeg[opencl] (!uwp), ffmpeg[ssh] (!(uwp | arm) & !static), ffmpeg[opengl] (!uwp & !(windows & arm) & !osx), ffmpeg[sdl2] (!osx), ffmpeg[tensorflow] (!(x86 | arm | uwp) & !static), ffmpeg[tesseract] (!uwp & !(windows & arm) & !static), ffmpeg[wavpack] (!arm), ffmpeg[xml2] (!static) +Build-Depends: ffmpeg[bzip2,iconv,freetype,lzma,mp3lame,openh264,openjpeg,opus,snappy,soxr,speex,theora,vorbis,vpx,webp,zlib], ffmpeg[ass] (!(uwp | arm)), ffmpeg[dav1d] (!(uwp | arm | x86 | osx)), ffmpeg[fontconfig] (!(windows & static) & !(uwp | arm)), ffmpeg[fribidi] (!(uwp | arm)), ffmpeg[ilbc] (!(arm & uwp)), ffmpeg[modplug] (!(windows & static) & !uwp), ffmpeg[nvcodec] ((windows | linux) & !uwp & !arm), ffmpeg[opencl] (!uwp), ffmpeg[ssh] (!(uwp | arm) & !static), ffmpeg[opengl] (!uwp & !(windows & arm) & !osx), ffmpeg[sdl2] (!osx), ffmpeg[tensorflow] (!(x86 | arm | uwp) & !static), ffmpeg[tesseract] (!uwp & !(windows & arm) & !static), ffmpeg[wavpack] (!arm), ffmpeg[xml2] (!static) Description: Build with all allowed dependencies selected that are compatible with the lgpl license Feature: all-gpl @@ -130,6 +130,10 @@ Feature: opengl Build-Depends: opengl, opengl-registry Description: OpenGL rendering +Feature: openh264 +Build-Depends: openh264 +Description: H.264 de/encoding via openh264 + Feature: openjpeg Build-Depends: openjpeg Description: JPEG 2000 de/encoding via OpenJPEG diff --git a/ports/ffmpeg/FindFFMPEG.cmake.in b/ports/ffmpeg/FindFFMPEG.cmake.in index 1d5920fcd..0419a0777 100644 --- a/ports/ffmpeg/FindFFMPEG.cmake.in +++ b/ports/ffmpeg/FindFFMPEG.cmake.in @@ -209,6 +209,11 @@ if(@ENABLE_OPENGL@) list(APPEND FFMPEG_PLATFORM_DEPENDENT_LIBS ${OPENGL_LIBRARIES}) endif() +if(@ENABLE_OPENH264@) + select_library_configurations_from_names(BASENAME openh264 NAMES openh264) + list(APPEND FFMPEG_PLATFORM_DEPENDENT_LIBS ${openh264_LIBRARIES}) +endif() + if(@ENABLE_OPENJPEG@) find_dependency(OpenJPEG) select_library_configurations_from_targets(BASENAME openjpeg TARGETS openjp2) diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index a45d26239..cb4c59512 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -323,6 +323,14 @@ else() set(OPTIONS "${OPTIONS} --disable-opengl") endif() +set(ENABLE_OPENH264 OFF) +if("openh264" IN_LIST FEATURES) + set(OPTIONS "${OPTIONS} --enable-libopenh264") + set(ENABLE_OPENH264 ${STATIC_LINKAGE}) +else() + set(OPTIONS "${OPTIONS} --disable-libopenh264") +endif() + set(ENABLE_OPENJPEG OFF) if("openjpeg" IN_LIST FEATURES) set(OPTIONS "${OPTIONS} --enable-libopenjpeg") diff --git a/versions/baseline.json b/versions/baseline.json index 18744fe7f..8f1503fa3 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1950,7 +1950,7 @@ }, "ffmpeg": { "baseline": "4.3.2", - "port-version": 6 + "port-version": 7 }, "ffnvcodec": { "baseline": "10.0.26.0", diff --git a/versions/f-/ffmpeg.json b/versions/f-/ffmpeg.json index 633f998f4..1c98dce16 100644 --- a/versions/f-/ffmpeg.json +++ b/versions/f-/ffmpeg.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "bb3d01a7b00d6fe90592750d48e18049eb93215d", + "version-string": "4.3.2", + "port-version": 7 + }, + { "git-tree": "a6d19d895b8c522d7d1179d93ae1e9386ac38ac2", "version-string": "4.3.2", "port-version": 6 |
