commit:     9bb8ed37fb04ab2797ac42261bb93ef6297cbd4e
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 16 11:32:37 2015 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 11:33:12 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bb8ed37

sci-electronics/gazebo: fix build with ffmpeg git master.

Package-Manager: portage-2.2.20.1

 sci-electronics/gazebo/files/ffmpeg29.patch | 22 ++++++++++++++++++++++
 sci-electronics/gazebo/gazebo-5.1.0.ebuild  |  5 ++++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/sci-electronics/gazebo/files/ffmpeg29.patch 
b/sci-electronics/gazebo/files/ffmpeg29.patch
new file mode 100644
index 0000000..df53cc7
--- /dev/null
+++ b/sci-electronics/gazebo/files/ffmpeg29.patch
@@ -0,0 +1,22 @@
+Index: gazebo5_5.1.0/gazebo/common/Video.cc
+===================================================================
+--- gazebo5_5.1.0.orig/gazebo/common/Video.cc
++++ gazebo5_5.1.0/gazebo/common/Video.cc
+@@ -147,7 +147,7 @@ bool Video::Load(const std::string &_fil
+     return false;
+   }
+ 
+-  avpicture_alloc(this->pic, PIX_FMT_RGB24, this->codecCtx->width,
++  avpicture_alloc(this->pic, AV_PIX_FMT_RGB24, this->codecCtx->width,
+                   this->codecCtx->height);
+ 
+   this->swsCtx = sws_getContext(
+@@ -156,7 +156,7 @@ bool Video::Load(const std::string &_fil
+       this->codecCtx->pix_fmt,
+       this->codecCtx->width,
+       this->codecCtx->height,
+-      PIX_FMT_RGB24,
++      AV_PIX_FMT_RGB24,
+       SWS_BICUBIC, NULL, NULL, NULL);
+ 
+   if (this->swsCtx == NULL)

diff --git a/sci-electronics/gazebo/gazebo-5.1.0.ebuild 
b/sci-electronics/gazebo/gazebo-5.1.0.ebuild
index d1a55a1..81d360d 100644
--- a/sci-electronics/gazebo/gazebo-5.1.0.ebuild
+++ b/sci-electronics/gazebo/gazebo-5.1.0.ebuild
@@ -45,7 +45,10 @@ DEPEND="${RDEPEND}
 "
 S="${WORKDIR}/${PN}$(get_major_version)_${PV}"
 CMAKE_BUILD_TYPE=RelWithDebInfo
-PATCHES=( "${FILESDIR}/bullet_283.patch" )
+PATCHES=( 
+       "${FILESDIR}/bullet_283.patch"
+       "${FILESDIR}/ffmpeg29.patch"
+)
 
 src_configure() {
        # doesnt build without it

Reply via email to