blob: 8db0f8b2b3d97e168bb4b79747ee677709abe2f4 (
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
|
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=embree-bvh_build-git
pkgver=7289.1b82e5526
pkgrel=3
pkgdesc="Custom version of Embree exposing BVH builder for use with luxrays"
arch=('x86_64')
url="https://github.com/Dade916/embree/tree/bvh_build"
license=('Apache')
depends=('intel-tbb')
options=(!buildflags staticlibs)
makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'openexr' 'git')
source=('git+https://github.com/Dade916/embree.git#branch=bvh_build')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/embree"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
build() {
cd "$srcdir/embree"
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_INCLUDEDIR=include/embree-bvh_build \
-DCMAKE_INSTALL_LIBDIR=lib/embree-bvh_build \
-DCMAKE_INSTALL_DOCDIR=share/doc/embree-bvh_build \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TUTORIALS=OFF
make
}
package() {
cd "$srcdir/embree/build"
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir/usr/bin"
}
|