diff options
Diffstat (limited to 'community/embree/APKBUILD')
-rw-r--r-- | community/embree/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/embree/APKBUILD b/community/embree/APKBUILD index b0c91c9f3bb..1014ef7763b 100644 --- a/community/embree/APKBUILD +++ b/community/embree/APKBUILD @@ -1,20 +1,23 @@ # Contributor: Leon Marz <main@lmarz.org> # Maintainer: Leon Marz <main@lmarz.org> pkgname=embree -pkgver=3.13.3 -pkgrel=1 +pkgver=4.3.1 +pkgrel=0 pkgdesc="High Performance Ray Tracing Kernels" url="https://www.embree.org/" arch="aarch64 x86_64" # embree needs sse2 and 64 bit license="Apache-2.0" -makedepends="cmake libtbb-dev samurai" +makedepends="clang cmake onetbb-dev samurai" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/embree/embree/archive/v$pkgver.tar.gz - fix-install-detection.patch - " +source="$pkgname-$pkgver.tar.gz::https://github.com/embree/embree/archive/v$pkgver.tar.gz" options="!check" # no tests provided build() { + # fixes build for arm from 3.13.4 with some broken neon instructions, + # and takes significantly less memory allowing higher than -j4 + export CC=clang + export CXX=clang++ + # build static library cmake -B build-static -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -24,7 +27,7 @@ build() { -DEMBREE_TUTORIALS=OFF \ -DEMBREE_RAY_MASK=ON \ -DEMBREE_STATIC_LIB=ON - cmake --build build-static -j4 + cmake --build build-static # build shared library cmake -B build-shared -G Ninja \ @@ -35,15 +38,17 @@ build() { -DEMBREE_ISPC_SUPPORT=OFF \ -DEMBREE_TUTORIALS=OFF \ -DEMBREE_RAY_MASK=ON - cmake --build build-shared -j4 + cmake --build build-shared } package() { DESTDIR="$pkgdir" cmake --install build-static DESTDIR="$pkgdir" cmake --install build-shared + + # garbage embree-vars.sh installed + rm "$pkgdir"/usr/embree* } sha512sums=" -eef8d9101f0bf95d6706a495a9aa628c10749862aeb2baa6bba2f82fcc3a96467a28ca1f522d672eb5aa7b29824363674feda25832724da361b3334334a218cd embree-3.13.3.tar.gz -c21523a6b7b20829a9c589eaba1d5fa235f123557d0ab59804e315002410a4ae1c3793d53ba114cf13c0cd008c54a4bf3d4781b5877d7ecdcbf4970ae2950324 fix-install-detection.patch +da7710c6dfaa90970c223a503702fc7c7dd86c1397372b3d6f51c4377d28d8e62b90ee8c99b70e3aa49e16971a5789bb8f588ea924881b9dd5dd8d5fcd16518a embree-4.3.1.tar.gz " |