media-libs/libilbc: Add architecture definition for ppc/ppc64 (bug 610546).
authorMichael Weber <xmw@gentoo.org>
Wed, 22 Feb 2017 11:38:27 +0000 (12:38 +0100)
committerMichael Weber <xmw@gentoo.org>
Wed, 22 Feb 2017 11:38:42 +0000 (12:38 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64.patch [new file with mode: 0644]
media-libs/libilbc/libilbc-2.0.2.ebuild
media-libs/libilbc/libilbc-9999.ebuild

diff --git a/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64.patch b/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64.patch
new file mode 100644 (file)
index 0000000..ae24dde
--- /dev/null
@@ -0,0 +1,16 @@
+--- libilbc-2.0.2/typedefs.h
++++ libilbc-2.0.2/typedefs.h
+@@ -47,6 +47,13 @@
+ #elif defined(__pnacl__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
++#elif defined(__PPC__)
++#define WEBRTC_ARCH_BIG_ENDIAN
++#if defined(__PPC64__)
++#define WEBRTC_ARCH_64_BITS
++#else
++#define WEBRTC_ARCH_32_BITS
++#endif
+ #else
+ #error Please add support for your architecture in typedefs.h
+ #endif
index 9246ed5a6543b464703d9f656bcdfd5ae8b070da..878787feea9c9e0ed8f6afb8e5d413199da4d395 100644 (file)
@@ -24,6 +24,7 @@ SLOT="0"
 IUSE="static-libs"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.0.2-ppc_ppc64.patch
        [[ ${PV} == *9999 ]] && eautoreconf
        autotools-multilib_src_prepare
 }
index b056c4a0a7e1766247942060d8212a7605c71cc1..aa8f295a9f6c6808f13834f285ef0c6d136d90ee 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -24,6 +24,7 @@ SLOT="0"
 IUSE="static-libs"
 
 src_prepare() {
+       epatch "${FILESDIR}"/${PN}-2.0.2-ppc_ppc64.patch
        [[ ${PV} == *9999 ]] && eautoreconf
        autotools-multilib_src_prepare
 }