diff options
Diffstat (limited to 'media-libs/libilbc')
-rw-r--r-- | media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64.patch | 16 | ||||
-rw-r--r-- | media-libs/libilbc/libilbc-2.0.2.ebuild | 1 | ||||
-rw-r--r-- | media-libs/libilbc/libilbc-9999.ebuild | 3 |
3 files changed, 19 insertions, 1 deletions
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 index 000000000000..ae24dde38cf9 --- /dev/null +++ b/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64.patch @@ -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 diff --git a/media-libs/libilbc/libilbc-2.0.2.ebuild b/media-libs/libilbc/libilbc-2.0.2.ebuild index 9246ed5a6543..878787feea9c 100644 --- a/media-libs/libilbc/libilbc-2.0.2.ebuild +++ b/media-libs/libilbc/libilbc-2.0.2.ebuild @@ -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 } diff --git a/media-libs/libilbc/libilbc-9999.ebuild b/media-libs/libilbc/libilbc-9999.ebuild index b056c4a0a7e1..aa8f295a9f6c 100644 --- a/media-libs/libilbc/libilbc-9999.ebuild +++ b/media-libs/libilbc/libilbc-9999.ebuild @@ -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 } |