PKGBUILDs/extra/opensubdiv/PKGBUILD

53 lines
2 KiB
Bash
Raw Normal View History

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
2024-02-16 14:00:28 +00:00
pkgver=3.6.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')
2024-02-16 14:00:28 +00:00
source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz")
sha512sums=('a976733a26e2c0f6510f59d4372b1b33f5404a9d536bcbd6ae3a1a0ffd1bba5495df7108bebc854d5c069575772c97c0d00f0f16f79e87611376ba84e9ae7a4b')
2022-02-07 13:42:25 +00:00
options=(!lto)
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 \
2022-11-14 13:53:42 +00:00
-DOSD_CUDA_NVCC_FLAGS="-gencode=arch=compute_52,code=sm_52 \
-gencode=arch=compute_53,code=sm_53 \
-gencode=arch=compute_60,code=sm_60 \
-gencode=arch=compute_61,code=sm_61 \
-gencode=arch=compute_62,code=sm_62 \
-gencode=arch=compute_70,code=sm_70 \
-gencode=arch=compute_72,code=sm_72 \
-gencode=arch=compute_75,code=sm_75 \
-gencode=arch=compute_80,code=sm_80 \
-gencode=arch=compute_86,code=sm_86 \
-gencode=arch=compute_87,code=sm_87 \
-gencode=arch=compute_89,code=sm_89 \
-gencode=arch=compute_90,code=sm_90 \
-gencode=arch=compute_90,code=compute_90" \
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
}