opus: update to 1.4
authorkrant <aleksey.vasilenko@gmail.com>
Mon, 5 Feb 2024 15:49:38 +0000 (17:49 +0200)
committerRosen Penev <rosenp@gmail.com>
Mon, 5 Feb 2024 18:08:28 +0000 (10:08 -0800)
- Add patch to fix build on ARM
- Use official source URL

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
libs/opus/Makefile
libs/opus/patches/010-fix-arm-build.patch [new file with mode: 0644]

index 40b13f67ef3071e96092a465d453205743d9b138..978198baa6bda51bba8d42699ca96ea81ea5b600 100644 (file)
@@ -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 <thess@kitchensync.net>, Ian Leonard <antonlacon@gmail.com>
 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 (file)
index 0000000..9ac74a5
--- /dev/null
@@ -0,0 +1,31 @@
+From 20c032d27c59d65b19b8ffbb2608e5282fe817eb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com>
+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)