diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-09-29 18:32:51 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-09-29 18:33:02 +0200 |
commit | 6f1595fb23b828b52ad4e8dbe60efb3f9decbfec (patch) | |
tree | 9dd1364ea3892a451d542e669e26b785a1f8af66 /media-video/ffmpeg | |
parent | dev-util/oprofile: fix bug 594178 (diff) | |
download | gentoo-6f1595fb23b828b52ad4e8dbe60efb3f9decbfec.tar.gz gentoo-6f1595fb23b828b52ad4e8dbe60efb3f9decbfec.tar.bz2 gentoo-6f1595fb23b828b52ad4e8dbe60efb3f9decbfec.zip |
media-video/ffmpeg: add patch to build with latest openjpeg, bug #595318
Package-Manager: portage-2.3.1
Diffstat (limited to 'media-video/ffmpeg')
-rw-r--r-- | media-video/ffmpeg/ffmpeg-3.1.3.ebuild | 1 | ||||
-rw-r--r-- | media-video/ffmpeg/files/openjpeg2.patch | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/media-video/ffmpeg/ffmpeg-3.1.3.ebuild b/media-video/ffmpeg/ffmpeg-3.1.3.ebuild index 19db1ed81bff..03b2cf4541d6 100644 --- a/media-video/ffmpeg/ffmpeg-3.1.3.ebuild +++ b/media-video/ffmpeg/ffmpeg-3.1.3.ebuild @@ -294,6 +294,7 @@ src_prepare() { if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot export revision=git-N-${FFMPEG_REVISION} fi + epatch "${FILESDIR}/openjpeg2.patch" #595318 default } diff --git a/media-video/ffmpeg/files/openjpeg2.patch b/media-video/ffmpeg/files/openjpeg2.patch new file mode 100644 index 000000000000..e203e61147a7 --- /dev/null +++ b/media-video/ffmpeg/files/openjpeg2.patch @@ -0,0 +1,39 @@ +https://bugs.gentoo.org/show_bug.cgi?id=595318 +https://trac.ffmpeg.org/ticket/5694 + +diff -rupN ffmpeg-3.1.1/configure ffmpeg-3.1.1-new/configure +--- ffmpeg-3.1.1/configure 2016-06-27 01:54:28.000000000 +0200 ++++ ffmpeg-3.1.1-new/configure 2016-07-27 22:25:36.585141648 +0200 +@@ -5669,7 +5669,7 @@ enabled libopencv && { check_hea + require opencv opencv2/core/core_c.h cvCreateImageHeader -lopencv_core -lopencv_imgproc; } || + require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader; } + enabled libopenh264 && require_pkg_config openh264 wels/codec_api.h WelsGetCodecVersion +-enabled libopenjpeg && { check_lib openjpeg-2.1/openjpeg.h opj_version -lopenjp2 -DOPJ_STATIC || ++enabled libopenjpeg && { check_lib openjpeg-2.1/openjpeg.h opj_version -lopenjp2 || + check_lib openjpeg-2.0/openjpeg.h opj_version -lopenjp2 -DOPJ_STATIC || + check_lib openjpeg-1.5/openjpeg.h opj_version -lopenjpeg -DOPJ_STATIC || + check_lib openjpeg.h opj_version -lopenjpeg -DOPJ_STATIC || +diff -rupN ffmpeg-3.1.1/libavcodec/libopenjpegdec.c ffmpeg-3.1.1-new/libavcodec/libopenjpegdec.c +--- ffmpeg-3.1.1/libavcodec/libopenjpegdec.c 2016-06-27 01:54:29.000000000 +0200 ++++ ffmpeg-3.1.1-new/libavcodec/libopenjpegdec.c 2016-07-27 22:25:45.509327071 +0200 +@@ -24,8 +24,6 @@ + * JPEG 2000 decoder using libopenjpeg + */ + +-#define OPJ_STATIC +- + #include "libavutil/common.h" + #include "libavutil/imgutils.h" + #include "libavutil/intreadwrite.h" +diff -rupN ffmpeg-3.1.1/libavcodec/libopenjpegenc.c ffmpeg-3.1.1-new/libavcodec/libopenjpegenc.c +--- ffmpeg-3.1.1/libavcodec/libopenjpegenc.c 2016-06-27 01:54:29.000000000 +0200 ++++ ffmpeg-3.1.1-new/libavcodec/libopenjpegenc.c 2016-07-27 22:25:40.298218807 +0200 +@@ -24,8 +24,6 @@ + * JPEG 2000 encoder using libopenjpeg + */ + +-#define OPJ_STATIC +- + #include "libavutil/avassert.h" + #include "libavutil/common.h" + #include "libavutil/imgutils.h" |