Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2024 15:54:44 GMT
From:      Christian Weisgerber <naddy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a1c197fb10cb - main - audio/opus: fix build on arm
Message-ID:  <202403121554.42CFsiXR001232@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by naddy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a1c197fb10cb282953644a53f46288358fe99a47

commit a1c197fb10cb282953644a53f46288358fe99a47
Author:     Christian Weisgerber <naddy@FreeBSD.org>
AuthorDate: 2024-03-12 15:48:02 +0000
Commit:     Christian Weisgerber <naddy@FreeBSD.org>
CommitDate: 2024-03-12 15:54:39 +0000

    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]
---
 audio/opus/Makefile                    |  3 +--
 audio/opus/files/patch-dnn_vec__neon.h | 11 +++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/audio/opus/Makefile b/audio/opus/Makefile
index f5fa1e8c8dc8..9c564b45660f 100644
--- a/audio/opus/Makefile
+++ b/audio/opus/Makefile
@@ -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
diff --git a/audio/opus/files/patch-dnn_vec__neon.h b/audio/opus/files/patch-dnn_vec__neon.h
new file mode 100644
index 000000000000..645f72579741
--- /dev/null
+++ b/audio/opus/files/patch-dnn_vec__neon.h
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403121554.42CFsiXR001232>