[arch-commits] Commit in openshadinglanguage/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Oct 6 10:22:58 UTC 2019
Date: Sunday, October 6, 2019 @ 10:22:57
Author: foutrelis
Revision: 513204
archrelease: copy trunk to community-staging-x86_64
Added:
openshadinglanguage/repos/community-staging-x86_64/
openshadinglanguage/repos/community-staging-x86_64/PKGBUILD
(from rev 513203, openshadinglanguage/trunk/PKGBUILD)
openshadinglanguage/repos/community-staging-x86_64/llvm9.patch
(from rev 513203, openshadinglanguage/trunk/llvm9.patch)
-------------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
llvm9.patch | 22 ++++++++++++++++++++++
2 files changed, 69 insertions(+)
Copied: openshadinglanguage/repos/community-staging-x86_64/PKGBUILD (from rev 513203, openshadinglanguage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-06 10:22:57 UTC (rev 513204)
@@ -0,0 +1,47 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=openshadinglanguage
+pkgver=1.10.6
+pkgrel=3
+pkgdesc="Advanced shading language for production GI renderers"
+arch=(x86_64)
+url="https://github.com/imageworks/OpenShadingLanguage"
+license=('custom')
+depends=('boost-libs' 'openimageio' 'openexr' 'intel-tbb' 'freetype2' 'libpng'
+ 'libtiff' 'zlib' 'ncurses')
+makedepends=('boost' 'cmake' 'python' 'llvm' 'clang')
+source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz
+ llvm9.patch)
+sha512sums=('5d3a735fa33bfebdba9082345dcfeb89c17e876c9958d8af78f4e2150153062013a88644fc612b5778236eebb16a5ebae9a6d0adb4ff1e152a5c451905220481'
+ 'a52e0c103da6c800115f7140b3d29b78e20cb1a6a704bfe7440c50f1e398997dfd77723bfa9d6001aea7d2a249c3ebcbda3e94ea3ad512830f012a0b0b4bd77b')
+
+prepare() {
+ cd OpenShadingLanguage-Release-$pkgver
+ patch -Np1 -i ../llvm9.patch
+}
+
+build() {
+ cd OpenShadingLanguage-Release-$pkgver/src
+
+ [[ -d build ]] && rm -r build
+ mkdir build && cd build
+
+ cmake ../.. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DLLVM_STATIC=0 \
+ -DENABLERTTI=ON \
+ -DSTOP_ON_WARNING=OFF
+ make
+}
+
+package() {
+ cd OpenShadingLanguage-Release-$pkgver/src/build
+
+ make DESTDIR="$pkgdir/" install
+ mkdir "$pkgdir"/usr/share/OSL
+ mv "$pkgdir"/usr/shaders "$pkgdir"/usr/share/OSL/shaders
+
+ install -Dm644 "$pkgdir"/usr/share/doc/OSL/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
Copied: openshadinglanguage/repos/community-staging-x86_64/llvm9.patch (from rev 513203, openshadinglanguage/trunk/llvm9.patch)
===================================================================
--- community-staging-x86_64/llvm9.patch (rev 0)
+++ community-staging-x86_64/llvm9.patch 2019-10-06 10:22:57 UTC (rev 513204)
@@ -0,0 +1,22 @@
+From 00984c339f524319b38786710528fecbeb1397a1 Mon Sep 17 00:00:00 2001
+From: Larry Gritz <lg at larrygritz.com>
+Date: Thu, 12 Sep 2019 13:11:27 -0700
+Subject: [PATCH] LLVM 9 / clang 9 compatibility (#1058)
+
+diff --git a/src/liboslexec/llvm_util.cpp b/src/liboslexec/llvm_util.cpp
+index 1746ec628..838df1e21 100644
+--- a/src/liboslexec/llvm_util.cpp
++++ b/src/liboslexec/llvm_util.cpp
+@@ -682,7 +682,12 @@ LLVM_Util::make_function (const std::string &name, bool fastcall,
+ bool varargs)
+ {
+ llvm::FunctionType *functype = type_function (rettype, params, varargs);
++#if OSL_LLVM_VERSION >= 90
++ auto funccallee = module()->getOrInsertFunction(name, functype);
++ llvm::Value* c = funccallee.getCallee();
++#else
+ llvm::Constant *c = module()->getOrInsertFunction (name, functype);
++#endif
+ ASSERT (c && "getOrInsertFunction returned NULL");
+ ASSERT_MSG (llvm::isa<llvm::Function>(c),
+ "Declaration for %s is wrong, LLVM had to make a cast", name.c_str());
More information about the arch-commits
mailing list