From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/openpgl/
Date: Thu, 08 May 2025 06:29:34 +0000 (UTC) [thread overview]
Message-ID: <1746685602.26f562d679ba80247f44b4a9eea01a65c1228917.sam@gentoo> (raw)
commit: 26f562d679ba80247f44b4a9eea01a65c1228917
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue May 6 14:46:56 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May 8 06:26:42 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26f562d6
media-libs/openpgl: add 0.7.0
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41967
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-libs/openpgl/Manifest | 1 +
media-libs/openpgl/metadata.xml | 3 ++
media-libs/openpgl/openpgl-0.7.0.ebuild | 71 +++++++++++++++++++++++++++++++++
3 files changed, 75 insertions(+)
diff --git a/media-libs/openpgl/Manifest b/media-libs/openpgl/Manifest
index b923542376cb..60bcd0cded81 100644
--- a/media-libs/openpgl/Manifest
+++ b/media-libs/openpgl/Manifest
@@ -1,2 +1,3 @@
DIST openpgl-0.5.0.tar.gz 10767365 BLAKE2B 051b26c17300506dd20989ba9dc1aa83b0baf77c5f24650c74518ae56081b5a0ecca88c13d5d79a71cb0b6fa4a5b4841ee03e5223ec91ab16bb5655f2e52a9d7 SHA512 9b992ffa17ad6f9fcde48add5d9cc1e58be2daacd40478fb1babe0741a6c7a64f12f36c9c1f7d5ec6f79cdd847c082d39e03e58cfd9af1a903adca56f1ac19e1
DIST openpgl-0.6.0.tar.gz 10824550 BLAKE2B a08f5469cce808c51eb64a619621de31923318a230e49ababad2140d00b53d3ad688e095c4f7aba1ac6ebfd874ed1357e4a501bee5f45a826c39cddbab4fa3cd SHA512 a40161d79e9f340e631eda9dedbabd9c71fb0184c65f45e0abcb64ce53289a65b7434c11678f845f76006a0ce579c4458a39200dc8caca1c455f18739488e173
+DIST openpgl-0.7.0.tar.gz 11076606 BLAKE2B a196a0430344a44634415f12b9052b877a2eac077cc52b57f7e64b25b4825631248868607182a3cb524525fa7ab35e6addceaf7a459a31f7d1da602cd5c0a970 SHA512 f5482ddf13217f81936098101c9bc16e63c36f79500aef25d15f7725deb5578ace7cf82764fbdbf4b09262bdef69ed0bcf42e9886cae7129605b31fee0f918ff
diff --git a/media-libs/openpgl/metadata.xml b/media-libs/openpgl/metadata.xml
index 3fa42bd60c93..53fd2d062770 100644
--- a/media-libs/openpgl/metadata.xml
+++ b/media-libs/openpgl/metadata.xml
@@ -21,4 +21,7 @@
<upstream>
<remote-id type="github">RenderKit/openpgl</remote-id>
</upstream>
+ <use>
+ <flag name="tools">Building Open PGL tools as well</flag>
+ </use>
</pkgmetadata>
diff --git a/media-libs/openpgl/openpgl-0.7.0.ebuild b/media-libs/openpgl/openpgl-0.7.0.ebuild
new file mode 100644
index 000000000000..fcfa636fb0eb
--- /dev/null
+++ b/media-libs/openpgl/openpgl-0.7.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Intel Open Path Guiding Library"
+HOMEPAGE="https://github.com/RenderKit/openpgl"
+SRC_URI="https://github.com/RenderKit/openpgl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="-* ~amd64 ~arm64"
+
+X86_CPU_FLAGS=( sse4_2 avx2 avx512dq )
+CPU_FLAGS=( "${X86_CPU_FLAGS[@]/#/cpu_flags_x86_}" )
+IUSE="${CPU_FLAGS[*]} debug tools"
+
+REQUIRED_USE="
+ amd64? ( || ( ${X86_CPU_FLAGS[*]/#/cpu_flags_x86_} ) )
+"
+
+RDEPEND="
+ media-libs/embree:=
+ dev-cpp/tbb:=
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/926890
+ #
+ # Upstream "solved" this by setting -fno-strict-aliasing themselves.
+ # Do not trust with LTO.
+ filter-lto
+
+ : "${CMAKE_POLICY_VERSION_MINIMUM:=3.10}"
+ export CMAKE_POLICY_VERSION_MINIMUM
+
+ local mycmakeargs=(
+ -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 arm64)"
+ # TODO look into neon 2x support
+ # neon2x is "double pumped" neon on apple silicon
+ # -DOPENPGL_ISA_NEON2X="$(usex cpu_flags_arm64_neon2x)"
+
+ -DBUILD_TOOLS="$(usex tools)"
+ -DBUILD_TBB="no"
+ -DBUILD_TBB_FROM_SOURCE="no"
+ -DBUILD_OIDN="no"
+ -DBUILD_OIDN_FROM_SOURCE="no"
+ -DDOWNLOAD_ISPC="no"
+
+ # new in 0.7.0
+ # -DOPENPGL_EF_RADIANCE_CACHES=OFF
+ # -DOPENPGL_EF_IMAGE_SPACE_GUIDING_BUFFER=OFF
+ # -DOPENPGL_DIRECTION_COMPRESSION=OFF
+ # -DOPENPGL_RADIANCE_COMPRESSION=OFF
+ )
+
+ # This is currently needed on arm64 to get the NEON SIMD wrapper to compile the code successfully
+ use arm64 && append-flags -flax-vector-conversions
+
+ # Disable asserts
+ append-cppflags "$(usex debug '' '-DNDEBUG')"
+
+ cmake_src_configure
+}
next reply other threads:[~2025-05-08 6:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-08 6:29 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-16 7:19 [gentoo-commits] repo/gentoo:master commit in: media-libs/openpgl/ Joonas Niilola
2025-01-06 6:52 Joonas Niilola
2024-09-05 2:12 Sam James
2024-09-05 2:12 Sam James
2024-09-05 2:12 Sam James
2024-09-04 9:22 Sam James
2024-04-12 13:08 Joonas Niilola
2024-04-09 14:44 Sam James
2023-07-16 18:46 Sam James
2023-05-09 17:51 Sam James
2023-04-16 3:30 Sam James
2023-04-16 3:30 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1746685602.26f562d679ba80247f44b4a9eea01a65c1228917.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox