2022-09-29 14:09:35 +00:00
|
|
|
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
2020-01-02 11:37:11 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2020-11-23 14:06:25 +00:00
|
|
|
# - remove makedepend on cuda
|
2020-01-02 11:37:11 +00:00
|
|
|
|
|
|
|
pkgname=opensubdiv
|
2022-09-29 14:09:35 +00:00
|
|
|
pkgver=3.5.0
|
|
|
|
pkgrel=1
|
2020-01-02 11:37:11 +00:00
|
|
|
pkgdesc="An Open-Source subdivision surface library"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="http://graphics.pixar.com/opensubdiv"
|
2020-07-24 21:51:49 +00:00
|
|
|
license=('APACHE')
|
2022-09-29 14:09:35 +00:00
|
|
|
depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama' 'libxi')
|
|
|
|
makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 'python-docutils' 'opencl-headers' 'libglvnd')
|
2020-01-02 11:37:11 +00:00
|
|
|
source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz"
|
2021-12-10 02:59:07 +00:00
|
|
|
cuda11.patch
|
|
|
|
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
|
2022-09-29 14:09:35 +00:00
|
|
|
sha512sums=('7ede8f3f335a6306486d649199117401ab4285d360a3b53a536f25046d94741b5e7eacbc06a55d8a0bd5798c810c1b3cfd7964859f04f95363ad26411310b320'
|
2021-12-10 02:59:07 +00:00
|
|
|
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
|
|
|
|
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
|
2022-02-07 13:42:25 +00:00
|
|
|
options=(!lto)
|
2020-01-02 11:37:11 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "OpenSubdiv-${pkgver//./_}"
|
|
|
|
|
2021-06-27 18:03:00 +00:00
|
|
|
patch -Np1 -i "${srcdir}"/cuda11.patch
|
2021-12-10 02:59:07 +00:00
|
|
|
patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
|
2020-01-02 11:37:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-09-29 14:09:35 +00:00
|
|
|
cd "OpenSubdiv-${pkgver//./_}"
|
2021-06-27 18:03:00 +00:00
|
|
|
|
2022-09-29 14:09:35 +00:00
|
|
|
cmake \
|
|
|
|
-Bbuild \
|
|
|
|
-DNO_EXAMPLES=ON \
|
|
|
|
-DNO_REGRESSION=ON \
|
|
|
|
-DNO_TUTORIALS=ON \
|
2020-01-02 11:37:11 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2021-09-14 13:00:10 +00:00
|
|
|
-DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
|
2021-08-18 12:52:24 +00:00
|
|
|
-DCUDA_HOST_COMPILER=/usr/bin/g++ \
|
2020-01-02 11:37:11 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
|
2022-09-29 14:09:35 +00:00
|
|
|
make -C build
|
2020-01-02 11:37:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-09-29 14:09:35 +00:00
|
|
|
cd "OpenSubdiv-${pkgver//./_}"
|
2020-01-02 11:37:11 +00:00
|
|
|
|
2022-09-29 14:09:35 +00:00
|
|
|
DESTDIR="$pkgdir/" make -C build install
|
2020-01-02 11:37:11 +00:00
|
|
|
}
|