From 94c0faf47823447e2a5435250760b46df62682ea Mon Sep 17 00:00:00 2001 From: krant Date: Mon, 5 Feb 2024 17:49:38 +0200 Subject: [PATCH] opus: update to 1.4 - Add patch to fix build on ARM - Use official source URL Signed-off-by: krant --- libs/opus/Makefile | 8 +++--- libs/opus/patches/010-fix-arm-build.patch | 31 +++++++++++++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 libs/opus/patches/010-fix-arm-build.patch diff --git a/libs/opus/Makefile b/libs/opus/Makefile index 40b13f67ef..978198baa6 100644 --- a/libs/opus/Makefile +++ b/libs/opus/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=opus -PKG_VERSION:=1.3.1 -PKG_RELEASE:=3 +PKG_VERSION:=1.4 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://archive.mozilla.org/pub/opus -PKG_HASH:=65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d +PKG_SOURCE_URL:=https://downloads.xiph.org/releases/opus +PKG_HASH:=c9b32b4253be5ae63d1ff16eea06b94b5f0f2951b7a02aceef58e3a3ce49c51f PKG_MAINTAINER:=Ted Hess , Ian Leonard PKG_LICENSE:=BSD-3-Clause diff --git a/libs/opus/patches/010-fix-arm-build.patch b/libs/opus/patches/010-fix-arm-build.patch new file mode 100644 index 0000000000..9ac74a5fee --- /dev/null +++ b/libs/opus/patches/010-fix-arm-build.patch @@ -0,0 +1,31 @@ +From 20c032d27c59d65b19b8ffbb2608e5282fe817eb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= +Date: Thu, 20 Apr 2023 19:06:13 +0100 +Subject: [PATCH] meson: fix build on arm64 + +Would fail like: + +Checking if "compiler supports ARMv7/AArch64 NEON intrinsics" : links: NO +Checking if "compiler supports ARMv7/AArch64 NEON intrinsics with -mfpu=neon" : links: YES +Checking if "compiler supports AArch64 NEON intrinsics" : links: NO +Checking if "compiler supports AArch64 NEON intrinsics with -mfpu=neon" : links: NO +Message: Compiler does not support AArch64 NEON intrinsics +../silk/meson.build:28:45: ERROR: Unknown variable "have_arm_intrinsics_or_asm". + +since commit 08088411259056f63774befb2d00951fdd5c46ba. +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/meson.build ++++ b/meson.build +@@ -574,8 +574,8 @@ foreach l : lines + endforeach + + subdir('include') +-subdir('silk') + subdir('celt') ++subdir('silk') + subdir('src') + + configure_file(output: 'config.h', configuration: opus_conf) -- 2.30.2