Accepting request 94303 from home:oertel:branches:openSUSE:Factory

- make it build on s390/s390x

OBS-URL: https://build.opensuse.org/request/show/94303
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvpx?expand=0&rev=38
This commit is contained in:
Ismail Dönmez 2011-11-29 14:38:56 +00:00 committed by Git OBS Bridge
parent c5586151d6
commit e5717264aa
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,26 @@
--- build/make/configure.sh
+++ build/make/configure.sh
@@ -539,6 +539,12 @@
*powerpc*)
tgt_isa=ppc32
;;
+ *s390x*)
+ tgt_isa=s390x
+ ;;
+ *s390*)
+ tgt_isa=s390
+ ;;
*sparc*)
tgt_isa=sparc
;;
--- configure
+++ configure
@@ -102,6 +102,8 @@
all_platforms="${all_platforms} ppc64-darwin8-gcc"
all_platforms="${all_platforms} ppc64-darwin9-gcc"
all_platforms="${all_platforms} ppc64-linux-gcc"
+all_platforms="${all_platforms} s390-linux-gcc"
+all_platforms="${all_platforms} s390x-linux-gcc"
all_platforms="${all_platforms} sparc-solaris-gcc"
all_platforms="${all_platforms} x86-darwin8-gcc"
all_platforms="${all_platforms} x86-darwin8-icc"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 29 15:36:19 CET 2011 - ro@suse.de
- make it build on s390/s390x
-------------------------------------------------------------------
Sat Oct 15 01:47:32 UTC 2011 - jlee@suse.com

View File

@ -29,6 +29,7 @@ Source0: http://webm.googlecode.com/files/%{name}-v%{version}%{patchlevel
# PATCH-FIX-UPSTREAM libvpx-define-config_pic.patch dimstar@opensuse.org -- For older compilers, CONFIG_PIC need to be defined.
Patch0: libvpx-define-config_pic.patch
Patch1: libvpx-configure-add-armv7-tgt-isa.patch
Patch2: libvpx-configure-add-s390.patch
BuildRequires: yasm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -89,6 +90,7 @@ The WebM file structure is based on the Matroska container.
%setup -q -n %name-v%version%patchlevel
%patch0 -p1
%patch1 -p1
%patch2
%build
cd build