mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
|
# Contributor: Dumitru Ursu <dima@ceata.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - added -fsigned-char to CXXFLAGS
|
|
|
|
pkgname=opencolorio
|
|
pkgver=2.4.0
|
|
pkgrel=2
|
|
pkgdesc="A color management framework for visual effects and animation"
|
|
arch=('x86_64')
|
|
url="https://opencolorio.org"
|
|
license=('BSD')
|
|
depends=('freeglut' 'glew' 'lcms2' 'tinyxml' 'yaml-cpp' 'imath' 'pystring' 'minizip-ng' 'openexr')
|
|
makedepends=('cmake' 'python' 'pybind11' 'ninja')
|
|
checkdepends=('openimageio')
|
|
optdepends=('python: python bindings')
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v$pkgver.tar.gz)
|
|
sha512sums=('11ad89b3ac30700be58181a0bdd4154a3ae2bf59651edb48629c51c7f1fadf221394abb285efd9b6c259195821a4e531043b266eea36d8fa4382f23c3b54ab6d')
|
|
|
|
build() {
|
|
cd OpenColorIO-$pkgver
|
|
|
|
CXXFLAGS+=" -ffat-lto-objects -fsigned-char"
|
|
cmake \
|
|
-GNinja \
|
|
-Bbuild \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_SKIP_INSTALL_RPATH=YES \
|
|
-Wno-dev
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
cd OpenColorIO-$pkgver/build
|
|
|
|
# Currently broken
|
|
# ctest -E test_gpu
|
|
}
|
|
|
|
package() {
|
|
cd OpenColorIO-$pkgver
|
|
|
|
DESTDIR="$pkgdir" ninja -C build install
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|