mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-07 17:02:22 +01:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
# Contributor: Leon Marz <main@lmarz.org>
|
|
# Maintainer: Leon Marz <main@lmarz.org>
|
|
pkgname=embree
|
|
pkgver=3.13.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"
|
|
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/embree/embree/archive/v$pkgver.tar.gz"
|
|
options="!check" # no tests provided
|
|
|
|
build() {
|
|
# build static library
|
|
cmake -B build-static \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DEMBREE_ISPC_SUPPORT=OFF \
|
|
-DEMBREE_TUTORIALS=OFF \
|
|
-DEMBREE_RAY_MASK=ON \
|
|
-DEMBREE_STATIC_LIB=ON
|
|
cmake --build build-static -j4
|
|
|
|
# build shared library
|
|
cmake -B build-shared \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=True \
|
|
-DCMAKE_BUILD_TYPE=None \
|
|
-DEMBREE_ISPC_SUPPORT=OFF \
|
|
-DEMBREE_TUTORIALS=OFF \
|
|
-DEMBREE_RAY_MASK=ON
|
|
cmake --build build-shared -j4
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build-static
|
|
DESTDIR="$pkgdir" cmake --install build-shared
|
|
}
|
|
|
|
sha512sums="
|
|
a7bd65238254733770ca01cc3b45dc957b8789ed535eb2ef06120c4228cbcca657c9b5bea4f3695cb722ede78d764297e5b5a5599c82403a66d42f500abac8d0 embree-3.13.1.tar.gz
|
|
"
|