From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1566455-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F3ECF158089 for <garchives@archives.gentoo.org>; Sat, 28 Oct 2023 21:46:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 39BCD2BC013; Sat, 28 Oct 2023 21:46:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22BF92BC014 for <gentoo-commits@lists.gentoo.org>; Sat, 28 Oct 2023 21:46:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F09B335C2E for <gentoo-commits@lists.gentoo.org>; Sat, 28 Oct 2023 21:46:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E67DC12D7 for <gentoo-commits@lists.gentoo.org>; Sat, 28 Oct 2023 21:46:17 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1698529436.4df03b53e1e18559ef77d9ed2e756db7f6262a3b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opencolorio/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/opencolorio/opencolorio-2.3.0.ebuild X-VCS-Directories: media-libs/opencolorio/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4df03b53e1e18559ef77d9ed2e756db7f6262a3b X-VCS-Branch: master Date: Sat, 28 Oct 2023 21:46:17 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5aa64a66-6324-4fe1-a17e-c639b58e329d X-Archives-Hash: 16eda728d03719f9b157bd04bb667b76 commit: 4df03b53e1e18559ef77d9ed2e756db7f6262a3b Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Sat Oct 28 11:01:10 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Oct 28 21:43:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4df03b53 media-libs/opencolorio: 2.3.0 support SIMD, drop old cmake option reflect upstream changes in the ebuild: - dropped USE_SSE and added extended SIMD support https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/9cc24865599579f02fa07c09880518bef2058a03 arm support depends on - dropped OCIO_UISE_OIIO_CMAKE_CONFIG https://github.com/AcademySoftwareFoundation/OpenColorIO/commit/e93efe3b703d491faf4c4ead0823fb0e48734b1b Closes: https://bugs.gentoo.org/914863 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/opencolorio/opencolorio-2.3.0.ebuild | 35 ++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/media-libs/opencolorio/opencolorio-2.3.0.ebuild b/media-libs/opencolorio/opencolorio-2.3.0.ebuild index 13f9c323a420..f86fc7933d70 100644 --- a/media-libs/opencolorio/opencolorio-2.3.0.ebuild +++ b/media-libs/opencolorio/opencolorio-2.3.0.ebuild @@ -17,7 +17,12 @@ SLOT="0/$(ver_cut 1-2)" # minizip-ng: ~arm ~arm64 ~ppc64 ~riscv # osl: ~riscv KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" -IUSE="apps cpu_flags_x86_sse2 doc opengl python test" +CPU_USE=( + x86_{avx,avx2,avx512f,f16c,sse2,sse3,sse4_1,sse4_2,ssse3} + # requires https://github.com/DLTcollab/sse2neon + # arm_neon +) +IUSE="apps ${CPU_USE[@]/#/cpu_flags_} doc opengl python test" # TODO: drop opengl? It does nothing without building either the apps or the testsuite REQUIRED_USE=" apps? ( opengl ) @@ -114,9 +119,33 @@ src_configure() { "-DOCIO_BUILD_PYTHON=$(usex python)" "-DOCIO_BUILD_TESTS=$(usex test)" "-DOCIO_INSTALL_EXT_PACKAGES=NONE" - "-DOCIO_USE_OIIO_CMAKE_CONFIG=ON" - "-DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2)" + # allow the user to tell OCIO to display more information when searching and building the dependencies. + # "-DOCIO_VERBOSE=YES" + + "-DOCIO_USE_SIMD=ON" ) + + if use amd64 || use x86 ; then + mycmakeargs+=( + "-DOCIO_USE_SSE2=$(usex cpu_flags_x86_sse2)" + "-DOCIO_USE_SSE3=$(usex cpu_flags_x86_sse3)" + "-DOCIO_USE_SSSE3=$(usex cpu_flags_x86_ssse3)" + "-DOCIO_USE_SSE4=$(usex cpu_flags_x86_sse4_1)" + "-DOCIO_USE_SSE42=$(usex cpu_flags_x86_sse4_2)" + "-DOCIO_USE_AVX=$(usex cpu_flags_x86_avx)" + "-DOCIO_USE_AVX2=$(usex cpu_flags_x86_avx2)" + "-DOCIO_USE_AVX512=$(usex cpu_flags_x86_avx512f)" + "-DOCIO_USE_F16C=$(usex cpu_flags_x86_f16c)" + ) + fi + + # requires https://github.com/DLTcollab/sse2neon + # if use arm || use arm64 ; then + # mycmakeargs+=( + # "-DOCIO_USE_SSE2NEON=$(usex cpu_flags_arm_neon)" + # ) + # fi + use python && mycmakeargs+=( "-DOCIO_PYTHON_VERSION=${EPYTHON/python/}" "-DPython_EXECUTABLE=${PYTHON}"