Accepting request 146745 from multimedia:libs

- add s390 and s390x to known platforms 
  by adding webrtc-s390x.patch (forwarded request 145836 from oertel)

OBS-URL: https://build.opensuse.org/request/show/146745
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/webrtc-audio-processing?expand=0&rev=4
This commit is contained in:
Ismail Dönmez 2013-01-02 12:02:09 +00:00 committed by Git OBS Bridge
commit 352f6c0b3b
3 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 19 10:39:23 CET 2012 - ro@suse.de
- add s390 and s390x to known platforms
by adding webrtc-s390x.patch
-------------------------------------------------------------------
Tue Jul 3 15:00:06 UTC 2012 - dvaleev@suse.com

View File

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

15
webrtc-s390x.patch Normal file
View File

@ -0,0 +1,15 @@
--- src/typedefs.h
+++ src/typedefs.h
@@ -82,6 +82,12 @@
#elif defined(__powerpc__)
#define WEBRTC_BIG_ENDIAN
#define WEBRTC_ARCH_32_BITS
+#elif defined(__s390x__)
+#define WEBRTC_BIG_ENDIAN
+#define WEBRTC_ARCH_64_BITS
+#elif defined(__s390__)
+#define WEBRTC_BIG_ENDIAN
+#define WEBRTC_ARCH_32_BITS
#else
#error Please add support for your architecture in typedefs.h
#endif