PKGBUILDs/community/opencolorio/PKGBUILD

58 lines
1.7 KiB
Bash
Raw Normal View History

2013-05-21 19:26:59 +00:00
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Dumitru Ursu <dima@ceata.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2018-03-29 05:05:46 +00:00
# - turn off using sse
2013-05-21 19:26:59 +00:00
pkgname=opencolorio
2018-03-29 05:05:46 +00:00
pkgver=1.1.0
2018-08-06 13:09:19 +00:00
pkgrel=2
2013-05-21 19:26:59 +00:00
pkgdesc="A color management framework for visual effects and animation"
2018-03-29 05:05:46 +00:00
arch=('x86_64')
2013-05-21 19:26:59 +00:00
url="http://opencolorio.org"
license=('BSD')
2018-03-29 05:05:46 +00:00
depends=('python' 'tinyxml' 'yaml-cpp' 'lcms')
makedepends=('cmake' 'git' 'boost')
source=($pkgname-$pkgver.tar.gz::https://github.com/imageworks/OpenColorIO/tarball/v$pkgver
8d48ee8da42de2d878db7b42586db8b3c67f83e1.patch)
sha512sums=('33d58efce60054c755978c5325974e93ed2f9cb00225eaf85429abacdd832a3b4979b3834f129d054f8c3c7ed193ac50d211542d7f8ff460496b78d3fbd48148'
'fd1c6e134ef898a8715333b1e85a606736685ec0fce07188c0fba68ae048edb61dc4f107eff8de79a53dbbf226a1f84bb0a7d046a15fafb981ce02568350fd49')
2013-05-21 19:26:59 +00:00
2018-03-29 05:05:46 +00:00
prepare() {
2013-05-21 19:26:59 +00:00
mv imageworks-OpenColorIO-* $pkgname-$pkgver
2018-03-29 05:05:46 +00:00
2013-05-21 19:26:59 +00:00
cd $pkgname-$pkgver
2018-03-29 05:05:46 +00:00
sed -i "s/-Werror//g" src/core/CMakeLists.txt
sed -i "s/-Werror//g" src/pyglue/CMakeLists.txt
sed -i "s/push(hidden)/push(default)/g" src/core/OCIOYaml.cpp
patch -Np1 -i "$srcdir"/8d48ee8da42de2d878db7b42586db8b3c67f83e1.patch
2013-05-21 19:26:59 +00:00
}
2018-03-29 05:05:46 +00:00
build() {
cd $pkgname-$pkgver
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DUSE_EXTERNAL_YAML=ON \
-DUSE_EXTERNAL_TINYXML=ON \
-DUSE_EXTERNAL_LCMS=ON \
-DOCIO_USE_SSE=OFF
make
}
package() {
cd "$pkgname-$pkgver"/build
make DESTDIR="$pkgdir" install
2013-05-21 19:26:59 +00:00
2018-03-29 05:05:46 +00:00
mv "$pkgdir"/usr/lib/static/libOpenColorIO.a "$pkgdir"/usr/lib/libOpenColorIO.a
rmdir "$pkgdir"/usr/lib/static
2013-05-21 19:26:59 +00:00
2018-03-29 05:05:46 +00:00
install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
2013-05-21 19:26:59 +00:00
}
# vim:set ts=2 sw=2 et: