commit: b59d6e9a2802164a7e79099c45d0e96d2ed7f379
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Sep 2 14:20:30 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Sep 5 02:11:28 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b59d6e9a
media-libs/openpgl: backport Fix arm64 cpuflags
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-libs/openpgl/openpgl-0.5.0-r1.ebuild | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/media-libs/openpgl/openpgl-0.5.0-r1.ebuild
b/media-libs/openpgl/openpgl-0.5.0-r1.ebuild
index 4d0f448a2d7a..d4f48937ffda 100644
--- a/media-libs/openpgl/openpgl-0.5.0-r1.ebuild
+++ b/media-libs/openpgl/openpgl-0.5.0-r1.ebuild
@@ -14,12 +14,11 @@ SLOT="0/$(ver_cut 1-2)"
KEYWORDS="-* amd64 ~arm64"
X86_CPU_FLAGS=( sse4_2 avx2 avx512dq )
-CPU_FLAGS=( cpu_flags_arm_neon "${X86_CPU_FLAGS[@]/#/cpu_flags_x86_}" )
+CPU_FLAGS=( "${X86_CPU_FLAGS[@]/#/cpu_flags_x86_}" )
IUSE="${CPU_FLAGS[*]} debug"
REQUIRED_USE="
amd64? ( || ( ${X86_CPU_FLAGS[*]/#/cpu_flags_x86_} ) )
- arm64? ( cpu_flags_arm_neon )
"
RDEPEND="
@@ -40,13 +39,13 @@ src_configure() {
-DOPENPGL_ISA_SSE4="$(usex cpu_flags_x86_sse4_2)"
-DOPENPGL_ISA_AVX2="$(usex cpu_flags_x86_avx2)"
-DOPENPGL_ISA_AVX512="$(usex cpu_flags_x86_avx512dq)"
- -DOPENPGL_ISA_NEON="$(usex cpu_flags_arm_neon)"
+ -DOPENPGL_ISA_NEON="$(usex arm64)"
# TODO look into neon 2x support
# -DOPENPGL_ISA_NEON2X="$(usex cpu_flags_arm_neon2x)"
)
# This is currently needed on arm64 to get the NEON SIMD wrapper to
compile the code successfully
- use cpu_flags_arm_neon && append-flags -flax-vector-conversions
+ use arm64 && append-flags -flax-vector-conversions
# Disable asserts
append-cppflags "$(usex debug '' '-DNDEBUG')"