Skip to content

Commit

Permalink
media-libs/kvazaar: backport upstream patch to fix build on ppc, bug …
Browse files Browse the repository at this point in the history
…#589688

Package-Manager: portage-2.3.0
  • Loading branch information
aballier committed Jul 26, 2016
1 parent 0f1c6cd commit 1e8eabb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
19 changes: 19 additions & 0 deletions media-libs/kvazaar/files/ppc.patch
Original file line number Diff line number Diff line change
@@ -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};
5 changes: 3 additions & 2 deletions media-libs/kvazaar/kvazaar-0.8.3.ebuild
Original file line number Diff line number Diff line change
@@ -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$

Expand All @@ -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"
Expand All @@ -35,6 +35,7 @@ DEPEND="${DEPEND}
abi_x86_64? ( ${ASM_DEP} )"

src_prepare() {
epatch "${FILESDIR}/ppc.patch"
eautoreconf
}

Expand Down

0 comments on commit 1e8eabb

Please sign in to comment.