[arch-commits] Commit in embree/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Mon Jan 15 10:56:59 UTC 2018


    Date: Monday, January 15, 2018 @ 10:56:54
  Author: archange
Revision: 282633

Rebuild embree with AVX2 support

AVX512 pending.

Modified:
  embree/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-15 10:49:17 UTC (rev 282632)
+++ PKGBUILD	2018-01-15 10:56:54 UTC (rev 282633)
@@ -1,8 +1,10 @@
 # $Id$
 # Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
 pkgname=embree
 pkgver=2.17.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A collection of high-performance ray tracing kernels"
 arch=('x86_64')
 url="https://embree.github.io/"
@@ -9,11 +11,13 @@
 license=('Apache')
 depends=('intel-tbb')
 makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'openexr')
-source=("$pkgname-${pkgver}.tar.gz::https://github.com/embree/embree/archive/v${pkgver}.tar.gz")
+provides=('embree-isa')
+replaces=('embree-isa')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/embree/embree/archive/v${pkgver}.tar.gz")
 sha256sums=('ab4af2f86690f82228337bb4e54213ca3316fd38726770f720fe2c9b4cf0f066')
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd ${pkgname}-${pkgver}
 
   cmake . \
     -DCMAKE_INSTALL_PREFIX=/usr \
@@ -20,12 +24,14 @@
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DCMAKE_BUILD_TYPE=Release \
     -DEMBREE_TUTORIALS=OFF \
-    -DEMBREE_MAX_ISA="SSE2"
+    -DEMBREE_MAX_ISA="AVX2"
+  # Embree detects actual ISA at runtime
+  # AVX512KNL/SKX: https://github.com/embree/embree/issues/169
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
 }
 



More information about the arch-commits mailing list