195.6. openimageio-3.1.17.0
Image reading, writing and processing for film pipelines — Blender's image I/O, with oiiotool
| Version | 3.1.17.0, release 1 |
| Shelf | image-libs — Raster image formats, codecs, metadata, processing, barcodes, and terminal image output |
| Phase | 42_graphics (Graphics Stack), 135 of 189 in build order |
| Licence | Apache-2.0 AND MIT |
| Homepage | https://openimageio.org/ |
| Build time | 9.4 SBU |
| Installed size | 22.0 MiB in 94 files |
| Recipe | ports/core/image-libs/openimageio/kpkgbuild |
About
OpenImageIO (OIIO) reads, writes and processes images for film and visual-effects pipelines: one API over OpenEXR, TIFF, JPEG, PNG, JPEG XL, WebP, HEIF, JPEG 2000, GIF, camera raw, OpenVDB and video frames through FFmpeg, with colour management from OpenColorIO, an image cache, a texture system and ImageBufAlgo processing. It is Blender’s image I/O, and it installs oiiotool, iinfo, maketx and the other command-line tools, and the Python module.
Sources
openimageio-3.1.17.0.tar.gz(53.5 MiB)
sha25692a26c0af4ffc6676d72d9dfe0e991eb45fdf3192abee3d0855a24d6c721b013
upstream: https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/refs/tags/v3.1.17.0.tar.gz
archive copy: sources-3/image-libs--openimageio-3.1.17.0.tar.gzrobin-map-1.4.1.tar.gz(68.7 KiB)
sha2560e3f53a377fdcdc5f9fed7a4c0d4f99e82bbb64175233bd13427fef9a771f4a1
upstream: https://github.com/Tessil/robin-map/archive/refs/tags/v1.4.1.tar.gz
archive copy: sources-3/image-libs--robin-map-1.4.1.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, zlib, bzip2, imath, openexr, libjpeg-turbo, libpng, libtiff, libdeflate, libjxl, libwebp, openjpeg, giflib, libheif, libraw, freetype2, ffmpeg, opencolorio, onetbb, openvdb, pugixml, fmt, python3, python3-pybind11, numpy.
Required by (1): blender.
Optional, off in KDOS
These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-DUSE_OPENCV=OFF, line 45: opencv (explained with the switches below)-DUSE_DCMTK=OFF, line 46: dcmtk (explained with the switches below)
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install openimageio'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/image-libs/openimageio.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/image-libs/openimageio
echo '92a26c0af4ffc6676d72d9dfe0e991eb45fdf3192abee3d0855a24d6c721b013 openimageio-3.1.17.0.tar.gz' | sha256sum -c -
echo '0e3f53a377fdcdc5f9fed7a4c0d4f99e82bbb64175233bd13427fef9a771f4a1 robin-map-1.4.1.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/openimageio
SRC=$SRC_ROOT/openimageio-3.1.17.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf openimageio-3.1.17.0.tar.gz -C "$SRC" --strip-components=1
tar --no-same-permissions --warning=no-unknown-keyword -xf robin-map-1.4.1.tar.gz -C "$SRC_ROOT"
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers _robinmap and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
mkdir build && cd build
cmake .. -G Ninja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DOIIO_BUILD_TESTS=OFF \
-DOIIO_BUILD_TOOLS=ON \
-DSTOP_ON_WARNING=OFF \
-DUSE_CCACHE=OFF \
-DINSTALL_FONTS=OFF \
-DINSTALL_DOCS=ON \
-DOpenImageIO_BUILD_MISSING_DEPS= \
-DROBINMAP_INCLUDE_DIR="$SRC_ROOT/robin-map-$_robinmap/include" \
-DUSE_EXTERNAL_PUGIXML=ON \
-DUSE_PYTHON=ON \
-Dpybind11_DIR="$(python3 -m pybind11 --cmakedir)" \
-DUSE_QT=OFF \
-DUSE_FFMPEG=ON \
-DUSE_FREETYPE=ON \
-DUSE_GIF=ON \
-DUSE_JXL=ON \
-DUSE_LIBHEIF=ON \
-DUSE_LIBRAW=ON \
-DUSE_OPENCOLORIO=ON \
-DUSE_OPENJPEG=ON \
-DUSE_OPENVDB=ON \
-DUSE_TBB=ON \
-DUSE_WEBP=ON \
-DCMAKE_REQUIRE_FIND_PACKAGE_WebP=ON \
-DUSE_PTEX=OFF \
-DUSE_OPENCV=OFF \
-DUSE_DCMTK=OFF \
-DUSE_LIBUHDR=OFF \
-DUSE_OPENJPH=OFF \
-DUSE_R3DSDK=OFF \
-DUSE_NUKE=OFF
ninja
DESTDIR=$PKG ninja install
The switches, and why each is set:
-DCMAKE_SKIP_INSTALL_RPATH=ON— Installs the library, the tools and the Python module with noRPATH. Upstream’s installRPATHis$ORIGIN,$ORIGIN/liband$ORIGIN/../lib, with every directory outside the build tree that a linked library came from; every library they load is in/usr/lib, which the loader searches anyway, so the entries would add lookups and nothing else.-DOIIO_BUILD_TESTS=OFF— Builds no unit tests, which upstream builds by default.-DOIIO_BUILD_TOOLS=ON— Builds the command-line tools, upstream’s default.-DSTOP_ON_WARNING=OFF— Treats compiler warnings as warnings. Upstream’s default is off for a supported release and on for a development branch or a CI build.-DUSE_CCACHE=OFF— Does not compile through ccache, which upstream uses whenever it finds it.-DINSTALL_FONTS=OFF— Installs none of the Droid Sans, Droid Sans Mono and Droid Serif faces upstream bundles insrc/fonts; upstream’s default installs them.-DINSTALL_DOCS=ON— Installs the licence, the third-party notices and the change logs under/usr/share/doc, upstream’s default. The manual pages are generated with txt2man, which is not a port, so none are made.-DOpenImageIO_BUILD_MISSING_DEPS=— Empty, upstream’s default, so a missing dependency is a configure error or a feature left out, never a download.-DROBINMAP_INCLUDE_DIR— Points at robin-map, the header-only hash table OIIO compiles in and installs nothing of. It is the recipe’s secondsource =, unpacked beside the main tree. OIIO marks robin-map to be built locally whenever it is missing, whateverBUILD_MISSING_DEPSsays, so without this path its CMake would clone robin-map from GitHub.-DUSE_EXTERNAL_PUGIXML=ON— Links the pugixml port. Upstream’s default compiles the copy of pugixml it carries insrc/include/OpenImageIO/detail/pugixmlinto the library.-DUSE_PYTHON=ON,-Dpybind11_DIR— Builds the Python module, finding pybind11’s CMake files throughpython3 -m pybind11 --cmakedir, from python3-pybind11.-DUSE_QT=OFF— Builds noiv, the Qt image viewer. Qt is built in a later phase,43_toolkits, after this port, and upstream uses it whenever it finds it, so a rebuild on a finished system would otherwise addivand a Qt dependency the recipe does not name.-DUSE_FFMPEG=ON,-DUSE_FREETYPE=ON,-DUSE_GIF=ON,-DUSE_JXL=ON,-DUSE_LIBHEIF=ON,-DUSE_LIBRAW=ON,-DUSE_OPENCOLORIO=ON,-DUSE_OPENJPEG=ON,-DUSE_OPENVDB=ON,-DUSE_TBB=ON,-DUSE_WEBP=ON— The optional dependencies this build uses, each a port independs: video frames, text drawing inImageBufAlgo::render_text, GIF, JPEG XL, HEIF and AVIF, camera raw, colour management, JPEG 2000, OpenVDB volumes, Intel TBB threading and WebP.-DCMAKE_REQUIRE_FIND_PACKAGE_WebP=ON— Makes CMake’sfind_package(WebP)required, so a missing libwebp stops configure instead of building without the WebP plugin.-DUSE_PTEX=OFF,-DUSE_LIBUHDR=OFF,-DUSE_OPENJPH=OFF,-DUSE_R3DSDK=OFF,-DUSE_NUKE=OFF— Ptex, Ultra HDR JPEG, OpenJPH (high-throughput JPEG 2000), the RED R3D SDK and Nuke’s plugins. None of them is a port.-DUSE_OPENCV=OFF— Builds no OpenCV interop. opencv is built in a later phase,43_toolkits, after this port.-DUSE_DCMTK=OFF— Builds no DICOM reader. dcmtk is a port, installed in an earlier phase, so on the default the reader would be built whenever it is present; the switch leaves it out.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/openimageio, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf openimageio-3.1.17.0-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/openimageio, and runs the triggers its paths call for.
Contents
Installed programs: iconvert, idiff, igrep, iinfo, maketx, oiiotool, testtex.
Installed libraries: libOpenImageIO.so, libOpenImageIO_Util.so.
Installed directories: /usr/include/OpenImageIO, /usr/lib/cmake/OpenImageIO, /usr/lib/python3.14/site-packages/OpenImageIO, /usr/share/doc/OpenImageIO, /usr/share/licenses/openimageio.
Short descriptions
OpenImageIO.pc |
OpenImageIO is a library for reading and writing images. |