Accepting request 127039 from home:k0da:ppc

- add ppc64 to known platforms

OBS-URL: https://build.opensuse.org/request/show/127039
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/webrtc-audio-processing?expand=0&rev=4
This commit is contained in:
Ismail Dönmez 2012-07-12 11:30:28 +00:00 committed by Git OBS Bridge
parent 53f5a96358
commit 9cc3370e29
3 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 3 15:00:06 UTC 2012 - dvaleev@suse.com
- add ppc64 to known platforms
-------------------------------------------------------------------
Tue May 15 10:40:38 CET 2012 - pascal.bleser@opensuse.org

View File

@ -38,6 +38,7 @@ BuildRequires: libtool
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: xz
Patch0: webrtc-ppc64.patch
%description
WebRTC is an open source project that enables web browsers with Real-Time
@ -85,6 +86,7 @@ WebRTC implements the W3C's proposal for video conferencing on the web.
%setup -q -T -c "%{name}-%{version}"
xz --decompress --stdout "%{SOURCE0}" | %__tar xf - --strip-components=1
%__sed -i 's/\r$//' AUTHORS
%patch0 -p1
%build
%configure

17
webrtc-ppc64.patch Normal file
View File

@ -0,0 +1,17 @@
Index: webrtc-audio-processing-0.1/src/typedefs.h
===================================================================
--- webrtc-audio-processing-0.1.orig/src/typedefs.h
+++ webrtc-audio-processing-0.1/src/typedefs.h
@@ -76,6 +76,12 @@
//#define WEBRTC_ARCH_ARMEL
#define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
+#elif defined(__powerpc64__)
+#define WEBRTC_BIG_ENDIAN
+#define WEBRTC_ARCH_64_BITS
+#elif defined(__powerpc__)
+#define WEBRTC_BIG_ENDIAN
+#define WEBRTC_ARCH_32_BITS
#else
#error Please add support for your architecture in typedefs.h
#endif