diff options
author | Sam James <sam@gentoo.org> | 2023-04-25 20:48:01 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-25 20:48:45 +0100 |
commit | 95eafe73daf6e7017a525075c01bf2aef2b9c69e (patch) | |
tree | b56d9020e6b2dff7227c368433e62151d73d059e /media-libs/opus | |
parent | profiles/arch/riscv: Unmask USE=opencl (diff) | |
download | gentoo-95eafe73daf6e7017a525075c01bf2aef2b9c69e.tar.gz gentoo-95eafe73daf6e7017a525075c01bf2aef2b9c69e.tar.bz2 gentoo-95eafe73daf6e7017a525075c01bf2aef2b9c69e.zip |
media-libs/opus: fix build on arm64
Closes: https://bugs.gentoo.org/904739
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/opus')
-rw-r--r-- | media-libs/opus/files/opus-1.4-arm64-neon.patch | 24 | ||||
-rw-r--r-- | media-libs/opus/opus-1.4.ebuild | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/opus/files/opus-1.4-arm64-neon.patch b/media-libs/opus/files/opus-1.4-arm64-neon.patch new file mode 100644 index 000000000000..544d480505ea --- /dev/null +++ b/media-libs/opus/files/opus-1.4-arm64-neon.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/904739 +https://github.com/xiph/opus/issues/273 +https://github.com/xiph/opus/pull/267 + +From d94583359bcf8f1b52cc93b7ca6ced9664fb2a7e Mon Sep 17 00:00:00 2001 +From: Vilius <orion1vi@protonmail.com> +Date: Sun, 27 Nov 2022 03:13:09 +0200 +Subject: [PATCH] Meson: Fix unknown variable have_arm_intrinsics_or_asm + +--- a/silk/meson.build ++++ b/silk/meson.build +@@ -25,6 +25,11 @@ if host_cpu_family in ['x86', 'x86_64'] and opus_conf.has('OPUS_HAVE_RTCD') + silk_sources += sources['SILK_SOURCES_X86_RTCD'] + endif + ++have_arm_intrinsics_or_asm = have_arm_ne10 ++if (intrinsics_support.length() + asm_optimization.length() + inline_optimization.length()) > 0 ++ have_arm_intrinsics_or_asm = true ++endif ++ + if host_cpu_family in ['arm', 'aarch64'] and have_arm_intrinsics_or_asm + if opus_conf.has('OPUS_HAVE_RTCD') + silk_sources += sources['SILK_SOURCES_ARM_RTCD'] + diff --git a/media-libs/opus/opus-1.4.ebuild b/media-libs/opus/opus-1.4.ebuild index 5c116f4d9edc..5468589c3ad0 100644 --- a/media-libs/opus/opus-1.4.ebuild +++ b/media-libs/opus/opus-1.4.ebuild @@ -27,6 +27,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-1.3.1-libdir-macro.patch + "${FILESDIR}"/${PN}-1.4-arm64-neon.patch ) multilib_src_configure() { |