mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/embree3: new aport
https://www.embree.org/ High Performance Ray Tracing Kernels
This commit is contained in:
parent
b76fc31cd9
commit
d5a0122246
44
testing/embree3/APKBUILD
Normal file
44
testing/embree3/APKBUILD
Normal file
@ -0,0 +1,44 @@
|
||||
# Contributor: Leon Marz <main@lmarz.org>
|
||||
# Maintainer: Leon Marz <main@lmarz.org>
|
||||
pkgname=embree3
|
||||
pkgver=3.13.5
|
||||
pkgrel=1
|
||||
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="clang cmake onetbb-dev samurai"
|
||||
subpackages="$pkgname-dev"
|
||||
source="embree-$pkgver.tar.gz::https://github.com/embree/embree/archive/v$pkgver.tar.gz
|
||||
fix-install-detection.patch
|
||||
"
|
||||
options="!check" # no tests provided
|
||||
builddir="$srcdir/embree-$pkgver"
|
||||
|
||||
build() {
|
||||
# takes significantly less memory allowing higher than -j4
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
|
||||
# build shared library
|
||||
cmake -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||
-DBUILD_SHARED_LIBS=True \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DEMBREE_ISPC_SUPPORT=OFF \
|
||||
-DEMBREE_TUTORIALS=OFF \
|
||||
-DEMBREE_RAY_MASK=ON
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
cd "$pkgdir"
|
||||
rm -r usr/share
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
13ae19b1750197fb4887ba601c75d1b54b3c388224672b6561dd922bc9b9747139cf46ce554727e3afa13dcf152ce4d703935cb9105ced792b011f2d05fa3e95 embree-3.13.5.tar.gz
|
||||
c21523a6b7b20829a9c589eaba1d5fa235f123557d0ab59804e315002410a4ae1c3793d53ba114cf13c0cd008c54a4bf3d4781b5877d7ecdcbf4970ae2950324 fix-install-detection.patch
|
||||
"
|
||||
14
testing/embree3/fix-install-detection.patch
Normal file
14
testing/embree3/fix-install-detection.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- a/common/cmake/installTBB.cmake
|
||||
+++ b/common/cmake/installTBB.cmake
|
||||
@@ -1,11 +1,6 @@
|
||||
## Copyright 2009-2021 Intel Corporation
|
||||
## SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
-IF (EMBREE_STATIC_LIB)
|
||||
- INSTALL(TARGETS TBB EXPORT TBB-targets)
|
||||
- INSTALL(EXPORT TBB-targets DESTINATION "${EMBREE_CMAKEEXPORT_DIR}" COMPONENT devel)
|
||||
-ENDIF()
|
||||
-
|
||||
IF (EMBREE_INSTALL_DEPENDENCIES)
|
||||
IF (TARGET TBB::tbb)
|
||||
GET_TARGET_PROPERTY(LIB_PATH TBB::tbb IMPORTED_LOCATION_RELEASE)
|
||||
Loading…
x
Reference in New Issue
Block a user