summaryrefslogtreecommitdiff
path: root/libre/openshadinglanguage/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/openshadinglanguage/PKGBUILD')
-rw-r--r--libre/openshadinglanguage/PKGBUILD100
1 files changed, 0 insertions, 100 deletions
diff --git a/libre/openshadinglanguage/PKGBUILD b/libre/openshadinglanguage/PKGBUILD
deleted file mode 100644
index fb1ba3264..000000000
--- a/libre/openshadinglanguage/PKGBUILD
+++ /dev/null
@@ -1,100 +0,0 @@
-# Maintainer: Márcio Silva <coadde@parabola.nu>
-# based of Arch pkg
-
-pkgname=openshadinglanguage
-pkgver=1.4.2
-pkgrel=1
-pkgdesc="Advanced shading language for production GI renderers (built for the blender-libre package)"
-arch=(
- mips64el
- x86_64
- i686
-)
-url=https://github.com/imageworks/OpenShadingLanguage
-license=custom
-depends=(
- openimageio
- openexr
- freetype2
- libpng
- libtiff
- boost-libs
- llvm
- zlib
-)
-makedepends=(
- boost
- clang
- cmake
-)
-source=(
- https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz
- llvm-141.patch
-)
-sha512sums=(
- 657ed606622ecd7300479159d205472bd38324a1a3277b9d7c06c3fe4deffb017e42cc9fdac01bf583307f75120f580e89d639fa55fc8d86eca9a33287ff710b
- 597cd4a8d59e03e7cbe0eb9c2f988d81317d9bb0a65c1dc5f5db2fbb3be927b4c9e5342decd1409757787b9354dfdf3aa56fdeadcb8c25308aa5653dc9775ea1
-)
-
-prepare() {
- cd OpenShadingLanguage-Release-$pkgver
-
- msg 'renaming wrong OS name'
- _OS=$(uname -o)
- [[ $_OS == GNU ]] &&\
- sed -i 's|linux|GNU|i;
- ' src/{cmake/platform.cmake,make/detectplatform.mk}
- [[ $_OS == GNU/Linux ]] &&\
- sed -i 's|[{]uname[}][,]linux]|{uname -o},GNU/Linux|;\|platform| s|linux|GNU/Linux|i
- ' src/{cmake/platform.cmake,make/detectplatform.mk}
- [[ $_OS == GNU/kFreeBSD ]] &&\
- sed -i '\|STREQUAL| s|FreeBSD|kFreeBSD|;\|platform| s|freebsd|GNU/kFreeBSD|i
- ' src/cmake/platform.cmake
- sed -i 's|[{]uname[}][,]linux]|{uname -o},GNU/kFreeBSD|;\|platform| s|linux|GNU/kFreeBSD|i
- ' src/make/detectplatform.mk
- sed -i 's|Linux/OSX|GNU/BSD|' src/include/export.h
-
- # LLVM 3.4 build fix
- # based of "https://github.com/imageworks/OpenShadingLanguage/pull/320.patch"
- patch -Np1 < $srcdir/llvm-141.patch
-
- # fix include paths
- sed -i 's|oslconfig.h|../include/oslconfig.h|
- s|dual.h|../include/dual.h|
- s|dual_vec.h|../include/dual_vec.h|
- ' src/liboslexec/llvm_ops.cpp
- sed -i 's|oslexec.h|../include/oslexec.h|
- s|oslclosure.h|../include/oslclosure.h|
- s|osl_pvt.h|../include/osl_pvt.h|
- ' src/liboslexec/oslexec_pvt.h
-
- cd src
-
- [[ -d build ]] && rm -r build
- mkdir build
-}
-
-build() {
- cd OpenShadingLanguage-Release-$pkgver/src/build
-
- cmake ../.. \
- -DCMAKE_BUILD_TYPE=Release\
- -DCMAKE_INSTALL_PREFIX=/usr\
- -DLLVM_STATIC=OFF
- make
-}
-
-package() {
- cd OpenShadingLanguage-Release-$pkgver/src/build
-
- make DESTDIR=$pkgdir install
-
- mkdir -p $pkgdir/usr/share/OSL/
- mkdir -p $pkgdir/usr/share/licenses/$pkgname
- 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
- mv $pkgdir/usr/LICENSE $pkgdir/usr/share/licenses/$pkgname
-}
-
-# vim:set ts=2 sw=2 et: