[arch-commits] Commit in openshadinglanguage/repos/community-x86_64 (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed Oct 16 18:53:00 UTC 2019
Date: Wednesday, October 16, 2019 @ 18:52:59
Author: svenstaro
Revision: 516383
archrelease: copy trunk to community-x86_64
Added:
openshadinglanguage/repos/community-x86_64/PKGBUILD
(from rev 516382, openshadinglanguage/trunk/PKGBUILD)
Deleted:
openshadinglanguage/repos/community-x86_64/PKGBUILD
openshadinglanguage/repos/community-x86_64/llvm9.patch
-------------+
PKGBUILD | 88 +++++++++++++++++++++++++++-------------------------------
llvm9.patch | 22 --------------
2 files changed, 41 insertions(+), 69 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-16 18:52:48 UTC (rev 516382)
+++ PKGBUILD 2019-10-16 18:52:59 UTC (rev 516383)
@@ -1,47 +0,0 @@
-# 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-x86_64/PKGBUILD (from rev 516382, openshadinglanguage/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-16 18:52:59 UTC (rev 516383)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+pkgname=openshadinglanguage
+pkgver=1.10.7
+pkgrel=1
+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)
+sha512sums=('3d6e2f6f6c04bd70f347b37c0d0f56291a9c03222c3418e0f87e87112e2ac05c50b65e772835709491c750093d693a6ba834cd0fafe3d80017051a51511ecd68')
+
+prepare() {
+ mkdir OpenShadingLanguage-Release-$pkgver/src/build
+}
+
+build() {
+ cd OpenShadingLanguage-Release-$pkgver/src/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:
Deleted: llvm9.patch
===================================================================
--- llvm9.patch 2019-10-16 18:52:48 UTC (rev 516382)
+++ llvm9.patch 2019-10-16 18:52:59 UTC (rev 516383)
@@ -1,22 +0,0 @@
-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