mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/openshadinglanguage to 1.9.7-1
This commit is contained in:
parent
71d4c89605
commit
dc65ac1fb7
1 changed files with 9 additions and 15 deletions
|
@ -6,26 +6,24 @@
|
||||||
# - set -DUSE_LLVM_BITCODE=OFF for v5 and v6
|
# - set -DUSE_LLVM_BITCODE=OFF for v5 and v6
|
||||||
|
|
||||||
pkgname=openshadinglanguage
|
pkgname=openshadinglanguage
|
||||||
pkgver=1.7.6
|
pkgver=1.9.7
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc="Advanced shading language for production GI renderers"
|
pkgdesc="Advanced shading language for production GI renderers"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url="https://github.com/imageworks/OpenShadingLanguage"
|
url="https://github.com/imageworks/OpenShadingLanguage"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('boost-libs' 'openimageio' 'openexr' 'freetype2' 'libpng'
|
depends=('boost-libs' 'openimageio' 'openexr' 'freetype2' 'libpng'
|
||||||
'libtiff' 'zlib' 'ncurses')
|
'libtiff' 'zlib' 'ncurses')
|
||||||
makedepends=('boost' 'cmake' 'llvm35' 'clang35')
|
makedepends=('boost' 'cmake' 'llvm' 'clang')
|
||||||
source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz
|
source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz)
|
||||||
llvm-static-system-libs.patch)
|
sha512sums=('ab232e45eaecb9d56938bfbd2a76999c3dc3033c31cdae3bd48f18642f98211b7255aa2a11bfda13a29100f4bfeade0643d34cb5007d23662894a48139b166e5')
|
||||||
sha512sums=('c0f0f1aece6be0aca9751dd53063b2f3f14482d21304e0606c21f786d00adfb92025ca10c928bbc9b591a862aada0393efd62b4e27e39669e013264a2cb5c1ef'
|
|
||||||
'50f1e9a3e88b0b4e328778d4d8eb30989e1dfed0abe1bb84681dc8d368f343f3052dd975d7d500113d39f34bb8b59415c7a4e6dd841bc8d44de250a3b7f6aeec')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd OpenShadingLanguage-Release-$pkgver
|
cd OpenShadingLanguage-Release-$pkgver
|
||||||
|
|
||||||
# Add system libraries needed to link against LLVM components (zlib, ncurses)
|
# Add system libraries needed to link against LLVM components (zlib, ncurses)
|
||||||
# This is required in order to statically link against LLVM
|
# This is required in order to statically link against LLVM
|
||||||
patch -Np1 < $srcdir/llvm-static-system-libs.patch
|
#patch -Np1 < $srcdir/llvm-static-system-libs.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -39,7 +37,8 @@ build() {
|
||||||
cmake ../.. \
|
cmake ../.. \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DENABLERTTI=ON \
|
-DENABLERTTI=ON \
|
||||||
-DLLVM_STATIC=1 \
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
||||||
|
-DLLVM_STATIC=0 \
|
||||||
-DOSL_BUILD_CPP11=1 \
|
-DOSL_BUILD_CPP11=1 \
|
||||||
-DSTOP_ON_WARNING=OFF \
|
-DSTOP_ON_WARNING=OFF \
|
||||||
$BITCODE
|
$BITCODE
|
||||||
|
@ -51,12 +50,7 @@ package() {
|
||||||
|
|
||||||
make DESTDIR="$pkgdir/" install
|
make DESTDIR="$pkgdir/" install
|
||||||
|
|
||||||
mkdir -p "$pkgdir"/usr/share/OSL/
|
install -Dm644 "$pkgdir"/usr/share/doc/OSL/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
|
|
||||||
mv "$pkgdir"/usr/LICENSE "$pkgdir"/usr/share/licenses/$pkgname # TODO: Tell upstream about this shit
|
|
||||||
mv "$pkgdir"/usr/{CHANGES,README.md,INSTALL} "$pkgdir"/usr/share/OSL/
|
|
||||||
mv "$pkgdir"/usr/doc "$pkgdir"/usr/share/OSL/doc
|
|
||||||
mv "$pkgdir"/usr/shaders "$pkgdir"/usr/share/OSL/shaders
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue