# Contributor: Mark Riedesel # Maintainer: Mark Riedesel pkgname=openimageio pkgver=1.8.13 pkgrel=1 pkgdesc="Image I/O library supporting a multitude of image formats" url="https://sites.google.com/site/openimageio/" arch="all" license="BSD" depends="" # NOTE: OpenColorIO and OpenImageIO are cross dependent. If an ABI incompatible # update is done in one, the other also needs to be rebuilt. makedepends="cmake giflib-dev zlib-dev boost-dev libjpeg-turbo-dev libpng-dev tiff-dev glew-dev python2-dev>=2.6 openexr-dev ffmpeg-dev libraw-dev libwebp-dev freetype-dev qt5-qtbase-dev mesa-dev libressl-dev jasper-dev opencolorio-dev" subpackages="py2-$pkgname:_python $pkgname-dev $pkgname-doc $pkgname-tools" source="$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/Release-${pkgver}.tar.gz boost-python.patch " builddir="$srcdir/oiio-Release-$pkgver" build() { cd "$builddir" mkdir build && cd build cmake .. \ -DUSE_OPENSSL=ON \ -DUSE_PYTHON=ON \ -DUSE_NUKE=OFF \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DPYLIB_INSTALL_DIR=lib/python2.7/site-packages \ -DCMAKE_SKIP_RPATH=ON \ -DOIIO_BUILD_TESTS=OFF \ -DOIIO_BUILD_TOOLS=ON \ -DINSTALL_FONTS=OFF make } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } tools() { pkgdesc="Tools for manipulating a multitude of image formats" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } _python() { local pyver="${subpkgname:2:1}" pkgdesc="Python $pyver bindings for OpenImageIO image I/O library" depends="python$pyver" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python$pyver* "$subpkgdir"/usr/lib/ } sha512sums="578d039399846f994dd8e4b94a7b56f2bcec45571c2144705fc4e2fe6a3e1d878d79a96c0484350d54b46eef7796d46becda9f5d50f266cd730f63d97af0650e openimageio-1.8.13.tar.gz 6f2fa329a1854be4e0dd358a1d2e0134a53422b63b5bef161a4dddfb4416a66e614afd063b15d2af56ac131c511c28b1b8f50ca6d10f00342ac2f111a23a7f0e boost-python.patch"