commit:     420e47c2a082e16c9ac7a793a6f7bc26cb5befc9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 14 00:29:23 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Apr 14 06:46:33 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=420e47c2

media-libs/libpng: fix CPU_FLAGS_ARM_NEON configure argument

* Use more appropriate helper (use_enable)
* Fix configure value given (we need either 'check' or 'api').

API is discouraged (as per configure output) and also unfortunate
for users because it means intrinsics are not used by default.

So, we use 'check'.

Signed-off-by: Sam James <sam <AT> gentoo.org>
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 media-libs/libpng/libpng-1.6.37-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-libs/libpng/libpng-1.6.37-r2.ebuild 
b/media-libs/libpng/libpng-1.6.37-r2.ebuild
index d33afa9ad4b..9d45e05e51c 100644
--- a/media-libs/libpng/libpng-1.6.37-r2.ebuild
+++ b/media-libs/libpng/libpng-1.6.37-r2.ebuild
@@ -32,7 +32,7 @@ multilib_src_configure() {
        local myeconfargs=(
                $(use_enable cpu_flags_x86_sse intel-sse)
                $(use_enable static-libs static)
-               --enable-arm-neon=$(usex cpu_flags_arm_neon)
+               $(use_enable cpu_flags_arm_neon arm-neon check)
        )
        ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
 }

Reply via email to