Date: Sunday, March 12, 2023 @ 10:07:08
Author: svenstaro
Revision: 1419247
archrelease: copy trunk to community-staging-x86_64
Added:
embree/repos/community-staging-x86_64/
embree/repos/community-staging-x86_64/PKGBUILD
(from rev 1419246, embree/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: embree/repos/community-staging-x86_64/PKGBUILD (from rev 1419246,
embree/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-03-12 10:07:08 UTC (rev 1419247)
@@ -0,0 +1,37 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Maintainer: Bruno Pagani <[email protected]>
+# Contributor: Lukas Jirkovsky <[email protected]>
+
+pkgname=embree
+pkgver=4.0.1
+pkgrel=1
+pkgdesc="Collection of high-performance ray tracing kernels"
+arch=('x86_64')
+url="https://embree.github.io/"
+license=('Apache')
+depends=('intel-tbb')
+makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'ninja')
+source=(https://github.com/embree/embree/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('1fa3982fa3531f1b6e81f19e6028ae8a62b466597f150b853440fe35ef7c6c06')
+
+build() {
+ # Embree detects actual ISA at runtime but we have to set a high maximum
+ # buildtime version as it would otherwise default to the builder processor.
+ cmake \
+ -B build \
+ -G Ninja \
+ -S ${pkgname}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DEMBREE_TUTORIALS=OFF \
+ -DEMBREE_MAX_ISA="AVX512SKX" \
+ -DEMBREE_BACKFACE_CULLING=OFF
+ ninja -C build
+ # Maybe enable these later once they are out of beta:
+ # -DEMBREE_SYCL_SUPPORT=ON \
+ # -DEMBREE_SYCL_LARGEGRF=ON
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja -C build install
+}