# Contributor: Lukas Jirkovsky # Contributor: gucong # Maintainer: Erich Eckner pkgname=embree-isa pkgver=3.7.0 pkgrel=1 pkgdesc="A collection of high-performance ray tracing kernels (with build-time ISA detection)" arch=('x86_64') url="https://embree.github.io/" license=('Apache') depends=('intel-tbb') provides=('embree') conflicts=('embree') makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'openexr') source=("embree-${pkgver}.tar.gz::https://github.com/embree/embree/archive/v${pkgver}.tar.gz") sha512sums=('03b7395d56e1837e33f49fc1dc4bf917ce28bfdb74dbabded6429ce9c1985a6e14e5e16d4390da2457b9e6a64353538286463fb957e90d9a087bf9119e8fa494') build() { cd "$srcdir/embree-$pkgver" MAX_ISA="SSE2" cat /proc/cpuinfo | grep sse3 > /dev/null && MAX_ISA="SSE3" cat /proc/cpuinfo | grep sse4_1 > /dev/null && MAX_ISA="SSE4.1" cat /proc/cpuinfo | grep sse4_2 > /dev/null && MAX_ISA="SSE4.2" cat /proc/cpuinfo | grep avx > /dev/null && MAX_ISA="AVX" cat /proc/cpuinfo | grep avx2 > /dev/null && MAX_ISA="AVX2" # ICC required for avx512 ? echo MAX_ISA: $MAX_ISA cmake . \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ -DEMBREE_TUTORIALS=OFF \ -DEMBREE_MAX_ISA="$MAX_ISA" make } package() { cd "$srcdir/embree-$pkgver" make DESTDIR="$pkgdir" install }