audio/opus: fix build on arm

* fix the build on 32-bit arm[1]
* GitHub does not have a release tarball for this release[2]

PR:		277537
Obtained from:	fuz [1]
Reported by:	diizzy [2]
This commit is contained in:
Christian Weisgerber 2024-03-12 16:48:02 +01:00
parent 645b0afb41
commit a1c197fb10
2 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,7 @@
PORTNAME= opus
DISTVERSION= 1.5.1
CATEGORIES= audio
MASTER_SITES= https://downloads.xiph.org/releases/opus/ \
https://github.com/xiph/opus/releases/download/v${DISTVERSION}/
MASTER_SITES= https://downloads.xiph.org/releases/opus/
MAINTAINER= naddy@FreeBSD.org
COMMENT= IETF audio codec

View File

@ -0,0 +1,11 @@
--- dnn/vec_neon.h.orig 2024-03-12 15:41:06 UTC
+++ dnn/vec_neon.h
@@ -34,7 +34,7 @@
#include <arm_neon.h>
#include "os_support.h"
-#if defined(__arm__) && !defined(__aarch64__)
+#if __ARM_ARCH < 8
/* Emulate vcvtnq_s32_f32() for ARMv7 Neon. */
static OPUS_INLINE int32x4_t vcvtnq_s32_f32(float32x4_t x) {
return vrshrq_n_s32(vcvtq_n_s32_f32(x, 8), 8);