summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2023-05-08 15:04:30 +0200
committerSam James <sam@gentoo.org>2023-05-09 18:50:57 +0100
commit16849d33698b30b667ff6057e613a56435ed087d (patch)
tree0b2ad7d837614c7a4d6f1acc20d808c6c0928282 /media-libs/openpgl
parentmedia-libs/embree: Fix arches and REQUIRED_USE (diff)
downloadgentoo-16849d33698b30b667ff6057e613a56435ed087d.tar.gz
gentoo-16849d33698b30b667ff6057e613a56435ed087d.tar.bz2
gentoo-16849d33698b30b667ff6057e613a56435ed087d.zip
media-libs/openpgl: Fix arches and REQUIRED_USE
OpenPGL does not support anything else than amd64 and arm64. The other arches will not compile. Closes: https://bugs.gentoo.org/905661 Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/openpgl')
-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