blob: 4ac85d566a49f092b33ecea5faa405acf0d9ec48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Matt Quintanilla <matt @ matt quintanilla . xyz>
# Contributor: Robert Rakhmatulin <drakonu@otso.city>
pkgver=r17292.1372ca086
pkgname=embree-git
pkgrel=1
pkgdesc="A collection of high-performance ray tracing kernels."
arch=(x86_64)
url="https://github.com/RenderKit/embree"
license=(Apache-2.0)
depends=(glibc gcc-libs sh tbb)
makedepends=(git cmake ispc freeglut libxmu openexr)
provides=(embree)
conflicts=(embree)
source=("git+https://github.com/RenderKit/embree.git")
sha256sums=('SKIP')
pkgver() {
cd "embree"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
# None buildtype not allowed
local _flags=(
-DEMBREE_TUTORIALS=OFF
-DEMBREE_MAX_ISA="AVX512SKX" # Embree detects actual ISA at runtime
)
cmake -B build -S "embree" -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
"${_flags[@]}"
cmake --build build
#-DCMAKE_INSTALL_LIBDIR=lib \
#-DCMAKE_BUILD_TYPE= \
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|