# Contributor: Mark Riedesel # Contributor: Damian Kurek # Maintainer: Leon Marz pkgname=openimageio pkgver=2.4.14.0 pkgrel=0 pkgdesc="Image I/O library supporting a multitude of image formats" options="!check" # more than 10% of all tests fail url="https://sites.google.com/site/openimageio/" # s390x has missing dependency ptex-dev arch="all !s390x" license="BSD-3-Clause" makedepends="cmake boost-dev bzip2-dev ffmpeg-dev fmt-dev freetype-dev giflib-dev hdf5-dev libheif-dev libraw-dev libwebp-dev mesa-dev onetbb-dev opencolorio-dev openexr-dev openjpeg-dev ptex-dev ptex-static python3-dev py3-pybind11-dev qt6-qtbase-dev robin-map samurai tiff-dev " subpackages="py3-$pkgname:_python $pkgname-dev $pkgname-doc $pkgname-tools" source="$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/v$pkgver.tar.gz" builddir="$srcdir/oiio-$pkgver" build() { local _py_version=$(python3 --version | cut -c 8-11) local _iv="ON" case "$CARCH" in aarch64|armv7|armhf) _iv="OFF";; esac # fails to build with fortify source enabled export CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE" cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_SKIP_RPATH=ON \ -DBUILD_TESTING=OFF \ -DSTOP_ON_WARNING=OFF \ -DENABLE_iv=$_iv \ -DINSTALL_FONTS=OFF cmake --build build } check() { cd build ctest -E broken } package() { DESTDIR="$pkgdir" cmake --install build } tools() { pkgdesc="Tools for manipulating a multitude of image formats" amove usr/bin } _python() { pkgdesc="Python bindings for OpenImageIO image I/O library" amove usr/lib/python* } sha512sums=" 59c38667ae792f5c5cc6f7f9655159e9b0e048d99f1232766407c01ab635a319ad4ba28cd3c6a115924ea0e4ec994d4c1bdb2f6301fbb9ae11b2820768bd1ff1 openimageio-2.4.14.0.tar.gz "