From fea127141b0dab0577c31453b5796ece95da3be8 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf <jb@videolan.org> Date: Sat, 8 Apr 2017 14:11:48 +0200 Subject: [PATCH] Contribs: update libvpx to 1.6.1 --- contrib/src/vpx/SHA512SUMS | 2 +- contrib/src/vpx/libvpx-android.patch | 50 ++++++++++++++-------------- contrib/src/vpx/libvpx-arm.patch | 10 ------ contrib/src/vpx/rules.mak | 3 +- 4 files changed, 27 insertions(+), 38 deletions(-) delete mode 100644 contrib/src/vpx/libvpx-arm.patch diff --git a/contrib/src/vpx/SHA512SUMS b/contrib/src/vpx/SHA512SUMS index 459f309e9234..da99c86b1109 100644 --- a/contrib/src/vpx/SHA512SUMS +++ b/contrib/src/vpx/SHA512SUMS @@ -1 +1 @@ -dd753372a156bbf7ceb4090276e5fb32b4c8581c93925dded93efee74153b5eb24ee8c3d8ee6339a6878482f0ecf178a2befeeb36e17eada6c440b48c60e9162 libvpx-1.6.0.tar.bz2 +1a4b009fe1737715c6563a79848126a5859394a5074b1e9cca9bc2e213df90890c15e708040d5f2c96c7c21e268f51e1352ac6911514bf891a4bf3eea154159d libvpx-1.6.1.tar.bz2 diff --git a/contrib/src/vpx/libvpx-android.patch b/contrib/src/vpx/libvpx-android.patch index 8f71683dee4a..a71781ca77c7 100644 --- a/contrib/src/vpx/libvpx-android.patch +++ b/contrib/src/vpx/libvpx-android.patch @@ -20,8 +20,8 @@ cpu-features.c. Additionally, we don't need to link with pthread. PORTS_SRCS-$(ARCH_ARM) += arm_cpudetect.c +PORTS_SRCS-$(ARCH_ARM) += cpu-features.c PORTS_SRCS-$(ARCH_ARM) += arm.h ---- libvpx/build/make/configure.sh.orig 2016-05-20 12:48:54.468179035 +0200 -+++ libvpx/build/make/configure.sh 2016-05-20 12:49:30.379601840 +0200 +--- libvpx/build/make/configure.sh.orig 2017-04-08 12:19:54.992242234 +0200 ++++ libvpx/build/make/configure.sh 2017-04-08 12:22:19.280235805 +0200 @@ -628,8 +628,8 @@ } @@ -33,30 +33,30 @@ cpu-features.c. Additionally, we don't need to link with pthread. AR=${AR:-${CROSS}ar} LD=${LD:-${CROSS}${link_with_cc:-ld}} AS=${AS:-${CROSS}as} -@@ -951,8 +951,8 @@ - COMPILER_LOCATION=`find "${SDK_PATH}" \ - -name "arm-linux-androideabi-gcc*" -print -quit` - TOOLCHAIN_PATH=${COMPILER_LOCATION%/*}/arm-linux-androideabi- -- CC=${TOOLCHAIN_PATH}gcc -- CXX=${TOOLCHAIN_PATH}g++ -+ CC=clang -+ CXX=clang++ - AR=${TOOLCHAIN_PATH}ar - LD=${TOOLCHAIN_PATH}gcc - AS=${TOOLCHAIN_PATH}as -@@ -983,7 +983,8 @@ - soft_enable runtime_cpu_detect - fi - if enabled runtime_cpu_detect; then -- add_cflags "-I${SDK_PATH}/sources/android/cpufeatures" -+ cp "${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c" vpx_ports -+ add_cflags "-I${ANDROID_NDK}/sources/android/cpufeatures" - fi - ;; - -@@ -1363,9 +1364,6 @@ - ;; +@@ -916,8 +916,8 @@ + COMPILER_LOCATION=`find "${SDK_PATH}" \ + -name "arm-linux-androideabi-gcc*" -print -quit` + TOOLCHAIN_PATH=${COMPILER_LOCATION%/*}/arm-linux-androideabi- +- CC=${TOOLCHAIN_PATH}gcc +- CXX=${TOOLCHAIN_PATH}g++ ++ CC=clang ++ CXX=clang++ + AR=${TOOLCHAIN_PATH}ar + LD=${TOOLCHAIN_PATH}gcc + AS=${TOOLCHAIN_PATH}as +@@ -948,7 +948,8 @@ + soft_enable runtime_cpu_detect + fi + if enabled runtime_cpu_detect; then +- add_cflags "-I${SDK_PATH}/sources/android/cpufeatures" ++ cp "${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c" vpx_ports ++ add_cflags "-I${ANDROID_NDK}/sources/android/cpufeatures" + fi + else + echo "Assuming standalone build with NDK toolchain." +@@ -1331,9 +1332,6 @@ *-android-gcc) + # bionic includes basic pthread functionality, obviating -lpthread. ;; - *) - check_header pthread.h && add_extralibs -lpthread diff --git a/contrib/src/vpx/libvpx-arm.patch b/contrib/src/vpx/libvpx-arm.patch deleted file mode 100644 index 6736f82a0315..000000000000 --- a/contrib/src/vpx/libvpx-arm.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- libvpx/vpx_ports/arm_cpudetect.c 2015-04-03 20:49:19.000000000 +0200 -+++ libvpx.ok/vpx_ports/arm_cpudetect.c 2016-05-20 09:57:06.066241700 +0200 -@@ -84,7 +84,6 @@ int arm_cpu_caps(void) { - } __except (GetExceptionCode() == EXCEPTION_ILLEGAL_INSTRUCTION) { - /*Ignore exception.*/ - } --} - #endif /* HAVE_MEDIA */ - #if HAVE_NEON || HAVE_NEON_ASM - if (mask &HAS_NEON) { diff --git a/contrib/src/vpx/rules.mak b/contrib/src/vpx/rules.mak index 618555353735..0f3bbe274007 100644 --- a/contrib/src/vpx/rules.mak +++ b/contrib/src/vpx/rules.mak @@ -1,6 +1,6 @@ # libvpx -VPX_VERSION := 1.6.0 +VPX_VERSION := 1.6.1 VPX_URL := http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-$(VPX_VERSION).tar.bz2 PKGS += vpx @@ -17,7 +17,6 @@ libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx $(UNPACK) $(APPLY) $(SRC)/vpx/libvpx-mac.patch $(APPLY) $(SRC)/vpx/libvpx-ios.patch - $(APPLY) $(SRC)/vpx/libvpx-arm.patch ifdef HAVE_ANDROID $(APPLY) $(SRC)/vpx/libvpx-android.patch endif -- GitLab