Files
haikuports/media-libs/openimageio/openimageio2.5-2.5.12.0.recipe
Alexander von Gluck 47ea51f320 cmake/meson: Mass fix packages with broken debuginfo (#12822)
* cmake/debuginfo: Mass fix packages with broken debuginfo

* rtl_sdr: Fix trailing whitespace

* meson/debuginfo: Mass fix packages with broken debuginfo

* clean up conflicts

---------

Co-authored-by: Luc Schrijvers <begasus@gmail.com>
2026-01-07 17:36:21 +01:00

190 lines
5.7 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="A library to read and write images"
DESCRIPTION="OpenImageIO is a library for reading and writing images, and a \
bunch of related classes, utilities, and applications. There is a particular \
emphasis on formats and functionality used in professional, large-scale \
animation and visual effects work for film.
OpenImageIO is used extensively in animation and VFX studios all over the \
world, and is also incorporated into several commercial products."
HOMEPAGE="https://github.com/OpenImageIO/"
COPYRIGHT="2008-present Contributors to the OpenImageIO project."
LICENSE="BSD (3-clause)"
REVISION="3"
SOURCE_URI="$HOMEPAGE/oiio/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="51ea3c309bad7381fd0d7ef793e93a72d8e0edaeff4ff329f4f21fb5de3d90bd"
SOURCE_FILENAME="openimageio-$portVersion.tar.gz"
SOURCE_DIR="OpenImageIO-$portVersion"
PATCHES="openimageio-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="${portVersion%.**}"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
PROVIDES="
openimageio2.5$secondaryArchSuffix = $portVersion
lib:libOpenImageIO$secondaryArchSuffix = $libVersionCompat
lib:libOpenImageIO_Util$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_atomic$secondaryArchSuffix
lib:libboost_chrono$secondaryArchSuffix
lib:libboost_date_time$secondaryArchSuffix
lib:libboost_filesystem$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_thread$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libfmt$secondaryArchSuffix
lib:libgif$secondaryArchSuffix
lib:libglew$secondaryArchSuffix
lib:libheif$secondaryArchSuffix
lib:libIex_3_2$secondaryArchSuffix
lib:libIlmThread_3_2$secondaryArchSuffix
lib:libImath_3_1$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libOpenColorIO$secondaryArchSuffix
lib:libOpenEXR_3_2$secondaryArchSuffix
lib:libOpenEXRUtil_3_2$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libpugixml$secondaryArchSuffix
lib:libraw$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libwebp$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
openimageio2.5${secondaryArchSuffix}_devel = $portVersion
devel:libOpenImageIO$secondaryArchSuffix = $libVersionCompat
devel:libOpenImageIO_Util$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
openimageio2.5$secondaryArchSuffix == $portVersion base
devel:libboost_system$secondaryArchSuffix
"
CONFLICTS_devel="
openimageio2.3${secondaryArchSuffix}_devel
"
PROVIDES_tools="
openimageio2.5${secondaryArchSuffix}_tools = $portVersion
cmd:iconvert$commandSuffix = $portVersion
cmd:idiff$commandSuffix = $portVersion
cmd:igrep$commandSuffix = $portVersion
cmd:iinfo$commandSuffix = $portVersion
cmd:maketx$commandSuffix = $portVersion
cmd:oiiotool$commandSuffix = $portVersion
cmd:testtex$commandSuffix = $portVersion
"
REQUIRES_tools="
openimageio2.5$secondaryArchSuffix == $portVersion base
haiku$secondaryArchSuffix
lib:libIex_3_2$secondaryArchSuffix
lib:libIlmThread_3_2$secondaryArchSuffix
lib:libImath_3_1$secondaryArchSuffix
lib:libOpenEXR_3_2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_system$secondaryArchSuffix >= 1.83.0
devel:libbz2$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix >= 3
devel:libdeflate$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libfmt$secondaryArchSuffix
devel:libgif$secondaryArchSuffix
devel:libglew$secondaryArchSuffix
devel:libheif$secondaryArchSuffix
devel:libIex_3_2$secondaryArchSuffix
devel:libIlmThread_3_2$secondaryArchSuffix
devel:libImath_3_1$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libOpenColorIO$secondaryArchSuffix >= 2.3
devel:libOpenEXR_3_2$secondaryArchSuffix
devel:libOpenEXRUtil_3_2$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libpugixml$secondaryArchSuffix
devel:libraw$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libtiff$secondaryArchSuffix
devel:libwebp$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:robin_map
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
# cmd:git
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:python3
"
defineDebugInfoPackage openimageio2.5$secondaryArchSuffix \
"$(getPackagePrefix tools)"/bin/iconvert \
"$(getPackagePrefix tools)"/bin/idiff \
"$(getPackagePrefix tools)"/bin/igrep \
"$(getPackagePrefix tools)"/bin/iinfo \
"$(getPackagePrefix tools)"/bin/maketx \
"$(getPackagePrefix tools)"/bin/oiiotool \
$libDir/libOpenImageIO.so.$libVersion \
$libDir/libOpenImageIO_Util.so.$libVersion
BUILD()
{
cmake -B build -S . \
$cmakeDirArgs \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
-DINSTALL_FONTS:BOOL=OFF \
-DINTERNALIZE_FMT=OFF \
-DUSE_PYTHON=OFF \
-DOIIO_BUILD_TESTS=OFF \
-DOIIO_BUILD_TOOLS=ON \
-DBUILD_MISSING_FMT=OFF \
-DUSE_EXTERNAL_PUGIXML=ON \
-Wno-dev
make -C build $jobArgs
}
INSTALL()
{
make -C build $jobArgs install
sed -e "s|\(\${_IMPORT_PREFIX}\)/include|\1/$relativeIncludeDir|" -i \
"$libDir"/cmake/OpenImageIO/OpenImageIOTargets.cmake
prepareInstalledDevelLibs \
libOpenImageIO \
libOpenImageIO_Util
fixPkgconfig
packageEntries tools \
$commandBinDir
# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
# tests fail (also previous version)
# enable TESTS in BUILD to check this
make -C build test
}