Date: Thursday, September 29, 2022 @ 12:56:45
  Author: svenstaro
Revision: 1316071

archrelease: copy trunk to community-staging-x86_64

Added:
  opensubdiv/repos/community-staging-x86_64/
  opensubdiv/repos/community-staging-x86_64/PKGBUILD
    (from rev 1316070, opensubdiv/trunk/PKGBUILD)
  opensubdiv/repos/community-staging-x86_64/cuda11.patch
    (from rev 1316070, opensubdiv/trunk/cuda11.patch)

--------------+
 PKGBUILD     |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 cuda11.patch |   17 +++++++++++++++++
 2 files changed, 63 insertions(+)

Copied: opensubdiv/repos/community-staging-x86_64/PKGBUILD (from rev 1316070, 
opensubdiv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-09-29 12:56:45 UTC (rev 1316071)
@@ -0,0 +1,46 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+pkgname=opensubdiv
+pkgver=3.5.0
+pkgrel=1
+pkgdesc="An Open-Source subdivision surface library"
+arch=(x86_64)
+url="http://graphics.pixar.com/opensubdiv";
+license=('APACHE')
+depends=('ptex' 'intel-tbb' 'libxcursor' 'xorg-xrandr' 'libxinerama' 'libxi')
+makedepends=('cmake' 'doxygen' 'glfw' 'glew' 'python' 'python-pygments' 
'python-docutils' 'opencl-headers' 'cuda' 'libglvnd')
+source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz";
+        cuda11.patch
+        
opensubdiv-tbb2021.patch::https://github.com/PixarAnimationStudios/OpenSubdiv/commit/9079a517.patch)
+sha512sums=('7ede8f3f335a6306486d649199117401ab4285d360a3b53a536f25046d94741b5e7eacbc06a55d8a0bd5798c810c1b3cfd7964859f04f95363ad26411310b320'
+            
'9006762976c15a57d30607189d52d0e620b5024da478dcd41a79a88b350740144a88c1a4f455bfb1b79a9f605e0587c1c828a9b0813301acec8bbb516c2bb292'
+            
'c65770d3e65a63c88aa1061e10c5dd6be8616a2479bd5f6d3928c97a5895cfa7d0aac455121db7ee610b9731bfbf07c3f8a26e9cd47623cd1baa046d9aa68cdf')
+options=(!lto)
+
+prepare() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  patch -Np1 -i "${srcdir}"/cuda11.patch
+  patch -Np1 -i "${srcdir}"/opensubdiv-tbb2021.patch # Support TBB 2021
+}
+
+build() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  cmake \
+      -Bbuild \
+      -DNO_EXAMPLES=ON \
+      -DNO_REGRESSION=ON \
+      -DNO_TUTORIALS=ON \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DOSD_CUDA_NVCC_FLAGS='--gpu-architecture=compute_53' \
+      -DCUDA_HOST_COMPILER=/usr/bin/g++ \
+      -DCMAKE_INSTALL_PREFIX=/usr
+
+  make -C build
+}
+
+package() {
+  cd "OpenSubdiv-${pkgver//./_}"
+
+  DESTDIR="$pkgdir/" make -C build install
+}

Copied: opensubdiv/repos/community-staging-x86_64/cuda11.patch (from rev 
1316070, opensubdiv/trunk/cuda11.patch)
===================================================================
--- community-staging-x86_64/cuda11.patch                               (rev 0)
+++ community-staging-x86_64/cuda11.patch       2022-09-29 12:56:45 UTC (rev 
1316071)
@@ -0,0 +1,17 @@
+diff --color -aur OpenSubdiv-3_4_4-old/CMakeLists.txt 
OpenSubdiv-3_4_4-new/CMakeLists.txt
+--- OpenSubdiv-3_4_4-old/CMakeLists.txt        2021-06-14 16:59:54.699746298 
+0300
++++ OpenSubdiv-3_4_4-new/CMakeLists.txt        2021-06-14 17:01:32.976412136 
+0300
+@@ -586,8 +586,12 @@
+         if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
+             if (CUDA_VERSION_MAJOR LESS 6)
+                 set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
+-            else()
++            elseif (CUDA_VERSION_MAJOR LESS 9)
+                 set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
++            elseif (CUDA_VERSION_MAJOR LESS 11)
++                set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_35 )
++            else()
++                set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_53 )
+             endif()
+         endif()
+     endif()

Reply via email to