From 0ee0f4b1224b0ca9bd6333b066a7d4a08d5115b3 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 10 Nov 2025 16:10:32 +0100 Subject: [PATCH] opensubdiv, bump to 3.7.0 (#13192) rename 3.5* version, drop 3.4* version also drop _devel package for 3.5* --- media-libs/opensubdiv/opensubdiv-3.7.0.recipe | 131 ++++++++++++++++++ ....4.3.recipe => opensubdiv3.5-3.5.0.recipe} | 43 +++--- 2 files changed, 155 insertions(+), 19 deletions(-) create mode 100644 media-libs/opensubdiv/opensubdiv-3.7.0.recipe rename media-libs/opensubdiv/{opensubdiv3.4-3.4.3.recipe => opensubdiv3.5-3.5.0.recipe} (68%) diff --git a/media-libs/opensubdiv/opensubdiv-3.7.0.recipe b/media-libs/opensubdiv/opensubdiv-3.7.0.recipe new file mode 100644 index 000000000..ffd76865a --- /dev/null +++ b/media-libs/opensubdiv/opensubdiv-3.7.0.recipe @@ -0,0 +1,131 @@ +SUMMARY="An open-source subdivision surface library" +DESCRIPTION="OpenSubdiv is a set of open source libraries that implement high \ +performance subdivision surface (subdiv) evaluation on massively parallel CPU \ +and GPU architectures. This codepath is optimized for drawing deforming \ +subdivs with static topology at interactive framerates. The resulting limit \ +surface matches Pixar's Renderman to numerical precision." +HOMEPAGE="https://graphics.pixar.com/opensubdiv/" +COPYRIGHT="2013-2020 Pixar" +LICENSE="Apache v2" +REVISION="1" +SOURCE_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${portVersion//\./_}.tar.gz" +CHECKSUM_SHA256="f843eb49daf20264007d807cbc64516a1fed9cdb1149aaf84ff47691d97491f9" +SOURCE_FILENAME="opensubdiv-v$portVersion.tar.gz" +SOURCE_DIR="OpenSubdiv-${portVersion//\./_}" + +ARCHITECTURES="all !x86_gcc2 ?x86" +SECONDARY_ARCHITECTURES="x86" + +tbbVersion="12.17" +tbbmallocVersion="2.17" + +PROVIDES=" + opensubdiv$secondaryArchSuffix = $portVersion + lib:libosdCPU$secondaryArchSuffix = $portVersion + lib:libosdGPU$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:python3 + lib:libGl$secondaryArchSuffix + lib:libglew$secondaryArchSuffix + lib:libGLU$secondaryArchSuffix + lib:libgomp$secondaryArchSuffix + lib:libopencl$secondaryArchSuffix + lib:libtbb$secondaryArchSuffix + lib:libtbbmalloc$secondaryArchSuffix + lib:libtbbmalloc_proxy$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_tools=" + opensubdiv${secondaryArchSuffix}_tools = $portVersion + cmd:bfr_evaluate + cmd:far_perf + cmd:far_regression + cmd:hbr_baseline + cmd:hbr_regression + cmd:stringify + " +REQUIRES_tools=" + opensubdiv$secondaryArchSuffix == $portVersion + $REQUIRES + " + +PROVIDES_devel=" + opensubdiv${secondaryArchSuffix}_devel = $portVersion + devel:libosdCPU$secondaryArchSuffix = $portVersion + devel:libosdGPU$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + opensubdiv$secondaryArchSuffix == $portVersion + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libGl$secondaryArchSuffix + devel:libglew$secondaryArchSuffix + devel:libGLU$secondaryArchSuffix + devel:libgomp$secondaryArchSuffix + devel:libopencl$secondaryArchSuffix + devel:libopencl_headers$secondaryArchSuffix + devel:libtbb$secondaryArchSuffix == $tbbVersion + devel:libtbbmalloc$secondaryArchSuffix == $tbbmallocVersion + devel:libtbbmalloc_proxy$secondaryArchSuffix == $tbbmallocVersion + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:python3 + " + +defineDebugInfoPackage opensubdiv$secondaryArchSuffix \ + $libDir/libosdCPU.so.$portVersion \ + $libDir/libosdGPU.so.$portVersion + +BUILD() +{ + cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=$prefix \ + -DCMAKE_BINDIR_BASE=$prefix/bin \ + -DCMAKE_INCDIR_BASE=$includeDir/opensubdiv \ + -DCMAKE_LIBDIR_BASE=$libDir \ + -DCMAKE_INSTALL_LIBDIR=$libDir \ + -DCMAKE_SKIP_RPATH=ON \ + -DNO_EXAMPLES=ON \ + -DNO_TUTORIALS=ON \ + -DNO_GLFW_X11=ON \ + -DGLEW_LIBRARY="`finddir B_SYSTEM_DIRECTORY`/$relativeLibDir" \ + -DGLEW_INCLUDE_DIR="`finddir B_SYSTEM_DIRECTORY`/$relativeIncludeDir/GL" \ + -Wno-dev + + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + # remove static libraries + rm $libDir/*.a + + prepareInstalledDevelLibs \ + libosdCPU \ + libosdGPU + fixPkgconfig + + packageEntries tools \ + $prefix/bin + + packageEntries devel \ + $developDir \ + $libDir/cmake +} + +TEST() +{ + cd build + make test +} diff --git a/media-libs/opensubdiv/opensubdiv3.4-3.4.3.recipe b/media-libs/opensubdiv/opensubdiv3.5-3.5.0.recipe similarity index 68% rename from media-libs/opensubdiv/opensubdiv3.4-3.4.3.recipe rename to media-libs/opensubdiv/opensubdiv3.5-3.5.0.recipe index d0ffafd19..6b98f2e58 100644 --- a/media-libs/opensubdiv/opensubdiv3.4-3.4.3.recipe +++ b/media-libs/opensubdiv/opensubdiv3.5-3.5.0.recipe @@ -9,20 +9,26 @@ COPYRIGHT="2013-2020 Pixar" LICENSE="Apache v2" REVISION="1" SOURCE_URI="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${portVersion//\./_}.tar.gz" -CHECKSUM_SHA256="7b22eb27d636ab0c1e03722c7a5a5bd4f11664ee65c9b48f341a6d0ce7f36745" -SOURCE_FILENAME="opensubdiv-$portVersion.tar.gz" +CHECKSUM_SHA256="8f5044f453b94162755131f77c08069004f25306fd6dc2192b6d49889efb8095" +SOURCE_FILENAME="opensubdiv-v$portVersion.tar.gz" SOURCE_DIR="OpenSubdiv-${portVersion//\./_}" -ARCHITECTURES="all !x86_gcc2" +ARCHITECTURES="all !x86_gcc2 ?x86" SECONDARY_ARCHITECTURES="x86" +libVersion="$portVersion" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +tbbVersion="2018.5" + PROVIDES=" - opensubdiv3.4$secondaryArchSuffix = $portVersion - lib:libosdCPU$secondaryArchSuffix = $portVersion - lib:libosdGPU$secondaryArchSuffix = $portVersion + opensubdiv3.5$secondaryArchSuffix = $portVersion + lib:libosdCPU$secondaryArchSuffix = $libVersionCompat + lib:libosdGPU$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix + cmd:python3 lib:libGl$secondaryArchSuffix lib:libglew$secondaryArchSuffix lib:libGLU$secondaryArchSuffix @@ -42,43 +48,42 @@ BUILD_REQUIRES=" devel:libgomp$secondaryArchSuffix devel:libopencl$secondaryArchSuffix devel:libopencl_headers$secondaryArchSuffix - devel:libtbb$secondaryArchSuffix - devel:libtbbmalloc$secondaryArchSuffix - devel:libtbbmalloc_proxy$secondaryArchSuffix + devel:libtbb$secondaryArchSuffix >= $tbbVersion + devel:libtbbmalloc$secondaryArchSuffix >= $tbbVersion + devel:libtbbmalloc_proxy$secondaryArchSuffix >= $tbbVersion devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:gcc$secondaryArchSuffix cmd:make + cmd:python3 " -defineDebugInfoPackage opensubdiv3.4$secondaryArchSuffix \ - $libDir/libosdCPU.so.$portVersion \ - $libDir/libosdGPU.so.$portVersion +defineDebugInfoPackage opensubdiv3.5$secondaryArchSuffix \ + $libDir/libosdCPU.so.$libVersion \ + $libDir/libosdGPU.so.$libVersion BUILD() { - mkdir -p build && cd build - - cmake .. -DCMAKE_BUILD_TYPE=Release \ + cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=$prefix \ -DCMAKE_BINDIR_BASE=$prefix/bin \ -DCMAKE_INCDIR_BASE=$includeDir/opensubdiv \ -DCMAKE_LIBDIR_BASE=$libDir \ + -DCMAKE_INSTALL_LIBDIR=$libDir \ -DCMAKE_SKIP_RPATH=ON \ -DNO_EXAMPLES=ON \ -DNO_TUTORIALS=ON \ -DNO_GLFW_X11=ON \ -DGLEW_LIBRARY="`finddir B_SYSTEM_DIRECTORY`/$relativeLibDir" \ -DGLEW_INCLUDE_DIR="`finddir B_SYSTEM_DIRECTORY`/$relativeIncludeDir/GL" - make $jobArgs + make -C build $jobArgs } INSTALL() { - cd build - make install + make -C build install # remove static libraries rm $libDir/*.a @@ -89,5 +94,5 @@ INSTALL() fixPkgconfig # we only need the libraries - rm -rf $developDir $prefix/bin + rm -rf $developDir $libDir/cmake $prefix/bin }