commit:     1e8eabbec0137a89a74eee87c42354db095460ef
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 09:27:26 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 09:27:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e8eabbe

media-libs/kvazaar: backport upstream patch to fix build on ppc, bug #589688

Package-Manager: portage-2.3.0

 media-libs/kvazaar/files/ppc.patch      | 19 +++++++++++++++++++
 media-libs/kvazaar/kvazaar-0.8.3.ebuild |  5 +++--
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/media-libs/kvazaar/files/ppc.patch 
b/media-libs/kvazaar/files/ppc.patch
new file mode 100644
index 0000000..9ee9f70
--- /dev/null
+++ b/media-libs/kvazaar/files/ppc.patch
@@ -0,0 +1,19 @@
+commit 99e37ec23532a247b9e306ef87e9879385c625d8
+Author: Ari Lemmetti <[email protected]>
+Date:   Sat Jan 30 19:33:09 2016 +0200
+
+    Update old pixel type to the current one
+
+diff --git a/src/strategies/altivec/picture-altivec.c 
b/src/strategies/altivec/picture-altivec.c
+index 7c9d1fb..28e86e8 100644
+--- a/src/strategies/altivec/picture-altivec.c
++++ b/src/strategies/altivec/picture-altivec.c
+@@ -28,7 +28,7 @@
+ #include <stdlib.h>
+ 
+ 
+-static unsigned reg_sad_altivec(const pixel * const data1, const pixel * 
const data2,
++static unsigned reg_sad_altivec(const kvz_pixel * const data1, const 
kvz_pixel * const data2,
+                         const int width, const int height, const unsigned 
stride1, const unsigned stride2)
+ {
+   vector unsigned int vsad = {0,0,0,0}, vzero = {0,0,0,0}; 

diff --git a/media-libs/kvazaar/kvazaar-0.8.3.ebuild 
b/media-libs/kvazaar/kvazaar-0.8.3.ebuild
index 972f429..f61e9fe 100644
--- a/media-libs/kvazaar/kvazaar-0.8.3.ebuild
+++ b/media-libs/kvazaar/kvazaar-0.8.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -11,7 +11,7 @@ if [ "${PV#9999}" != "${PV}" ] ; then
        EGIT_REPO_URI="https://github.com/ultravideo/kvazaar";
 fi
 
-inherit multilib autotools multilib-minimal toolchain-funcs ${SCM}
+inherit eutils multilib autotools multilib-minimal toolchain-funcs ${SCM}
 
 DESCRIPTION="An open-source HEVC encoder"
 HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar";
@@ -35,6 +35,7 @@ DEPEND="${DEPEND}
        abi_x86_64? ( ${ASM_DEP} )"
 
 src_prepare() {
+       epatch "${FILESDIR}/ppc.patch"
        eautoreconf
 }
 

Reply via email to