summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/openpgl/openpgl-0.5.0.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/media-libs/openpgl/openpgl-0.5.0.ebuild b/media-libs/openpgl/openpgl-0.5.0.ebuild
index 81276940fbc2..67870a6bfa63 100644
--- a/media-libs/openpgl/openpgl-0.5.0.ebuild
+++ b/media-libs/openpgl/openpgl-0.5.0.ebuild
@@ -11,11 +11,12 @@ SRC_URI="https://github.com/OpenPathGuidingLibrary/openpgl/archive/v${PV}.tar.gz
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+KEYWORDS="-* ~amd64 ~arm64"
X86_CPU_FLAGS=( sse4_2 avx2 avx512dq )
-CPU_FLAGS=( ${X86_CPU_FLAGS[@]/#/cpu_flags_x86_} )
-IUSE="${CPU_FLAGS[@]%:*} debug"
+CPU_FLAGS=( cpu_flags_arm_neon ${X86_CPU_FLAGS[@]/#/cpu_flags_x86_} )
+IUSE="${CPU_FLAGS[@]} debug"
+REQUIRED_USE="|| ( ${CPU_FLAGS[@]} )"
RDEPEND="
media-libs/embree
@@ -28,6 +29,8 @@ src_configure() {
-DOPENPGL_ISA_AVX2=$(usex cpu_flags_x86_avx2)
-DOPENPGL_ISA_AVX512=$(usex cpu_flags_x86_avx512dq)
-DOPENPGL_ISA_SSE4=$(usex cpu_flags_x86_sse4_2)
+ # TODO look into neon 2x support
+ -DOPENPGL_ISA_NEON=$(usex cpu_flags_arm_neon)
)
# Disable asserts