[arch-commits] Commit in openshadinglanguage/repos (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Jun 22 22:36:51 UTC 2022


    Date: Wednesday, June 22, 2022 @ 22:36:51
  Author: foutrelis
Revision: 1239190

archrelease: copy trunk to community-staging-x86_64

Added:
  openshadinglanguage/repos/community-staging-x86_64/
  openshadinglanguage/repos/community-staging-x86_64/PKGBUILD
    (from rev 1239189, openshadinglanguage/trunk/PKGBUILD)
  openshadinglanguage/repos/community-staging-x86_64/llvm14.patch
    (from rev 1239189, openshadinglanguage/trunk/llvm14.patch)

--------------+
 PKGBUILD     |   45 +++++++++++++++++++++++++++++++++++++++++++++
 llvm14.patch |   16 ++++++++++++++++
 2 files changed, 61 insertions(+)

Copied: openshadinglanguage/repos/community-staging-x86_64/PKGBUILD (from rev 1239189, openshadinglanguage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-06-22 22:36:51 UTC (rev 1239190)
@@ -0,0 +1,45 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+pkgname=openshadinglanguage
+pkgver=1.11.17.0
+pkgrel=4
+pkgdesc="Advanced shading language for production GI renderers"
+arch=(x86_64)
+url="https://github.com/imageworks/OpenShadingLanguage"
+license=('custom')
+depends=('boost-libs' 'openimageio' 'imath' 'freetype2' 'libpng'
+         'libtiff' 'zlib' 'ncurses' 'clang')
+makedepends=('boost' 'cmake' 'python' 'llvm' 'ninja')
+optdepends=('python: the Python module')
+source=($pkgname-$pkgver.tar.gz::https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz
+        llvm14.patch)
+sha512sums=('14cb25b10f4644551b906344a289e2a4c421f4c85beaa120bb1a1e532c9be3ec235622516c4700fb23d258c5dcd1ece18b84491b0973b3162098843a9059b1d2'
+            'eb7036e6bacab49508d8d55ce2fcc923527bf79e46451ce17261c18b36dae64a67f7be356bf0ac91e52cc6381a42778aff37f4d7b626232d79eb739d8773fa44')
+
+prepare() {
+  cd OpenShadingLanguage-Release-$pkgver
+  patch -Np1 -i ../llvm14.patch
+}
+
+build() {
+  cd OpenShadingLanguage-Release-$pkgver
+
+  cmake \
+    -B build \
+    -GNinja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_CXX_STANDARD=14 \
+    -DLLVM_STATIC=0 \
+    -DSTOP_ON_WARNING=OFF
+  ninja -C build
+}
+
+package() {
+  cd OpenShadingLanguage-Release-$pkgver
+
+  DESTDIR="$pkgdir/" ninja -C build install
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}
+
+# vim:set ts=2 sw=2 et:

Copied: openshadinglanguage/repos/community-staging-x86_64/llvm14.patch (from rev 1239189, openshadinglanguage/trunk/llvm14.patch)
===================================================================
--- community-staging-x86_64/llvm14.patch	                        (rev 0)
+++ community-staging-x86_64/llvm14.patch	2022-06-22 22:36:51 UTC (rev 1239190)
@@ -0,0 +1,16 @@
+diff --git a/src/liboslexec/llvm_util.cpp b/src/liboslexec/llvm_util.cpp
+index 45e0b3e4..96651f00 100644
+--- a/src/liboslexec/llvm_util.cpp
++++ b/src/liboslexec/llvm_util.cpp
+@@ -37,7 +37,11 @@
+ #include <llvm/Support/raw_os_ostream.h>
+ #include <llvm/IR/LegacyPassManager.h>
+ #include <llvm/IR/ValueSymbolTable.h>
++#if OSL_LLVM_VERSION < 140
+ #include <llvm/Support/TargetRegistry.h>
++#else
++#include <llvm/MC/TargetRegistry.h>
++#endif
+ 
+ #include <llvm/Bitcode/BitcodeReader.h>
+ #include <llvm/Bitcode/BitcodeWriter.h>



More information about the arch-commits mailing list