mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
46 lines
1.4 KiB
Bash
46 lines
1.4 KiB
Bash
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove makedepend on cuda
|
|
|
|
pkgname=opensubdiv
|
|
pkgver=3.4.0
|
|
pkgrel=3
|
|
pkgdesc="An Open-Source subdivision surface library"
|
|
arch=(x86_64)
|
|
url="http://graphics.pixar.com/opensubdiv"
|
|
license=('apache')
|
|
depends=(zlib ptex intel-tbb libxcursor xorg-xrandr libxinerama)
|
|
makedepends=(cmake doxygen glfw glew python python-pygments python-docutils opencl-headers)
|
|
source=("https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${pkgver//./_}.tar.gz"
|
|
python3.patch
|
|
cuda9.patch)
|
|
sha512sums=('b80311aebd74e0c5ce4d185e1baf3626b2a14e9ca113ce7346f06d7506832a7ccdc0e3731c468fa1ebe890099847e808981dfe051bd2ee85fd4dc53c1f10c28c'
|
|
'035a6691080e9ec1a6eb5e4a7746f3f0ba6caea4b74c1bfededdc477b701431456b026ee75dbf7ca03fabd6526f62e9181c616a62304f26e614474577b96fcc7'
|
|
'2aa815acdb873274afb5629c7604ad2586c460a32a7b141c04f71313d03c768798461439cd1b66db565170ca21c7b05a3f8456ab7635b5eb73b1762bea312f4b')
|
|
|
|
prepare() {
|
|
cd "OpenSubdiv-${pkgver//./_}"
|
|
|
|
patch -Np1 -i "${srcdir}"/python3.patch
|
|
patch -Np1 -i "${srcdir}"/cuda9.patch
|
|
mkdir build
|
|
}
|
|
|
|
build() {
|
|
cd "OpenSubdiv-${pkgver//./_}"/build
|
|
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "OpenSubdiv-${pkgver//./_}"/build
|
|
|
|
DESTDIR="$pkgdir/" make install
|
|
|
|
rm -rf ${pkgdir}/usr/bin
|
|
}
|