PKGNAME=openimageio
PKGSEC=libs
PKGDEP="boost glew jasper libraw libtiff opencolorio opencv openexr openssl \
        pugixml libheif tbb openvdb python-3 giflib imath freetype"
BUILDDEP="pybind11"
PKGDES="Library for reading and writing images, including classes, utilities, and applications"

ABTYPE=cmakeninja
CMAKE_AFTER=(
	-DUSE_EXTERNAL_PUGIXML=ON
	-DOIIO_BUILD_TOOLS=ON
	-DUSE_PYTHON=ON
	-DUSE_FFMPEG=OFF
	-DBUILD_DOCS=ON
	-DINSTALL_DOCS=ON
	-DINSTALL_FONTS=OFF
	-DUSE_QT=OFF
	-DUSE_PTEX=OFF
	-DBUILD_TESTING=OFF
	-DOIIO_BUILD_TESTS=OFF
	-DOIIO_DOWNLOAD_MISSING_TESTDATA=OFF
	-DCMAKE_CXX_STANDARD=17
)

# Break old blender due to updated sonames.
PKGBREAK="blender<=5.1.2-1 openshadinglanguage<=1.15.5.0"
# ... and other deprecated packages
PKGKBREAK+=" luxrays<=1.6-7 luxrender<=1.6-5"
