community/opensubdiv to 3.5.0-1

This commit is contained in:
Kevin Mihelich 2022-09-29 14:09:35 +00:00
parent d5f9df8cd0
commit 845eb37d4d

View file

@ -1,23 +1,21 @@
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com> # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepend on cuda # - remove makedepend on cuda
pkgname=opensubdiv pkgname=opensubdiv
pkgver=3.4.4 pkgver=3.5.0
pkgrel=11 pkgrel=1
pkgdesc="An Open-Source subdivision surface library" pkgdesc="An Open-Source subdivision surface library"
arch=(x86_64) arch=(x86_64)
url="http://graphics.pixar.com/opensubdiv" url="http://graphics.pixar.com/opensubdiv"
license=('APACHE') license=('APACHE')
depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama') depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama' 'libxi')
makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 'python-docutils' 'opencl-headers') makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 'python-docutils' 'opencl-headers' 'libglvnd')
source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz" source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz"
python3.patch
cuda11.patch cuda11.patch
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch) opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
sha512sums=('fc8f28b79347015c8991150535c1339e695d96947c72fadd4fa27b546a0813c1125cd175ee03bed5aacdb3609f74c4e526ef70103d1195ba9f7df041e73ea9fb' sha512sums=('7ede8f3f335a6306486d649199117401ab4285d360a3b53a536f25046d94741b5e7eacbc06a55d8a0bd5798c810c1b3cfd7964859f04f95363ad26411310b320'
'10f1f63e07d59deb4d91ba04448bb360efff0e41202bb6737caffbce09ba244efb349fe25b24880420b80fdadb268aed84923464af0d66ee1a36e4ba8f96cfd5'
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292' '9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf') 'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
options=(!lto) options=(!lto)
@ -25,31 +23,28 @@ options=(!lto)
prepare() { prepare() {
cd "OpenSubdiv-${pkgver//./_}" cd "OpenSubdiv-${pkgver//./_}"
patch -Np1 -i "${srcdir}"/python3.patch
patch -Np1 -i "${srcdir}"/cuda11.patch patch -Np1 -i "${srcdir}"/cuda11.patch
patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021 patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
mkdir build
} }
build() { build() {
cd "OpenSubdiv-${pkgver//./_}"/build cd "OpenSubdiv-${pkgver//./_}"
# wtf cmake \
mkdir -p CMakeFiles/osd_static_gpu.dir/osd -Bbuild \
-DNO_EXAMPLES=ON \
cmake .. \ -DNO_REGRESSION=ON \
-DNO_TUTORIALS=ON \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \ -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
-DCUDA_HOST_COMPILER=/usr/bin/g++ \ -DCUDA_HOST_COMPILER=/usr/bin/g++ \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_PREFIX=/usr
make make -C build
} }
package() { package() {
cd "OpenSubdiv-${pkgver//./_}"/build cd "OpenSubdiv-${pkgver//./_}"
DESTDIR="$pkgdir/" make install DESTDIR="$pkgdir/" make -C build install
rm -rf "${pkgdir}"/usr/bin
} }