diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-28 20:54:27 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-08-28 20:54:27 -0300 |
commit | a530e0e5b6c07a193e37fb1bf8bb55ded3548a74 (patch) | |
tree | 7fcc8172c5600c6e153987fcc9967399d37553ce /libre/openshadinglanguage-parabola/PKGBUILD | |
parent | 587875af278dfc6899376afa44e38f3158e0137e (diff) | |
download | abslibre-a530e0e5b6c07a193e37fb1bf8bb55ded3548a74.tar.gz abslibre-a530e0e5b6c07a193e37fb1bf8bb55ded3548a74.tar.bz2 abslibre-a530e0e5b6c07a193e37fb1bf8bb55ded3548a74.zip |
openshadinglanguage-parabola: downgrade
Diffstat (limited to 'libre/openshadinglanguage-parabola/PKGBUILD')
-rw-r--r-- | libre/openshadinglanguage-parabola/PKGBUILD | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/libre/openshadinglanguage-parabola/PKGBUILD b/libre/openshadinglanguage-parabola/PKGBUILD index 630a0573c..058f03118 100644 --- a/libre/openshadinglanguage-parabola/PKGBUILD +++ b/libre/openshadinglanguage-parabola/PKGBUILD @@ -3,7 +3,7 @@ _pkgname=openshadinglanguage pkgname=$_pkgname-parabola -pkgver=1.5.10 +pkgver=1.4.2 # 1.5.10 for blender 2.72 pkgrel=1 pkgdesc='Advanced shading language for production GI renderers (built for the blender-parabola package)' arch=('i686' 'x86_64' 'mips64el') @@ -14,8 +14,10 @@ makedepends=('boost' 'clang' 'cmake') provides=("$_pkgname=$pkgver") conflicts=("$_pkgname") replaces=("$_pkgname") -source=("https://github.com/imageworks/OpenShadingLanguage/archive/Release-$pkgver.tar.gz") -md5sums=('b828366f056e115b539ee1780883fc7d') +source=("https://github.com/imageworks/OpenShadingLanguage/archive/Release-$pkgver.tar.gz" + 'llvm-141.patch') +md5sums=('5aeb3c9502aedf62d0120b3523957e92' + 'b948e5df8710366b65027d1d8450f340') prepare() { cd OpenShadingLanguage-Release-$pkgver @@ -33,7 +35,28 @@ prepare() { ' 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/OSL/export.h + + if [[ ${pkgver::3} == 1.4 ]]; then + # renaming wrong OS name + 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 + else + # renaming wrong OS name + sed -i 's|Linux/OSX|GNU/BSD|' src/include/OSL/export.h + fi } build() { |