pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/openimageio
Module Name: pkgsrc
Committed By: wiz
Date: Wed Aug 13 06:35:14 UTC 2025
Modified Files:
pkgsrc/graphics/openimageio: Makefile PLIST distinfo
pkgsrc/graphics/openimageio/patches: patch-src_cmake_compiler.cmake
Added Files:
pkgsrc/graphics/openimageio/patches:
patch-src_include_OpenImageIO_typedesc.h
patch-src_libOpenImageIO_imagebufalgo__compare.cpp
patch-src_libOpenImageIO_maketexture.cpp
patch-src_libOpenImageIO_printinfo.cpp
patch-src_libtexture_environment.cpp
patch-src_libutil_fmath__test.cpp patch-src_oiiotool_printinfo.cpp
patch-src_testtex_testtex.cpp
Removed Files:
pkgsrc/graphics/openimageio/patches:
patch-src_cmake_externalpackages.cmake
patch-src_heif.imageio_heifinput.cpp
patch-src_heif.imageio_heifoutput.cpp
patch-src_include_OpenImageIO_imagebuf.h
Log Message:
openimageio: update to 3.0.9.1.
Release 3.0.9.1 (Aug 7, 2025) -- compared to 3.0.9.0
-----------------------------------------------------
- *deps*: C++23 support
- *deps*: Adapt to libheif 1.20.2
Release 3.0.9.0 (Aug 1, 2025) -- compared to 3.0.8.1
-----------------------------------------------------
- *maketx*: Add flags to increase feature parity with txmake
- *perf*: Speed up `maketx --envlatl` when multithreaded by over 10x.
- *perf*: Speed up OpenEXR non-core header read time
- *oiiotool*: Allow thread control for --parallel-frames
- *ImageInput*: Incorrect IOProxy logic related to valid_file
- *python*: Got strides wrong passing 2D numpy pixel array
- *ffmpeg*: Replace deprecated and soon removed avcodec_close with avcodec_free_context
- *build/python*: For python stub generation, lock pybind11 to pre-3.0
- *build*: Fix typo related to finding ccache
- *build*: PNG auto-build improvements
- *build*: Propagate CMAKE_MSVC_RUNTIME_LIBRARY
- *build*: Update jpeg2000input.cpp to include cstdarg
- *ci*: Bump 'latest releases' tests to use pybind11 3.0.0
- *(docs)*: Correct docs and type of "resident_memory_used_MB" attribute
- *(admin)*: Update SECURITY to reflect that 2.5 only gets critical fixes now
Release 3.0.8.1 (Jul 5, 2025) -- compared to 3.0.8.0
-----------------------------------------------------
- *build(heif)*: Fixes to build against libheif 1.20
- *build*: Wheel upload_pypi step should only run from main repo
- *ci*: Bump 'latest' test versions
Release 3.0.8.0 (Jul 1, 2025) -- compared to 3.0.7.0
-----------------------------------------------------
- *oiiotool*: New expression pseudo-metadata term: SUBIMAGES
- *oiiotool*: Fixes to --missingfile behavior
- *iv*: Area probe
- *python*: Python ImageBuf.init_spec did not return correct value
- *fix*: ImageOutput::check_open logic was flawed
- *int(iv)*: Add raw string syntax modifier for VSCode and Cursor to understand its glsl
- *int(iv)*: Use R"()" syntax for glsl shader strings for better readability
- *exr*: Not honoring 'missingcolor' for scanline files
- *build*: Add arm_neon.h include on Windows ARM64 with clang-cl
- *build*: Adjust pystring finding
- *build(jxl)*: Use correct cmake variables for the include directories
- *tests*: Remove old test reference output we no longer need
- *ci*: Remove tests on Windows-2019 GitHub runner
- *ci*: Various ccache save/restore improvements for CI runs
- *ci*: Simplify gh-win-installdeps, no more vcpkg
- *admin*: Remove stale intake documents
Release 3.0.7.0 (Jun 1, 2025) -- compared to 3.0.6.1
-----------------------------------------------------
- *oiiotool*: `--eraseattrib` new modifier `:fromfile=1` reads from a file
to get a list of patterns to specify the attributes to erase.
- *oiiotool*: Added `--create-dir` flag to create directories needed by `-o`
if they doesn't already exist
- *oiiotool*: -i:native=1, fix --native behavior, fix convert datatype
- *iv*: Fix crash on .DS_Store; fix uppercase extensions
- *iv*: Do not resize on open and other zoom fixes
- *iv*: Bug fix for iv window losing focus on mac on startup
- *iv*: Implement files drag and drop into an iv window
- *iv*: Use screen pixel ratio to render sharp text in pixel view tool
- *python*: Add python stub files
- *python*: ImageBuf `_repr_png_` method added, which allows use of
ImageBuf in
- *exr*: Did not properly allocate 'missingcolor' vector
- *exr*: Add `htj2k` as a compression option for OpenEXR. Only works with OpenEXR 3.4 or higher (or in-progress OpenEXR main).
- *iff*: Improved IFF support reading and writing z buffers
- *webp*: Respect the `oiio:UnassociatedAlpha` attribute
- *webp*: Allow finer grained control over WEBP compression settings
- *flx/python*: IBA.demosaic had GIL release in wrong spot
- *fix*: ImageInput/ImageOutput did not set per-file threads correctly
- *fix*: Address safety warnings in pvt::append_tiff_dir_entry
- *build*: Fix fmt throwing behavior warnings
- *build*: Detect libultrahdr version and enforce minimum of 1.3
- *build*: Fix failed test with old fmt
- *ci*: Save time by not checking out entire project history
- *ci*: New testing variants for VFX Platform 2025, Windows 2025
- *ci*: Update ref output to compensate for GitHub windows drive changes
- *ci*: Pkg config libdir fix
- *ci*: For docs workflow, lock down versions and speed up
- *ci*: Improved clang-format CI task
- *ci*: Add facility for benchmarking as part of CI
- *ci*: Update ref image for slightly changed freetype accents
- *docs*: Online docs improvements, mostly formatting (#4736, #4743)
- *docs*: Update Windows build instructions to rely on deps auto-build
Release 3.0.6.1 (May 2, 2025) -- compared to 3.0.6.0
-----------------------------------------------------
- *fix*: Restore OIIO_AVX512ER_ENABLED preprocessor symbol. Its absence could break backwards source compatibility if anyone was using it, even though it was useless and broken. Where compatibility
goes, better safe than sorry.
Release 3.0.6.0 (May 1, 2025) -- compared to 3.0.5.0
-----------------------------------------------------
- *oiiotool*: Add `--render_text` modifiers `measure=` and `render=`
- *python*: Fix handle leak
- *bmp*: Correct the type for BMP x/y density
- *dpx*: Specify the units for DPX scanned size
- *sgi*: Fix valid_file to properly swap bytes on little-endian platforms
- *build*: Fix new dcmtk 3.6.9 vs C++ warning
- *build*: Address Robin-map vs CMake 4.0 compatibility
- *build*: Fix broken OIIO_SITE customization
- *build*: Address compiler warnings in simd.h
- *build/windows*: Clean up Windows compilation warnings
- *build/windows*: Include Windows version information on produced binaries
- *ci*: Move away from soon-to-be-deprecated ubuntu-20.04 GHA runner
Release 3.0.5.0 (Apr 2, 2025) -- compared to 3.0.4.0
-----------------------------------------------------
- *ImageBuf*: `ImageBuf::merge_metadata()` merges one IB's metadata into another's without deleting the metadata already present. It can also filter which metadata are copied using a regex.
- *oiiotool*: `--pastemeta` now takes additional modifiers that allows options for merging rather than rewriting, and is able to copy only a subset of the metadata specified by a regex.
- *oiiotool*: Fix invalid loop bound when appending mipmap textures using oiiotool
- *png*: Increase allowed width/height limit
- *psd*: Improved tag recognition in psd files
- *tiff*: The default value for bitspersample should be 1
- *int*: Switch to spans for some exif manipulation, fixing warnings
- *span.h*: OIIO::span improvements
- *build*: Better disabling of work when USE_PYTHON=0
- *build*: Improve OpenJpeg version detection.
- *build*: Bump auto-build libdeflate to 1.23 to avoid AVX512 not available errors
- *build*: Cmake 4.0 compatibility
- *ci*: Fix wheel building on Mac
- *ci*: Update libPNG address and version for ci & autobuild
Release 3.0.4.0 (Mar 2, 2025) -- compared to 3.0.3.0
-----------------------------------------------------
- *oiiotool*: Oiiotool new expression eval tokens IS_CONSTANT, IS_BLACK
- *oiiotool*: Better handling of wildcards that match no files
- *ImageBuf*: IB::pixeltype() did not always return the right value
- *ImageBuf*: Fix bug in ImageBuf construction from ptr + neg strides
- *ICC*: ICC profile recognition and robustness improvements, especially for PSD
- *exr*: Fill in OpenEXR lineOrder attribute when reading
- *ico*: More robust to corrupted ICO files
- *rla*: More robust to corrupted RLA files that could overrun buffers
- *span.h*: Eliminate needless definitions of `std::size(span)` that were triggering strange behavior on recent MSVS compiler versions.
- *build*: Fix recently broken rpath setting
- *build/python wheels*: Ensure python-based builds use maj.min.patch SO versioning
- *build/python wheels*: Fix recently broken rpath to restore python wheel building
- *ci*: Run wheel workflow on certain pushes
- *docs*: Argparse documentation/comments typos
- *admin*: Document Python Wheel completed in roadmap
- *admin*: Add ".vs" to .gitignore
- *admin*: Set up .gitattributes file and ensure it properly categorizes certain files for GitHub's language analysis statistics.
Release 3.0.3.1 (Feb 1, 2025) -- compared to 3.0.3.1
-----------------------------------------------------
The code is identical to v3.0.3.0, but some build issues were fixed to allow
proper build and upload of the Python wheels to PyPI for the Linux ARM
variants.
Release 3.0.3.0 (Feb 1, 2025) -- compared to 3.0.2.0
-----------------------------------------------------
- 🐍🎉🍾 **Python wheels workflow and build backend** -- beginning with
OpenImageIO 3.0.3.0, releases should automatically trigger building of
Python wheels and upload to PyPI so that you can do a single-command `pip3
install openimageio` on any of Linux, Mac, or Windows, and get the Python
bindings, the OpenImageIO libraries, and a working oiiotool, without
having to build from source yourself.
- *oiiotool*: `oiiotool --layersplit`, new command to split multi-layer
OpenEXR files (using the usual channel naming convention to delineate
"layers") into separate images
- *IBA*: IBA:demosaic() adds the ability for X-Trans demosaicing
- *IBA*: fix demosaic handling of roi channels
- *png*: Alpha premultiplication adjustment and attribute
- *psd*: Perform endian byteswap on correct buffer area for PSD RLE
- *raw*: Add black level and BPS metadata
- *python*: Disable loading Python DLLs from PATH by default on Windows
- *dev (span.h)*: Span_memcpy is a safer memcpy when you know the span boundaries
- *dev (filesystem.h)*: Filesystem::getline()
- *dev (paramlist.h)*: ParamValue as_span, as_cspan
- *build*: Recent change broke when using non-Apple clang on Apple
- *build*: Fix build_cmake.bash script for aarch64, bump its default version
- *build*: Fix libraw definitions (again)
- *ci*: Upgrade to newer actions
- *ci*: Test and document support for WebP 1.5 and fmt 11.1
- *ci*: Only pass build-steps the secrets it needs
- *ci*: Fix Windows 2019 CI -- make python version match the runner
- *ci*: Raise 'latest' tests to use new fmt 11.1.2
- *ci*: Adjust some pugixml versions
- *ci*: Allow special branch names to prune CI jobs
- *tests*: Improve Ptex testing
- *tests*: Better testing coverage of null image reader/writer
- *tests*: At long last, set up a softimage reading test.
- *tests*: Additional ref output for jpeg-corrupt test
- *docs*: Fix typo in oiiotool's gradient fill example
Release 3.0.2.0 (Jan 1, 2025) -- compared to 3.0.1.0
-----------------------------------------------------
- *api*: Add global attribute `imageinput:strict`
- *various formats*: Detect invalid ICC profile tags
- *various formats*: IPTC fields have length limits, protect against attributes passed that are too long to fit in them.
- *pnm*: Handle broken pnm files with invalid resolution
- *pnm*: Handle broken pgm having memory access error
- *int*: Some LoggedTimer instances lacked a variable name
- *build*: Use target_compile_options (fixes a LibRaw build issue)
- *ci*: Refactor using a single steps workflow
- *ci*: Fixups of analysis workflow
- *docs*: Minor fixes and typos
- *admin*: Sign release artifacts
Release 3.0.1.0 (Dec 1, 2024) -- compared to 3.0.0.3
-----------------------------------------------------
- *IBA*: New IBA::scale()
- *IBA*: `IBA:demosaic()` add white balancing
- *jpeg*: Support reading Ultra HDR images
- *jpeg*: Support encoding/decoding arbitrary metadata as comments
- *api*: `OIIO::getattribute()` queries for available font families and styles
- *perf*: `IBA::unsharp_mask()` speed and memory optimization
- *perf*: oiiotool `--line`, `--text`, `--point`, and `--box` speedups
- *perf*: Jpeg2000 valid_file implementation, much faster than trying to open
- *perf*: Faster utf8<->utf16 conversion on Windows
- *fix(exr)*: Allow an empty "name" metadata to be read
- *fix(exr)*: Avoid integer overflow for large deep exr slice strides
- *fix(raw)*: Fix channel layout
- *build*: Support static OCIO self-builds
- *build*: Add build recipe for PNG
- *build*: Add hardening options
- *ci*: Increased the macos timeout slightly to fix spurious failures
- *ci*: Don't rebuild docs in CI when only CMakeLists.txt changes
- *ci*: Fix broken CI for ASWF 2021 and 2022 containers
- *docs*: Update some old links to our new vanity URLs
- *docs*: Quickstart guide
- *docs*: First stab at an architecture overview
- *docs/admin*: Code review guidelines and tips
- *docs/admin*: Document how to make signed release tags
Release 3.0 (v3.0.0.3 - Nov 8, 2024) -- compared to 2.5.16.0
-------------------------------------------------------------
- v3.0.0.0-beta1 - Oct 15, 2024
- v3.0.0.1-beta2 - Oct 29, 2024
- v3.0.0.2-RC1 - Nov 4, 2024 (no code changes vs beta2)
- v3.0.0.3 / official release - Nov 8, 2024 (no code changes vs RC1)
**Executive Summary / Highlights:**
- Updated minimum toolchain: C++17/gcc9.3, Python 3.7, CMake 3.18.2, and
raised min versions of most library dependencies.
- New image format support: JPEG XL, R3D.
- oiiotool new commands: `--cryptomatte-colors`, `--demosaic`, `--buildinfo`,
`--ocionamedtransform`, `--popbottom`, `--stackreverse`, `--stackclear`,
`--stackextract`; improved `--for` behavior for reverse direction.
- Lots of long-deprecated API calls have been removed entirely.
Please see
- New ImageBufAlgo: `perpixel_op()`, `demosaic()`, `ocionamedtransform()`.
- ImageBuf now by default does not use ImageCache to mediate file images,
unless you explicitly ask for it.
- ImageCache & TextureSystem now use shared_ptr for creation, not raw
pointers. And they have been de-virtualized, for easier future expansion
flexibility without breaking ABI for any small change.
- Improved and more consistent color space name nomenclature.
- Build system now is capable of auto-downloading and building several
of the most important dependencies if they are missing at build time.
- Please note that the development branch in the GitHub repo is now named
`main` instead of `master`.
Full details of all changes follow.
### New minimum dependencies and compatibility changes:
* *C++*: Move to C++17 standard minimum (from 14), which also implies a
minimum gcc 9.3 (raised from 6.3), clang 5 (though we don't test or support
older than clang10), Intel icc 19+, Intel OneAPI C++ compiler 2022+.
* *Python*: 3.7 minimum (from 2.7).
* *CMake*: 3.18.2 minimum (from 3.15)
* *Boost*: Is no longer a dependency!
* *ffmpeg*: 4.0 minimum (from 3.0)
* *Freetype*: 2.10 minimum (from no previously stated minimum, but we had been testing as far back as 2.8)
* *GIF*: 5.0 minimum for giflib (from 4.0)
* *libheif*: 1.11 minimum (from 1.3)
* *LibRaw*: Raise minimum LibRaw to 0.20 (from 0.18)
* *libtiff*: 4.0 minimum (from 3.9)
* *OpenColorIO*: Make OpenColorIO a required dependency and raise the minimum to 2.2 (from 1.1).
* *OpenEXR/Imath*: minimum raised to 3.1 (from 2.4)
* *OpenCV*: 4.0 minimum (from 3.x)
* *OpenVDB*: Raise OpenVDB minimum to 9.0
* *PNG*: 1.6.0 minimum for libPNG (from 1.5.13)
* *Pybind11*: 2.7 minimum
* *Robin-map*: 1.2.0 minimum
* *WebP*: 1.1 minimum (from 0.6.1)
### ⛰️ New features and public API changes:
* *New image file format support:*
- *JPEG XL*: Initial JPEG XL support for image input/output
- *R3D*: Add initial support to read R3D files. Note that this capability will only be enabled if OIIO is built with the R3D SDK installed and available to be found by the build system.
* *oiiotool new features and major improvements*:
- `--cryptomatte-colors` takes the name of a cryptomatte set of channels, and produces a color-coded matte in which each ID gets a distinct color in the image. This can be useful for visualizing
the matte, among other things.
- `--demosaic` takes 1-channel Bayer patterns and turn them into
demosaiced 3-channel images
- `--buildinfo` command prints build information, including
version, compiler, and all library dependencies.
- `--ocionamedtransform`: Implement support for OCIO NamedTransforms
- Several new stack manipulation commands: `--popbottom` discards the bottom
element of the stack, `--stackreverse` reverses the order of the whole stack,
`--stackclear` fully empties the stack, `--stackextract <index>` moves the
indexed item from the stack (index 0 means the top) to the top.
- `--for` improvements: correct reverse iteration behavior if the step value
is negative, or if there is no step value but the start value is greater than
the end value. (https://github.com/AcademySoftwareFoundation/OpenImageIO/pull/4348) (2.6.3.0)
- Expression evaluation improvements: `BOTTOM` refers to the image on the bottom of the stack, `IMG[expression]` is now supported (previously only numeric literals were accepted as the index),
check that label/variable names
- oiiotool now by default does immediate reads without relying on an
ImageCache, unless the `--cache` option is used, which now both enables
the use of an underlying IC as well as setting its size. This tends to
improve performance.
- Change command line embedding for oiiotool & maketx output, by default hiding the command line for security reasons. It can be re-enabled with `--history`.
* *Command line utilities*:
- *idiff*: Allow users to specify a directory as the 2nd argument
- *iv*: Implement Directory Argument Loading for iv
- *iv*: Split off the current image in iv into a separate window
- *iv*: OCIO color managed display
- *iv*: Iv shows constant brown and GL error messages on start-up.
- *iv*: Initialize variables before we use them.
- *iv*: Add iv data and display windows overlay feature
* New global attribute queries via OIIO::getattribute():
- "build:platform", "build:compiler", "build:dependencies"
- "build:simd" is the new preferred synonym for the old name "oiio:simd"
* *ImageBuf/ImageBufAlgo*:
- ImageBuf now has span-based constructors for the variety where it
"wraps" a user buffer. This is preferred over the constructor that
takes a raw pointer (which is considered deprecated).
- New span-based versions of get_pixels, set_pixels, setpixel, getpixel,
interppixel, interppixel_NDC, interppixel_bicubic,
interppixel_bicubic_NDC. These are preferred over the old versions that
took raw pointers.
- Start using optional keyword/value params for some ImageBufAlgo functions.
- Only back ImageBuf with ImageCache when passed an IC
- Make ImageBuf::Iterator lazy in its making the image writable
- `IBA::perpixel_op()` is a new way to write IBA-like functions very
simply, only supplying the very inner part of the loop that operates on
one pixel.
- `IBA::demosaic()` takes 1-channel Bayer patterns and turn them into
demosaiced 3-channel images
- `IBA::ocionamedtransform()`: Implement support for OCIO NamedTransforms
* *ImageInput / ImageOutput*:
- Add virtual `heapsize()` and `footprint()` to ImageInput and ImageOutput
* *ImageCache/TextureSystem*:
- Use `shared_ptr` for ImageCache and TextureSystem creation
- Overload decode_wrapmode to support ustringhash
- Add pvt::heapsize() and pvt::footprint() methods and image cache memory tracking
- De-virtualize ImageCache and TextureSystem
- IC/TS have new `get_imagespec()`, `imagespec()`, and `get_cache_dimensions()`
methods.
- *python*: Implement ImageCache.get_imagespec()
- `TextureOpt` has been refactored a bit: some fields have been reordered;
it's actually called TextureOpt_v2 (TextureOpt is an alias) to allow
better compatibility-preserving improvements in the future, and
similarly, TextureOptBatched is an alias for TextureOptBatch_v1. The
type names of some enums have been changed, but aliases should preserve
compatibility in the vast majority of cases.
(3.0.0.0)
* *API Deprecations*: (please see
- Various other minor deprecations of things that had been marked as
deprecated for a while in fmath.h
dassert.h imagebufalgo.h imagecache.h imageio.h simd.h strutil.h ustring.h
- The deprecated headers array_view.h and missing_math.h have been removed.
- Make span::size() return size_t, not a signed type
* *Build system dependency self-builders*: <br>
The cmake-based build system has
been enhanced to give a report of what dependencies it found, what was
missing, what was found but was a version too old for our requirement.
If the `OpenImageIO_BUILD_MISSING_DEPS` cmake variable is set to "all"
(or a list of specific packages), the build system will attempt to
build certain missing dependencies locally. Currently, this works for
fmt, freetype, Imath, jpeg-turbo, libtiff, OpenColorIO, OpenEXR, pybind11, Robinmap, WebP, Zlib.
Additional dependencies will learn to self-build over time.
* *Environment variables*
- The environment variable `OIIO_LIBRARY_PATH` that contains the search
paths for finding image file format plugins has been changed to be
called `OPENIMAGEIO_PLUGIN_PATH`. This is more consistent: all the
"public API" documented environment variables that are meant for
users/sites to adjust are named starting with `OPENIMAGEIO_`, whereas
the prefix `OIIO_` is only used for environment variables that are
"unofficial" (undocumented, temporary, or meant only for developers to
use for debugging).
- Rename env variable `OIIOTOOL_METADATA_HISTORY` to
`OPENIMAGEIO_METADATA_HISTORY`
### 🚀 Performance improvements:
- *oiiotool*: `--mosaic` improvements to type conversion avoid unnecessary
copies and format conversions.
- *oiiotool*: Use pointer, not static, for internal color config, slightly reducing oiiotool startup overhead when color configs are not needed.
- *simd*: Faster vint4 load/store with unsigned char conversion
- *perf/IBA*: Improve perf of IBA::channels in-place operation
- *perf*: Overhaul of ColorConfig internals to solve perf issues
- *perf/TS*: Reduce TextureSystem memory by slimming down internal LevelInfo size
- *TS*: Have maketx/IBA::make_texture only write full metadata to the first mip level. We presume that other than resolution and encoding-related information, other metadata should not be expected
to differ between MIP levels of the same image. This saves file size and memory in the IC/TS.
- *IC/TS*: Store full metadata only at subimage 0, miplevel 0 for ptex files.
- *perf*: Additional timing logging for performance investigations
- *ImageBuf*: ImageBuf file read performance -- double reads, extra copies
### 🐛 Fixes and feature enhancements:
- *errors*: Print unretrieved global error messages upon application exit.
This should help beginning developers see important error messages they
have failed to retrieve.
- *font rendering*: Improvements to text rendering by
`ImageBufAlgo::render_text()` and `oiiotool --text`:
- Look up font in text render based on family and style name, in
addition to font filename.
- Fix incorrect vertical alignment in render_text
- Windows newline shows invalid character in text render
- Improve internals of font search enumeration
- *oiiotool*: Overhaul and fix bugs in mixed-channel propagation
- *oiiotool*: Expression substitution now understands pseudo-metadata `NONFINITE_COUNT` that returns the number of nonfinite values in the image, thus allowing decision making about fixnan
- *oiiotool*: --autocc bugfix and color config inventory cleanup
- *oiiotool*: Improve over-blurring of certain oiiotool --fit situations
- *oiiotool*: `-i:ch=...` didn't fix up alpha and z channels
- *iinfo*: iinfo was not reading MIP levels correctly
- *iv*: Assume iv display gamma 2.2
- *dds*: Always seek to the beginning of the ioproxy during open for DDS and PSD files
- *dds*: DDS support more DXGI formats
- *heic*: Don't auto-transform camera-rotated images
- *heic*: Correctly set imagespec size for heif images (by Gerrard Tai) (2.6.3.0)
- *iff*: Refactor iffoutput.cpp for memory safety
- *jpeg*: New output hint "jpeg:iptc" can be used to instruct JPEG output to not output the IPTC data to the file's header.
- *jpeg2000*: Include the headers we need to discern version
- *jxl*: JPEG-XL improvements
- *openexr*: Handle edge case of exr attribute that interferes with our hints
- *openexr*: Add support for luminance-chroma OpenEXR images.
- *openexr*: Implement copy_image for OpenEXR
- *openexr*: Fix out-of-bounds reads when using OpenEXR decreasingY lineOrder.
- *openexr*: Add proxy support for EXR multipart output
- *openexr*: Modernize dwa compression level setting
- *ffmpeg*: Add proper detection of new FFmpeg versions
- *ffmpeg*: FFmpeg additional metadata
- *png*: New output compression mode names recognized: "none", "pngfast".
Also some minor speedups to PNG writes.
- *png*: Write out proper tiff header version in png EXIF blobs
- *png*: A variety of minor optimizations to the PNG writer
- *png*: Improve png write with alpha is low
- *png*: Fix crash for writing large PNGs with alpha
- *png*: Correctly read PNGs with partial alpha
- *png*: Round dpi resolution to nearest 0.1
- *png*: Bug in associateAlpha botched alpha=0 pixels
- *pnm*: Improvements to pnm plugin
- *pnm*: Initialize m_pfm_flip before use to avoid UB.
- *psd*: Always seek to the beginning of the ioproxy during open for DDS and PSD files
- *psd*: Add support for 16- and 32-bit Photoshop file reads
- *psd*: Various PSD files fail to load correctly
- *raw*: LibRaw wavelet denoise options
- *raw*: Avoid buffer overrun for flip direction cases
- *raw*: Expose additional white balancing hints: "raw:user_black", "raw:use_auto_wb", "raw:grey_box", "dng:version", "dng:baseline_exposure", "dng:calibration_illuminant#", "dng:color_matrix#",
"dng:camera_calibrationX".
- *raw*: Make the crop match in-camera JPEG
- *raw*: Check for nullptr in raw input plugin
- *raw*: Raw reader - exposing max_raw_memory_mb
- *tiff*: Fix TIFF export with EXIF data and I/O proxy
- *ImageBuf*: Fix crash when mutable Iterator used with read-IB
- *ImageBuf*: Improve IB::nsubimages and other related fixes
- *ImageBuf*: Copy/paste error in the ImageBuf iterator copy constructor
- *ImageBufAlgo*: IBA::to_OpenCV fails for ImageCache-backed images
- *ImageBufAlgo*: Add missing version of warp
- *ImageBufAlgo*: IBA::transpose() didn't set output image's format to input
- *ImageBufAlgo*: Fix issue when computing perceptual diff
- *ImageInput*: Only check REST arguments if the file does not exist, avoiding problems for filenames that legitimately contain a `?` character.
- *fix*: Certain int->float type conversions in TypeDesc/ParamValueList
- *color management*: Automatically recognize some additional color space name synonyms: "srgb_texture", "lin_rec709" and "lin_ap1". Also add common permutation "srgb_tx" and "srgb texture" as
additional aliases for "srgb".
- *color management*: Color management nomenclature improvements: "linear"
is now just a legacy synonym for the preferred "lin_rec709", which is
used widely where applicable.
- *security*: Don't use (DY)LD_LIBRARY_PATH as plugin search paths
- *fix*: Fix crash when no default fonts are found
- *TextureSystem*: Fix missing initialization in TextureOptBatch
- *iv*: Avoid crash with OpenGL + multi-channel images
- *iv*: If OCIO env is not set or doesn't exist, have iv use built-in config
- *iv*: Iv should enable the ImageCache
- *ImageCache*: Simplify tile cache clearing.
### 🔧 Internals and developer goodies
- *int*: Prevent infinite loop in bit_range_convert
- *int*: More switching fprintf/etc to new style print
- *int*: Various fixes for memory safety and reduce static analysis complaints
- *int*: Use OIIO functions for byte swapping to make Sonar happy
- *int*: More conversion to new string formatting
- *int*: Added validity checks to PNG, JPEG, and EXR readers to try to catch implausible resolutions or channels that are likely to be corrupted or malicious images.
- *int*: ImageInput: Initialize pixels of partial tile conversion buffer,
avoiding possible floating point errors.
- *bit.h*: Move bitcast, byteswap, and rotl/rotr to new bit.h
- *bit.h*: OIIO::bitcast adjustments
- *filesystem.h*: Filesystem::unique_path wasn't using the unicode rectified string
- *filesystem.h*: IOProxy const method adjustments
- *fmath.h*: One more fast_exp fix
- *fmt.h*: Fix build break from recent fmt change
- *hash.h*: Mismatched pragma push/pop in hash.h
- *imagebuf.h*: Add `ImageBuf::wrapmode_name()`, inverse of wrapmode_from_string
- *oiioversion.h*: Coalesce redundant STRINGIZE macros -> OIIO_STRINGIZE
- *platform.h*: Belatedly change OIIO_CONSTEXPR14 to constexpr
- *paramlist.h*: Add ParamValueSpan::get_bool()
- *platform.h*: In platform.h, define OIIO_DEVICE macro
- *simd.h*: Fix leaking of Imath.h into public headers
- *simd.h*: Make all-architecture matrix44::inverse()
- *simd.h*: AVX-512 round function
- *simd.h*: Simplify vbool16 casting
- *simd.h*: Address NEON issues
- *simd.h*: Gather_mask was wrong for no-simd fallback
- *simd.h*: For simd types, use default for ctrs and assignment where applicable
- *simd.h*: Fix longstanding probem with 16-wide bitcast for 8-wide HW
- *span.h*: Span and range checking enhancements
- *span.h*: Make span default ctr and assignment be `= default`
- *span.h*: Span utility improvements
- *span.h*: Fold span_util.h contents into span.h
- *span.h*: New utility functions `span_within()`, `check_span()`, and
macro `OIIO_ALLOCA_SPAN`.
- *string_view.h*: Deprecate OIIO::string_view::c_str()
- *strutil.h*: Add `Strutil::eval_as_bool()`
- *strutil.h*: Add `Strutil::string_is_identifier()`
- *strutil.h*: Change Strutil::format to default to std::format conventions
- *sysutil.h*: Deprecate Sysutil::physical_concurrency()
- *texture.h*: Overload decode_wrapmode to support ustringhash
- *typedesc.h*: Allow TypeDesc to have all the right POD attributes
- *typedesc.h*: Add TypeDesc::Vector3i
- *ustring.h*: Make sure C++ knows ustring & ustringhash are trivially copyable
- *ustring.h*: Address ignored annotation nvcc warnings on explicitly-defaulted functions
- *style*: Update our formatting standard to clang-format 17.0 and C++17
- *int*: Use spans to solve a number of memory safety issues
- *cleanup*: Convert more old errorf() to errorfmt()
- *fix*: Error retrieval safeguards for recycled objects
- *fix*: Improve error messages when a font is not found
- *refactor*: Oiiotool break out expression eval methods into separate file
- *refactor*: Move most of imageio_pvt.h.in to just a regular .h
- *refactor*: Simplify openexr includes
- *fix*: Catch potential OCIO exception that we were missing
- *fix*: Don't let fmtlib exceptions crash the app
- *fix*: Beef up some error messages
- *cleanup*: Remove code disabled as of 3.0
- *fix*: Address fmt exceptions for left justification
### 🏗 Build/test/CI and platform ports:
* CMake build system and scripts:
- Fix Cuda ustring.h warnings
- Remove unnecessary headers from strutil.cpp causing build trouble
- Print build-time warnings for LGPL gotchas
- *build*: Make C++17 be the default C++ standard for building (C++14 is
still the minimum for now and can be selected via CMAKE_CXX_STANDARD)
- *build*: Provide compile_commands.json for use by tools
- *build*: Don't fail for 32 bit builds because of static_assert check
- *build*: Provide compile_commands.json for use by tools
- *build*: Don't fail for 32 bit builds because of static_assert check
- *build*: Better cmake verbose behavior
- *build*: Fix include guard
- *build*: Add a way to cram in a custom extra library for iv
- *build*: Don't fail pybind11 search if python is disabled
- *build*: Cleanup - get rid of "site" files
- *build*: Fix buld_ninja.bash to make directories and download correctly
- *build*: Need additional include
- *build*: Make an OpenImageIO_Util_static library and target
- *build*: Switch to target-based definitions
- *build*: iv build issues with glTexImage3D
- *build*: Restore internals of strhash to compile correctly on 32 bit architectures
- *build*: LibOpenImageIO_Util does need DL libs, we removed it incorrectly
- *build*: Fix missing target_link_options for libraries (by kaarrot) (2.6.2.0)
- *build*: Disable clang18 warnings about deprecated unicode conversion
- *build*: More warning elimination for clang18
- *build*: Add CMath target for the sake of static libtiff
- *build*: Add appropriate compiler defines and flags for SIMD with MSVC
- *build/windows*: Fix warning on windows
- *build/windows*: Fix for setenv() on Windows
- *build*: Gcc-14 support, testing, CI
- *build*: New set_utils.cmake for various handy "set()" wrappers
- *build*: Upgrade to more modern python3 finding
- *build*: Add missing includes to libutil CMake target.
- *build*: Avoid rebuilds due to processing of fmt headers
- *build*: Rudimentary CUDA support infrastructure (experimental)
- *build*: A few cmake cleanups and minor code rearrangements
- *build*: Don't link libOpenImageIO against OpenCV
- *build*: Fixed the sign compare causing build failure
- *build*: Add a build option for profiling
- *build*: Don't change CMAKE_XXX_OUTPUT_DIRECTORY when built as subdir
- *build*: Add option for build profiling with clang -ftime-trace
- *build*: Reduce compile time by trimming template expansion in IBA.
* Dependency support:
- *deps/OpenVDB*: Protect against mismatch of OpenVDB vs C++
- *deps/OpenVDB*: Adjust OpenVDB version requirements vs C++17
- *deps*: Ptex support for static library
- *deps*: Account for header changes in fmt project trunk
- *deps*: Deal with changes in fmt's trunk
- *deps*: Remove Findfmt.cmake
- *deps*: Correctly disable OpenVDB when it's incompatible
- *deps*: Fixes for DCMTK
- *deps*: Fix warning when Freetype is disabled
- *deps*: Remove boost from strutil.cpp
- *deps*: FindOpenColorIO failed to properly set OpenColorIO_VERSION
- Use exported targets for libjpeg-turbo and bump min to 2.1
- *deps*: Support fmt 11.0
- *deps*: Support and test against OCIO 2.4
- *deps*: No need for OCIO search to use PREFER_CONFIG
- *deps*: Raise CMake minimum to 3.18.2
- *deps*: Remove the enforced upper version limit for fmt
- *deps*: Search for libbz2 only if FFmpeg or FreeType is enabled.
* Testing and Continuous integration (CI) systems:
- Tests for ABI compliance
- *tests*: Imagebuf_test add benchmarks for iterator traversal
- *tests*: Add opencv regression test
- *tests*: Improve color management test in imagebufalgo_test
- *tests*: Add one more ref output for python-colorconfig test
- *tests*: Shuffle some tests between directories
- *tests*: Fix docs test, used wrong namespace
- *tests/fixes*: Fixes to reduce problems identified by static analysis
- *tests*: Add test for filter values and 'filter_list' query
- *tests*: Add new heif test output
- *tests*: Fix windows quoting for test
- *tests*: Remove unused test output ref from old dependency versions
- *tests*: Add switch to imageinout_test for enabling floating point exceptions.
- *tests*: Fixup after directory refactor of OpenImageIO-images
- *ci*: Some straggler repo renames in the workflows
- *ci*: CI tests on MacOS ARM, and fixes found consequently
- *ci*: Nomenclature change 'os' to 'runner' for clarity
- *ci*: Add tiff-misc reference for slightly changed error messages
- *ci*: Remove MacOS-11 test
- *ci*: Test against gcc-13
- *ci*: Restrict Mac ARM running
- *ci*: Rename macro to avoid conflict during CI unity builds
- *ci*: Repair Sonar scanner analysis
- *ci*: Improve parallel builds by basing on number of cores
- *ci*: Update all github actions to their latest versions that's compatible
- *ci*: Bump 'latest' test to newer dep versions, document
- *ci*: Revert to fix scorecard analysis, try version 2.0.6 (2.6.0.3)
- *ci*: Start using macos-14 ARM runners, bump latest OCIO
- *ci*: Switch away from deprecated GHA idiom set-output
- *ci*: Add vfx platform 2024
- *ci*: Fix Windows CI, need to build newer openexr and adjust boost search
- *ci*: Adjust GHA upload-artifact action version
- *ci*: Allow triggering CI workflow from web
- *ci*: Make one of the Mac tests build for avx2
- *ci*: Enable Windows 2022 CI tests
- *ci*: Update scrorecard workflow to fix breakage
- *ci*: Fix broken Windows CI by building our own libtiff
- *ci*: Typo in build_libtiff.bash
- *ci*: For Windows CI, build only release of vcpkg packages
- *ci*: New tets: oldest, hobbled, localbuilds
- *ci*: Fix GHA CI after they upgraded nodejs
- *ci*: Sanitizer new warnings about signed/unsigned offsets in openexr
- *ci*: Deal with CentOS 7 EOL and disappearance of yum mirrors
- *ci*: CI sanitizer test improvements
- *ci*: Add a workflow that builds docs
- *ci*: Streamline the old MacOS-12 CI test
- *ci*: Test against OpenEXR 3.3 and deal with its 4.0 bump
- *ci*: Make scrorecards workflow not fail constantly
- *ci*: Limit when automatic docs building ci happens
- *ci*: Retire deprecated macos12 runner, try beta macos15
* Platform support:
- *win*: Fix building failed from source on Windows
### 📚 Notable documentation changes:
- *docs*: Convert code examples within the docs to tests that are built
executed as part of the testsuite.
- Spruce up the main README and add "Building_the_docs"
- *docs*: Make an example of doc-to-test in the imagebufalgo chapter
- *docs*: Convert examples within the imagebufalgo chapter.
- *docs*: Added tests for Simple Image input and updated rst
- *docs*: Convert make_texture doc examples to tests
- *docs*: Fix RTD configuration for v2
- *docs*: Update INSTALL.md to reflect the latest versions we've tested against
- *docs*: Fix typo
- *docs*: Minor change to formatting and naming
- *docs*: Fix link to openexr test images
- *security*: Document CVE-2023-42295 (2.6.0.1)
- *docs*: Fix broken IBA color management documentation
- *docs*: Update SECURITY and RELEASING documentation
- *docs*: Fix tab that was missing from the rendering on rtd
- *docs*: Fix python example
- *docs*: Fix some typos and add missing oiiotool expression explanations
- *docs*: Update INSTALL.md for windows
- *doc*: Add missing documentation of ImageBuf locking methods
- *doc*: Fixes to formatting and sphinx warnings
- *docs*: Clarify that IBA::rotate params are pixel coordinates
- *docs*: Clarify TextureSystem::create use of imagecache when shared=true
- *docs*: Fix typo where apostrophe was used for possessive of 'it'
- *docs/security*: Document CVE-2024-40630 resolution (2.6.3.0)
- *docs*: IBA::st_warp was missing from the documentation
- *docs*: Move some docs files around
- *docs*: Various minor fixes
- *docs*: Add documenting comments where missing in string_view and span
- *docs*: Fix typo in description of Strutil::parse_values
### 🏢 Project Administration
- *admin*: Repo rename -- fix all URL references
- *admin*: Alert slack "release-announcements" channel upon OIIO release
- *admin*: Relicense more code under Apache 2.0
- *admin*: Account for duplicate emails in the .mailmap
- *admin*: Add a ROADMAP document
- *docs*: Better documentation of past CVE fixes in SECURITY.md
- *admin*: More CLA explanation and how-to links
- *admin*: Add deprecation updates to the RELEASING checklist
- *admin*: Document my git-cliff workflow for release notes
- *admin*: Change docs and comments references master -> main
- *admin*: Update OpenImageIO Roadmap
- *admin*: Update SECURITY.md for 3.0 beta
To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 pkgsrc/graphics/openimageio/Makefile
cvs rdiff -u -r1.15 -r1.16 pkgsrc/graphics/openimageio/PLIST
cvs rdiff -u -r1.36 -r1.37 pkgsrc/graphics/openimageio/distinfo
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/graphics/openimageio/patches/patch-src_cmake_compiler.cmake
cvs rdiff -u -r1.3 -r0 \
pkgsrc/graphics/openimageio/patches/patch-src_cmake_externalpackages.cmake
cvs rdiff -u -r1.1 -r0 \
pkgsrc/graphics/openimageio/patches/patch-src_heif.imageio_heifinput.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_heif.imageio_heifoutput.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_include_OpenImageIO_imagebuf.h
cvs rdiff -u -r0 -r1.1 \
pkgsrc/graphics/openimageio/patches/patch-src_include_OpenImageIO_typedesc.h \
pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_imagebufalgo__compare.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_maketexture.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_printinfo.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_libtexture_environment.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_libutil_fmath__test.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_oiiotool_printinfo.cpp \
pkgsrc/graphics/openimageio/patches/patch-src_testtex_testtex.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/openimageio/Makefile
diff -u pkgsrc/graphics/openimageio/Makefile:1.120 pkgsrc/graphics/openimageio/Makefile:1.121
--- pkgsrc/graphics/openimageio/Makefile:1.120 Sun Aug 10 10:38:56 2025
+++ pkgsrc/graphics/openimageio/Makefile Wed Aug 13 06:35:13 2025
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.120 2025/08/10 10:38:56 wiz Exp $
+# $NetBSD: Makefile,v 1.121 2025/08/13 06:35:13 wiz Exp $
-DISTNAME= OpenImageIO-2.5.17.0
+DISTNAME= OpenImageIO-3.0.9.1
PKGNAME= ${DISTNAME:tl}
-PKGREVISION= 6
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=AcademySoftwareFoundation/}
GITHUB_PROJECT= OpenImageIO
@@ -20,25 +19,20 @@ USE_TOOLS+= pkg-config
TEST_TARGET= test
CMAKE_CONFIGURE_ARGS+= -DSTOP_ON_WARNING=OFF # Disable -Werror
-CMAKE_CONFIGURE_ARGS+= -DBUILD_MISSING_ROBINMAP=OFF
CMAKE_CONFIGURE_ARGS+= -DUSE_EXTERNAL_PUGIXML=ON
CMAKE_CONFIGURE_ARGS+= -DUSE_PYTHON=OFF
CMAKE_CONFIGURE_ARGS+= -DROBINMAP_INCLUDE_DIR=${BUILDLINK_PREFIX.robin-map}/include
-CMAKE_CONFIGURE_ARGS+= -DOpenJpeg_ROOT=${BUILDLINK_PREFIX.openjpeg}
CMAKE_CONFIGURE_ARGS+= -DOpenEXR_ROOT=${BUILDLINK_PREFIX.openexr}
# none of these are available in pkgsrc yet
CMAKE_CONFIGURE_ARGS+= -DUSE_DCMTK=OFF
-CMAKE_CONFIGURE_ARGS+= -DUSE_Libsquish=OFF
CMAKE_CONFIGURE_ARGS+= -DUSE_Nuke=OFF
CMAKE_CONFIGURE_ARGS+= -DUSE_OpenVDB=OFF
-CMAKE_CONFIGURE_ARGS+= -DUSE_Field3D=OFF
# disable imageviewer since it requires Qt5 to build
CMAKE_CONFIGURE_ARGS+= -DENABLE_IV=OFF
# disabled by default in arch linux, freebsd...
-CMAKE_CONFIGURE_ARGS+= -DUSE_HDF5=OFF
CMAKE_CONFIGURE_ARGS+= -DUSE_FFmpeg=OFF
CMAKE_CONFIGURE_ARGS+= -DUSE_OpenCV=OFF
Index: pkgsrc/graphics/openimageio/PLIST
diff -u pkgsrc/graphics/openimageio/PLIST:1.15 pkgsrc/graphics/openimageio/PLIST:1.16
--- pkgsrc/graphics/openimageio/PLIST:1.15 Mon Nov 4 21:22:23 2024
+++ pkgsrc/graphics/openimageio/PLIST Wed Aug 13 06:35:13 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2024/11/04 21:22:23 adam Exp $
+@comment $NetBSD: PLIST,v 1.16 2025/08/13 06:35:13 wiz Exp $
bin/iconvert
bin/idiff
bin/igrep
@@ -8,10 +8,10 @@ bin/oiiotool
bin/testtex
include/OpenImageIO/Imath.h
include/OpenImageIO/argparse.h
-include/OpenImageIO/array_view.h
include/OpenImageIO/atomic.h
include/OpenImageIO/attrdelegate.h
include/OpenImageIO/benchmark.h
+include/OpenImageIO/bit.h
include/OpenImageIO/color.h
include/OpenImageIO/dassert.h
include/OpenImageIO/deepdata.h
@@ -37,10 +37,11 @@ include/OpenImageIO/hash.h
include/OpenImageIO/image_view.h
include/OpenImageIO/imagebuf.h
include/OpenImageIO/imagebufalgo.h
+include/OpenImageIO/imagebufalgo_opencv.h
include/OpenImageIO/imagebufalgo_util.h
include/OpenImageIO/imagecache.h
include/OpenImageIO/imageio.h
-include/OpenImageIO/missing_math.h
+include/OpenImageIO/memory.h
include/OpenImageIO/oiioversion.h
include/OpenImageIO/optparser.h
include/OpenImageIO/parallel.h
@@ -50,6 +51,7 @@ include/OpenImageIO/plugin.h
include/OpenImageIO/refcnt.h
include/OpenImageIO/simd.h
include/OpenImageIO/span.h
+include/OpenImageIO/span_util.h
include/OpenImageIO/strided_ptr.h
include/OpenImageIO/string_view.h
include/OpenImageIO/strongparam.h
@@ -64,7 +66,6 @@ include/OpenImageIO/typedesc.h
include/OpenImageIO/unittest.h
include/OpenImageIO/unordered_map_concurrent.h
include/OpenImageIO/ustring.h
-include/OpenImageIO/varyingref.h
include/OpenImageIO/vecparam.h
include/OpenImageIO/version.h
lib/cmake/OpenImageIO/OpenImageIOConfig.cmake
@@ -72,14 +73,15 @@ lib/cmake/OpenImageIO/OpenImageIOConfigV
lib/cmake/OpenImageIO/OpenImageIOTargets-release.cmake
lib/cmake/OpenImageIO/OpenImageIOTargets.cmake
lib/libOpenImageIO.so
-lib/libOpenImageIO.so.2.5
-lib/libOpenImageIO.so.2.5.17
+lib/libOpenImageIO.so.3.0
+lib/libOpenImageIO.so.3.0.9
lib/libOpenImageIO_Util.so
-lib/libOpenImageIO_Util.so.2.5
-lib/libOpenImageIO_Util.so.2.5.17
+lib/libOpenImageIO_Util.so.3.0
+lib/libOpenImageIO_Util.so.3.0.9
lib/pkgconfig/OpenImageIO.pc
share/doc/OpenImageIO/CHANGES-0.x.md
share/doc/OpenImageIO/CHANGES-1.x.md
+share/doc/OpenImageIO/CHANGES-2.x.md
share/doc/OpenImageIO/CHANGES.md
share/doc/OpenImageIO/LICENSE.md
share/doc/OpenImageIO/THIRD-PARTY.md
Index: pkgsrc/graphics/openimageio/distinfo
diff -u pkgsrc/graphics/openimageio/distinfo:1.36 pkgsrc/graphics/openimageio/distinfo:1.37
--- pkgsrc/graphics/openimageio/distinfo:1.36 Tue Jul 8 05:54:48 2025
+++ pkgsrc/graphics/openimageio/distinfo Wed Aug 13 06:35:13 2025
@@ -1,12 +1,16 @@
-$NetBSD: distinfo,v 1.36 2025/07/08 05:54:48 wiz Exp $
+$NetBSD: distinfo,v 1.37 2025/08/13 06:35:13 wiz Exp $
-BLAKE2s (OpenImageIO-2.5.17.0.tar.gz) = 5e381a7ef26c5cba138c75ad1eb06e24a182a0e86b63a88b95ff2d0bcd2eec4f
-SHA512 (OpenImageIO-2.5.17.0.tar.gz) = a979d84ce985d80d42058ea9cdc631096ddcd712643eef497425e63f5d747cad0c5acb9a87af47be529f850c902f4bcaf33857fb3adec53e41a3d950d49a59d2
-Size (OpenImageIO-2.5.17.0.tar.gz) = 52548216 bytes
-SHA1 (patch-src_cmake_compiler.cmake) = d4abc010c5016cfcffab51191b5ea37edbfdd9cc
-SHA1 (patch-src_cmake_externalpackages.cmake) = 710f1f66e55fbee5f7e330064db8535e7a1110fe
-SHA1 (patch-src_heif.imageio_heifinput.cpp) = c638e9630c2f44c8591a0ac3a8b17982407a43e8
-SHA1 (patch-src_heif.imageio_heifoutput.cpp) = 4b22ce1ec0297c792c2dd3cefe3da297869835af
-SHA1 (patch-src_include_OpenImageIO_imagebuf.h) = 6460cb5ff97b7d2c3eaedd7fb157dfce9d8d7984
+BLAKE2s (OpenImageIO-3.0.9.1.tar.gz) = 81e20f2e46d83c8918eb45eb55f528472cc6a3510f0869d7fa2d5d9ad2acfd3c
+SHA512 (OpenImageIO-3.0.9.1.tar.gz) = cee6ddfbd825022a45a46b041c894a18718a474a32da8715fe08f918c7387505e81f3220c0ad79d3ec160b9c224bdeafbbb8a2b67a47cd845dca492582607c22
+Size (OpenImageIO-3.0.9.1.tar.gz) = 53477417 bytes
+SHA1 (patch-src_cmake_compiler.cmake) = d261b70e5ff0984b386087be54aff55e2b36c274
SHA1 (patch-src_include_OpenImageIO_strutil.h) = 90efe95bf763881478aea851cce0ea67a9de9c1a
+SHA1 (patch-src_include_OpenImageIO_typedesc.h) = 19ac9912751367438c3a53f264cc362c9fe926d4
+SHA1 (patch-src_libOpenImageIO_imagebufalgo__compare.cpp) = eb7ba983e73cdd322278378fa62c10acd9daab69
+SHA1 (patch-src_libOpenImageIO_maketexture.cpp) = 5acdceaba4e742ae0b82fe8d8d0461f727928539
+SHA1 (patch-src_libOpenImageIO_printinfo.cpp) = ef87a0d8e654b3aa5282ff2abecfcbeea44bb1f1
+SHA1 (patch-src_libtexture_environment.cpp) = 60e6ae48620fde8dce3da2577a1201b1152eb647
+SHA1 (patch-src_libutil_fmath__test.cpp) = 7a0710320dccaedf2bb3d13f758307d0fa3c5c90
SHA1 (patch-src_libutil_strutil.cpp) = fd63f4648cd9750d7b9e496c183886d348c2cff5
+SHA1 (patch-src_oiiotool_printinfo.cpp) = 45e671a5e73b29be5f72b06bbed6f7e9dd8149de
+SHA1 (patch-src_testtex_testtex.cpp) = 676512f0e74f8a72615f106d22f9ee4ce6d3da3b
Index: pkgsrc/graphics/openimageio/patches/patch-src_cmake_compiler.cmake
diff -u pkgsrc/graphics/openimageio/patches/patch-src_cmake_compiler.cmake:1.3 pkgsrc/graphics/openimageio/patches/patch-src_cmake_compiler.cmake:1.4
--- pkgsrc/graphics/openimageio/patches/patch-src_cmake_compiler.cmake:1.3 Wed Jun 26 16:26:24 2024
+++ pkgsrc/graphics/openimageio/patches/patch-src_cmake_compiler.cmake Wed Aug 13 06:35:13 2025
@@ -1,14 +1,13 @@
-$NetBSD: patch-src_cmake_compiler.cmake,v 1.3 2024/06/26 16:26:24 adam Exp $
+$NetBSD: patch-src_cmake_compiler.cmake,v 1.4 2025/08/13 06:35:13 wiz Exp $
Disable custom rpath handling that conflicts with pkgsrc.
---- src/cmake/compiler.cmake.orig 2024-06-01 19:59:05.000000000 +0000
+--- src/cmake/compiler.cmake.orig 2025-08-13 06:30:18.571566460 +0000
+++ src/cmake/compiler.cmake
-@@ -632,27 +632,6 @@ if (DEFINED ENV{${PROJECT_NAME}_CI})
- endif ()
+@@ -688,36 +688,6 @@ endif ()
--###########################################################################
+ ###########################################################################
-# Rpath handling at the install step
-#
-# set (MACOSX_RPATH ON)
@@ -22,13 +21,23 @@ Disable custom rpath handling that confl
- unset (CMAKE_INSTALL_RPATH)
-else ()
- if (NOT CMAKE_INSTALL_RPATH)
-- set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
+- if(APPLE)
+- set(BASEPOINT @loader_path)
+- else()
+- set(BASEPOINT $ORIGIN)
+- endif()
+- set (CMAKE_INSTALL_RPATH ${BASEPOINT}
+- ${BASEPOINT}/${CMAKE_INSTALL_LIBDIR}
+- ${BASEPOINT}/../${CMAKE_INSTALL_LIBDIR})
- endif ()
- # add the automatically determined parts of the RPATH that
- # point to directories outside the build tree to the install RPATH
- set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
- message (VERBOSE "CMAKE_INSTALL_RPATH = ${CMAKE_INSTALL_RPATH}")
-endif ()
+-
+-
+-###########################################################################
+ # Generate compile_commands.json for use by editors and tools.
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
-
- ###########################################################################
Added files:
Index: pkgsrc/graphics/openimageio/patches/patch-src_include_OpenImageIO_typedesc.h
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_include_OpenImageIO_typedesc.h:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_include_OpenImageIO_typedesc.h Wed Aug 13 06:35:13 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_include_OpenImageIO_typedesc.h,v 1.1 2025/08/13 06:35:13 wiz Exp $
+
+--- src/include/OpenImageIO/typedesc.h.orig 2025-08-13 06:24:05.048800007 +0000
++++ src/include/OpenImageIO/typedesc.h
+@@ -401,7 +401,7 @@ template<> struct BaseTypeFromC<uint32_t
+ template<> struct BaseTypeFromC<int32_t> { static const TypeDesc::BASETYPE value = TypeDesc::INT; };
+ template<> struct BaseTypeFromC<uint64_t> { static const TypeDesc::BASETYPE value = TypeDesc::UINT64; };
+ template<> struct BaseTypeFromC<int64_t> { static const TypeDesc::BASETYPE value = TypeDesc::INT64; };
+-#if defined(__GNUC__) && __WORDSIZE == 64 && !(defined(__APPLE__) && defined(__MACH__))
++#if defined(__GNUC__) && __WORDSIZE == 64 && !(defined(__APPLE__) && defined(__MACH__)) || defined(__NetBSD__)
+ // Some platforms consider int64_t and long long to be different types, even
+ // though they are actually the same size.
+ static_assert(!std::is_same_v<unsigned long long, uint64_t>);
Index: pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_imagebufalgo__compare.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_imagebufalgo__compare.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_imagebufalgo__compare.cpp Wed Aug 13 06:35:13 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_libOpenImageIO_imagebufalgo__compare.cpp,v 1.1 2025/08/13 06:35:13 wiz Exp $
+
+--- src/libOpenImageIO/imagebufalgo_compare.cpp.orig 2025-08-13 06:18:52.121013693 +0000
++++ src/libOpenImageIO/imagebufalgo_compare.cpp
+@@ -21,6 +21,8 @@
+
+ #include "imageio_pvt.h"
+
++using namespace std;
++
+ OIIO_NAMESPACE_BEGIN
+
+
Index: pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_maketexture.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_maketexture.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_maketexture.cpp Wed Aug 13 06:35:13 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_libOpenImageIO_maketexture.cpp,v 1.1 2025/08/13 06:35:13 wiz Exp $
+
+--- src/libOpenImageIO/maketexture.cpp.orig 2025-08-13 06:21:04.554909439 +0000
++++ src/libOpenImageIO/maketexture.cpp
+@@ -347,7 +347,7 @@ check_nan_block(const ImageBuf& src, ROI
+ for (int x = x0; x < x1; ++x) {
+ src.getpixel(x, y, pel);
+ for (int c = 0; c < spec.nchannels; ++c) {
+- if (!isfinite(pel[c])) {
++ if (!std::isfinite(pel[c])) {
+ spin_lock lock(maketx_mutex);
+ // if (found_nonfinite < 3)
+ // std::cerr << "maketx ERROR: Found " << pel[c]
Index: pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_printinfo.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_printinfo.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_libOpenImageIO_printinfo.cpp Wed Aug 13 06:35:14 2025
@@ -0,0 +1,25 @@
+$NetBSD: patch-src_libOpenImageIO_printinfo.cpp,v 1.1 2025/08/13 06:35:14 wiz Exp $
+
+--- src/libOpenImageIO/printinfo.cpp.orig 2025-08-13 06:20:47.321951087 +0000
++++ src/libOpenImageIO/printinfo.cpp
+@@ -78,9 +78,9 @@ stats_num(float val, int maxval, bool ro
+ // Ensure uniform printing of NaN and Inf on all platforms
+ using Strutil::fmt::format;
+ std::string result;
+- if (isnan(val))
++ if (std::isnan(val))
+ result = "nan";
+- else if (isinf(val))
++ else if (std::isinf(val))
+ result = "inf";
+ else if (maxval == 0) {
+ result = format("{:f}", val);
+@@ -245,7 +245,7 @@ print_deep_stats(std::ostream& out, stri
+ for (unsigned int s = 0; s < samples; ++s) {
+ for (int c = 0; c < nchannels; ++c) {
+ float d = input.deep_value(x, y, z, c, s);
+- if (!isfinite(d)) {
++ if (!std::isfinite(d)) {
+ if (nonfinites++ == 0) {
+ nonfinite_pixel.setValue(x, y, z);
+ nonfinite_pixel_samp = s;
Index: pkgsrc/graphics/openimageio/patches/patch-src_libtexture_environment.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_libtexture_environment.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_libtexture_environment.cpp Wed Aug 13 06:35:14 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_libtexture_environment.cpp,v 1.1 2025/08/13 06:35:14 wiz Exp $
+
+--- src/libtexture/environment.cpp.orig 2025-08-13 06:20:32.653170686 +0000
++++ src/libtexture/environment.cpp
+@@ -267,9 +267,9 @@ vector_to_latlong(const Imath::V3f& R, b
+ t = 0.5f - atan2f(R.z, hypotf(R.x, R.y)) / (float)M_PI;
+ }
+ // learned from experience, beware NaNs
+- if (isnan(s))
++ if (std::isnan(s))
+ s = 0.0f;
+- if (isnan(t))
++ if (std::isnan(t))
+ t = 0.0f;
+ }
+
Index: pkgsrc/graphics/openimageio/patches/patch-src_libutil_fmath__test.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_libutil_fmath__test.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_libutil_fmath__test.cpp Wed Aug 13 06:35:14 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_libutil_fmath__test.cpp,v 1.1 2025/08/13 06:35:14 wiz Exp $
+
+--- src/libutil/fmath_test.cpp.orig 2025-08-13 06:25:41.173006216 +0000
++++ src/libutil/fmath_test.cpp
+@@ -534,7 +534,7 @@ test_half_convert_accuracy()
+ && Imath::finitef(H[i])) {
+ ++nwrong;
+ Strutil::print("wrong {} 0b{} h={}, f={} {}\n", i, bin16(i), H[i],
+- F[i], isnan(f) ? "(nan)" : "");
++ F[i], std::isnan(f) ? "(nan)" : "");
+ }
+ }
+
Index: pkgsrc/graphics/openimageio/patches/patch-src_oiiotool_printinfo.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_oiiotool_printinfo.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_oiiotool_printinfo.cpp Wed Aug 13 06:35:14 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_oiiotool_printinfo.cpp,v 1.1 2025/08/13 06:35:14 wiz Exp $
+
+--- src/oiiotool/printinfo.cpp.orig 2025-08-13 06:26:13.271475820 +0000
++++ src/oiiotool/printinfo.cpp
+@@ -58,9 +58,9 @@ print_nums(std::ostream& out, int n, con
+ if (i)
+ Strutil::print(out, "{}", sep);
+ float v = float(val[i]);
+- if (isnan(v))
++ if (std::isnan(v))
+ Strutil::print(out, "nan");
+- else if (isinf(v))
++ else if (std::isinf(v))
+ Strutil::print(out, "inf");
+ else
+ Strutil::print(out, "{:.9f}", v);
Index: pkgsrc/graphics/openimageio/patches/patch-src_testtex_testtex.cpp
diff -u /dev/null pkgsrc/graphics/openimageio/patches/patch-src_testtex_testtex.cpp:1.1
--- /dev/null Wed Aug 13 06:35:14 2025
+++ pkgsrc/graphics/openimageio/patches/patch-src_testtex_testtex.cpp Wed Aug 13 06:35:14 2025
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_testtex_testtex.cpp,v 1.1 2025/08/13 06:35:14 wiz Exp $
+
+--- src/testtex/testtex.cpp.orig 2025-08-13 06:26:53.842812970 +0000
++++ src/testtex/testtex.cpp
+@@ -1557,7 +1557,7 @@ do_tex_thread_workout(int iterations, in
+ }
+ // Force the compiler to not optimize away the "other work"
+ for (int c = 0; c < nchannels; ++c)
+- OIIO_ASSERT(!isnan(result[c]));
++ OIIO_ASSERT(!std::isnan(result[c]));
+ }
+
+
Home |
Main Index |
Thread Index |
Old Index