mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/openshadinglanguage to 1.5.10-2
This commit is contained in:
parent
dcaf465559
commit
07d2a25e66
1 changed files with 13 additions and 6 deletions
|
@ -7,21 +7,28 @@
|
||||||
|
|
||||||
pkgname=openshadinglanguage
|
pkgname=openshadinglanguage
|
||||||
pkgver=1.5.10
|
pkgver=1.5.10
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Advanced shading language for production GI renderers"
|
pkgdesc="Advanced shading language for production GI renderers"
|
||||||
arch=(i686 x86_64)
|
arch=(i686 x86_64)
|
||||||
url="https://github.com/imageworks/OpenShadingLanguage"
|
url="https://github.com/imageworks/OpenShadingLanguage"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('boost-libs' 'openimageio' 'openexr' 'llvm' 'freetype2' 'libpng' 'libtiff')
|
depends=('boost-libs' 'openimageio' 'openexr' 'llvm' 'freetype2' 'libpng' 'libtiff')
|
||||||
makedepends=('boost' 'cmake' 'clang')
|
makedepends=('boost' 'cmake' 'clang')
|
||||||
source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz)
|
source=(https://github.com/imageworks/OpenShadingLanguage/archive/Release-${pkgver}.tar.gz
|
||||||
md5sums=('b828366f056e115b539ee1780883fc7d')
|
https://github.com/imageworks/OpenShadingLanguage/commit/163df11a3af32295757cfe008d1ba2b757cc7b7b.patch
|
||||||
|
https://github.com/imageworks/OpenShadingLanguage/pull/412.patch)
|
||||||
|
md5sums=('b828366f056e115b539ee1780883fc7d'
|
||||||
|
'e980ed0a9480958307fa048544154887'
|
||||||
|
'd21cab675ce13c9f0640e1f6a662d2b9')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd OpenShadingLanguage-Release-$pkgver
|
cd OpenShadingLanguage-Release-$pkgver
|
||||||
|
|
||||||
# Fails building this file on i686
|
# Fails building this file on i686
|
||||||
sed -i "/src\/testshade/d" CMakeLists.txt
|
#sed -i "/src\/testshade/d" CMakeLists.txt
|
||||||
|
|
||||||
|
patch -Np1 < $srcdir/412.patch
|
||||||
|
patch -Np1 < $srcdir/163df11a3af32295757cfe008d1ba2b757cc7b7b.patch
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
|
|
||||||
|
@ -30,11 +37,11 @@ build() {
|
||||||
|
|
||||||
[ "${CARCH}" == "arm" -o "${CARCH}" == "armv6h" ] && BITCODE="-DUSE_LLVM_BITCODE=OFF"
|
[ "${CARCH}" == "arm" -o "${CARCH}" == "armv6h" ] && BITCODE="-DUSE_LLVM_BITCODE=OFF"
|
||||||
|
|
||||||
cmake \
|
cmake ../.. \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DLLVM_STATIC=0 ${BITCODE} \
|
-DLLVM_STATIC=0 ${BITCODE} \
|
||||||
-DSTOP_ON_WARNING=0 \
|
-DSTOP_ON_WARNING=0 \
|
||||||
../..
|
-DCMAKE_CXX_FLAGS="-std=c++11"
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue