diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-06-12 20:24:02 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-04 03:14:52 +0100 |
commit | 687e88e1d62e728b09144c89932f3e9dec90e215 (patch) | |
tree | 17086adbff5b3a20f1def701c7aa0eab4f6902c6 /media-libs | |
parent | games-simulation/lincity-ng: EAPI 7->8, various fixes (diff) | |
download | gentoo-687e88e1d62e728b09144c89932f3e9dec90e215.tar.gz gentoo-687e88e1d62e728b09144c89932f3e9dec90e215.tar.bz2 gentoo-687e88e1d62e728b09144c89932f3e9dec90e215.zip |
media-libs/embree: Implement remaining feedback from review task
Signed-off-by: Sebastian Parborg <darkdefende@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/embree/embree-3.13.0.ebuild | 20 | ||||
-rw-r--r-- | media-libs/embree/metadata.xml | 7 |
2 files changed, 17 insertions, 10 deletions
diff --git a/media-libs/embree/embree-3.13.0.ebuild b/media-libs/embree/embree-3.13.0.ebuild index 7fb5564741fa..f77d5a1eb87c 100644 --- a/media-libs/embree/embree-3.13.0.ebuild +++ b/media-libs/embree/embree-3.13.0.ebuild @@ -7,29 +7,32 @@ inherit cmake flag-o-matic linux-info toolchain-funcs DESCRIPTION="Collection of high-performance ray tracing kernels" HOMEPAGE="https://github.com/embree/embree" -LICENSE="Apache-2.0" -KEYWORDS="~amd64 ~x86" SRC_URI="https://github.com/embree/embree/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" SLOT="3" +KEYWORDS="~amd64 ~x86" X86_CPU_FLAGS=( sse2:sse2 sse4_2:sse4_2 avx:avx avx2:avx2 avx512dq:avx512dq ) CPU_FLAGS=( ${X86_CPU_FLAGS[@]/#/cpu_flags_x86_} ) IUSE="+compact-polys ispc +raymask ssp +tbb tutorial static-libs ${CPU_FLAGS[@]%:*}" +RESTRICT="mirror" + BDEPEND=" virtual/pkgconfig " RDEPEND=" - ispc? ( dev-lang/ispc ) >=media-libs/glfw-3.2.1 + virtual/opengl + ispc? ( dev-lang/ispc ) tbb? ( dev-cpp/tbb ) tutorial? ( >=media-libs/libpng-1.6.34:0= - >=media-libs/openimageio-1.8.7 + >=media-libs/openimageio-1.8.7:0= virtual/jpeg:0 ) - virtual/opengl " DEPEND="${RDEPEND}" -RESTRICT="mirror" + DOCS=( CHANGELOG.md README.md readme.pdf ) pkg_setup() { @@ -62,6 +65,9 @@ src_configure() { filter-flags -march=* local mycmakeargs=( + # Currently Intel only host their test files on their internal network. + # So it seems like users can't easily get a hold of these and do + # regression testing on their own. -DBUILD_TESTING:BOOL=OFF -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON -DEMBREE_BACKFACE_CULLING=OFF # default @@ -93,7 +99,7 @@ src_configure() { -DEMBREE_TUTORIALS=$(usex tutorial) ) # Disable asserts - append-flags -DNDEBUG + append-cppflags -DNDEBUG if use tutorial; then mycmakeargs+=( diff --git a/media-libs/embree/metadata.xml b/media-libs/embree/metadata.xml index 9fb89375a782..dcaede1dd583 100644 --- a/media-libs/embree/metadata.xml +++ b/media-libs/embree/metadata.xml @@ -20,15 +20,16 @@ <flag restrict=">=media-libs/embree-3.12.2" name="compact-polys"> Enables double indexed poly layout. </flag> - <flag restrict=">=media-libs/embree-3.12.2" name="ssp"> - When enabled, Embree compiles with stack protection against return address overrides. - </flag> <flag restrict=">=media-libs/embree-3.12.2" name="ispc"> Build Embree with support for ISPC applications. </flag> <flag restrict=">=media-libs/embree-3.12.2" name="raymask"> Enables ray mask support. </flag> + <flag restrict=">=media-libs/embree-3.12.2" name="ssp"> + When enabled, Embree compiles with stack protection against return address overrides. + Stack protection will wield a minor performance decrease in return for higher security. + </flag> <flag restrict=">=media-libs/embree-3.12.2" name="tbb"> Use TBB instead of the built-in Embree tasking system. </flag> |