aboutsummaryrefslogtreecommitdiff
path: root/ports/ffmpeg
diff options
context:
space:
mode:
authortalregev <talregev@users.noreply.github.com>2021-04-20 00:26:08 +0300
committerGitHub <noreply@github.com>2021-04-19 14:26:08 -0700
commit3ec41f57e64f691a723fd6e89830d01cc9be93e1 (patch)
tree49dbe19d5573e08bcea4b164b2f10a4293303146 /ports/ffmpeg
parent68fc55c971ee7791277b9d0cfc4a9c1a881faff3 (diff)
downloadvcpkg-3ec41f57e64f691a723fd6e89830d01cc9be93e1.tar.gz
vcpkg-3ec41f57e64f691a723fd6e89830d01cc9be93e1.zip
[libvpx] Fix libvpx compilation (install process) (#17287)
* Fix libvpx compilation (install process) * [libvpx] Remove library and pdb suffixes. * [ffmpeg] Remove fix for libvpx * update version record * Update ports/ffmpeg/CONTROL * Update versions/f-/ffmpeg.json * version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/ffmpeg')
-rw-r--r--ports/ffmpeg/0005-fix-libvpx-linking.patch53
-rw-r--r--ports/ffmpeg/CONTROL2
-rw-r--r--ports/ffmpeg/portfile.cmake1
3 files changed, 1 insertions, 55 deletions
diff --git a/ports/ffmpeg/0005-fix-libvpx-linking.patch b/ports/ffmpeg/0005-fix-libvpx-linking.patch
deleted file mode 100644
index dac5e5928..000000000
--- a/ports/ffmpeg/0005-fix-libvpx-linking.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-diff --git a/configure b/configure
-index fba948a..50eea9b 100755
---- a/configure
-+++ b/configure
-@@ -5207,6 +5207,8 @@ case "$arch" in
- ;;
- esac
-
-+libvpx_name=vpx
-+
- # OS specific
- case $target_os in
- aix)
-@@ -5379,6 +5381,15 @@ case $target_os in
- enabled x86_64 && objformat="win64" || objformat="win32"
- ranlib=:
- enable dos_paths
-+ if [ -z "${extra_cflags##*-MDd*}" ]; then
-+ libvpx_name=vpxmdd
-+ elif [ -z "${extra_cflags##*-MD*}" ]; then
-+ libvpx_name=vpxmd
-+ elif [ -z "${extra_cflags##*-MTd*}" ]; then
-+ libvpx_name=vpxmtd
-+ elif [ -z "${extra_cflags##*-MT*}" ]; then
-+ libvpx_name=vpxmt
-+ fi
- ;;
- cygwin*)
- target_os=cygwin
-@@ -6290,19 +6301,19 @@ enabled libvorbis && require_pkg_config libvorbis vorbis vorbis/codec.h
- enabled libvpx && {
- enabled libvpx_vp8_decoder && {
- check_pkg_config libvpx_vp8_decoder "vpx >= 1.4.0" "vpx/vpx_decoder.h vpx/vp8dx.h" vpx_codec_vp8_dx ||
-- check_lib libvpx_vp8_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp8_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
-+ check_lib libvpx_vp8_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp8_dx VPX_IMG_FMT_HIGHBITDEPTH" "-l$libvpx_name $libm_extralibs $pthreads_extralibs"
- }
- enabled libvpx_vp8_encoder && {
- check_pkg_config libvpx_vp8_encoder "vpx >= 1.4.0" "vpx/vpx_encoder.h vpx/vp8cx.h" vpx_codec_vp8_cx ||
-- check_lib libvpx_vp8_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp8_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
-+ check_lib libvpx_vp8_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp8_cx VPX_IMG_FMT_HIGHBITDEPTH" "-l$libvpx_name $libm_extralibs $pthreads_extralibs"
- }
- enabled libvpx_vp9_decoder && {
- check_pkg_config libvpx_vp9_decoder "vpx >= 1.4.0" "vpx/vpx_decoder.h vpx/vp8dx.h" vpx_codec_vp9_dx ||
-- check_lib libvpx_vp9_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp9_dx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
-+ check_lib libvpx_vp9_decoder "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp9_dx VPX_IMG_FMT_HIGHBITDEPTH" "-l$libvpx_name $libm_extralibs $pthreads_extralibs"
- }
- enabled libvpx_vp9_encoder && {
- check_pkg_config libvpx_vp9_encoder "vpx >= 1.4.0" "vpx/vpx_encoder.h vpx/vp8cx.h" vpx_codec_vp9_cx ||
-- check_lib libvpx_vp9_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VPX_IMG_FMT_HIGHBITDEPTH" "-lvpx $libm_extralibs $pthreads_extralibs"
-+ check_lib libvpx_vp9_encoder "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VPX_IMG_FMT_HIGHBITDEPTH" "-l$libvpx_name $libm_extralibs $pthreads_extralibs"
- }
- if disabled_all libvpx_vp8_decoder libvpx_vp9_decoder libvpx_vp8_encoder libvpx_vp9_encoder; then
- die "libvpx enabled but no supported decoders found"
diff --git a/ports/ffmpeg/CONTROL b/ports/ffmpeg/CONTROL
index dc4c2d215..56b08c5ec 100644
--- a/ports/ffmpeg/CONTROL
+++ b/ports/ffmpeg/CONTROL
@@ -1,6 +1,6 @@
Source: ffmpeg
Version: 4.3.2
-Port-Version: 4
+Port-Version: 5
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.
diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake
index ca1ac781d..a45d26239 100644
--- a/ports/ffmpeg/portfile.cmake
+++ b/ports/ffmpeg/portfile.cmake
@@ -8,7 +8,6 @@ vcpkg_from_github(
0001-create-lib-libraries.patch
0003-fix-windowsinclude.patch
0004-fix-debug-build.patch
- 0005-fix-libvpx-linking.patch
0006-fix-StaticFeatures.patch
0007-fix-lib-naming.patch
0008-Fix-wavpack-detection.patch