opus: fix configure for gcc 5.x

This commit is contained in:
Danny Rawlins 2015-07-24 11:09:27 +10:00
parent 2259a1a9e3
commit d1817393e2
3 changed files with 20 additions and 1 deletions

View File

@ -1 +1,2 @@
5fb467f75a2c74a064946badc0be5400 1.1-fix-configure.ac-shell-bug.patch
c5a8cf7c0b066759542bc4ca46817ac6 opus-1.1.tar.gz

View File

@ -0,0 +1,14 @@
--- opus-1.1.orig/configure.ac
+++ opus-1.1/configure.ac
@@ -333,9 +333,9 @@ AS_IF([test x"${enable_asm}" = x"yes"],[
AM_CONDITIONAL([CPU_ARM], [test "$cpu_arm" = "yes"])
AM_CONDITIONAL([OPUS_ARM_INLINE_ASM],
- [test x"${inline_optimization:0:3}" = x"ARM"])
+ [test x"${inline_optimization%% *}" = x"ARM"])
AM_CONDITIONAL([OPUS_ARM_EXTERNAL_ASM],
- [test x"${asm_optimization:0:3}" = x"ARM"])
+ [test x"${asm_optimization%% *}" = x"ARM"])
AS_IF([test x"$enable_rtcd" = x"yes"],[
AS_IF([test x"$rtcd_support" != x"no"],[

View File

@ -6,11 +6,15 @@
name=opus
version=1.1
release=1
source=(http://downloads.us.xiph.org/releases/opus/opus-$version.tar.gz)
source=(http://downloads.us.xiph.org/releases/opus/opus-$version.tar.gz
1.1-fix-configure.ac-shell-bug.patch)
build() {
cd opus-$version
patch -p1 -i $SRC/1.1-fix-configure.ac-shell-bug.patch
autoreconf -i
./configure \
--prefix=/usr \
--mandir=/usr/man \