[arch-commits] Commit in blender/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Jan 16 10:53:47 UTC 2020
Date: Thursday, January 16, 2020 @ 10:53:46
Author: svenstaro
Revision: 552745
upgpkg: blender 17:2.81.a-4: Enable Optix support
Modified:
blender/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-16 07:46:44 UTC (rev 552744)
+++ PKGBUILD 2020-01-16 10:53:46 UTC (rev 552745)
@@ -10,6 +10,10 @@
# or simply roll with a new version. I usually choose the latter when the former seems
# unreasonable.
+# For legal reasons, we can't separately package the Optix headers so we'll
+# just build the package against them. I checked with NVIDIA and this way is
+# fine with them.
+
_gittag=v2.81a
# _gitcommit=054dbb833e15275e0e991e2c15e754a3e7583716
@@ -16,7 +20,7 @@
pkgname=blender
pkgver=2.81.a
[[ -n $_gitcommit ]] && pkgver=${pkgver}.git1.${_gitcommit:0:8}
-pkgrel=3
+pkgrel=4
epoch=17
pkgdesc="A fully integrated 3D graphics creation suite"
arch=('x86_64')
@@ -33,7 +37,8 @@
source=("git://git.blender.org/blender-addons.git"
"git://git.blender.org/blender-addons-contrib.git"
"git://git.blender.org/blender-translations.git"
- "git://git.blender.org/blender-dev-tools.git")
+ "git://git.blender.org/blender-dev-tools.git"
+ https://developer.download.nvidia.com/redist/optix/v7.0/OptiX-7.0.0-include.zip)
if [[ -n $_gittag ]]; then
source+=("${pkgname}-${pkgver}::git://git.blender.org/blender.git#tag=${_gittag}")
elif [[ -n $_gitcommit ]]; then
@@ -43,6 +48,7 @@
'SKIP'
'SKIP'
'SKIP'
+ 'b2cff73def3757d4259f4b4d318a8ccfe166bf7c215cbb2124f1c81bd6e742f96207285b24eb4d99b527b7b97dc6d5e8fdf2f16d78d5d1e2684c26d681328491'
'SKIP')
prepare() {
@@ -64,6 +70,7 @@
cmake \
-GNinja \
-C../build_files/cmake/config/blender_release.cmake .. \
+ -DOPTIX_ROOT_DIR="$srcdir"/include \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_INSTALL_PORTABLE=OFF \
More information about the arch-commits
mailing list