[arch-commits] Commit in openvdb/repos (3 files)

Antonio Rojas arojas at archlinux.org
Sat Apr 24 17:58:50 UTC 2021


    Date: Saturday, April 24, 2021 @ 17:58:50
  Author: arojas
Revision: 923700

archrelease: copy trunk to community-staging-x86_64

Added:
  openvdb/repos/community-staging-x86_64/
  openvdb/repos/community-staging-x86_64/PKGBUILD
    (from rev 923699, openvdb/trunk/PKGBUILD)
  openvdb/repos/community-staging-x86_64/openvdb-openexr3.patch
    (from rev 923699, openvdb/trunk/openvdb-openexr3.patch)

------------------------+
 PKGBUILD               |   45 +++++++++++++++++++++++++++++++
 openvdb-openexr3.patch |   68 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 113 insertions(+)

Copied: openvdb/repos/community-staging-x86_64/PKGBUILD (from rev 923699, openvdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-04-24 17:58:50 UTC (rev 923700)
@@ -0,0 +1,45 @@
+# Maintainer : Sven-Hendrik Haase <svenstaro at gmail.com>
+pkgname=openvdb
+pkgver=8.0.1
+pkgrel=2
+pkgdesc='A large suite of tools for the efficient storage and manipulation of sparse volumetric data discretized on three-dimensional grids'
+url='https://github.com/dreamworksanimation/openvdb'
+arch=('x86_64')
+license=('MPL')
+depends=('boost-libs' 'intel-tbb' 'zlib' 'jemalloc' 'blosc' 'log4cplus' 'imath')
+makedepends=('doxygen' 'boost' 'cmake' 'mesa' 'cppunit' 'glfw-x11' 'glu' 'python' 'python-numpy' 'ninja')
+optdepends=('glfw: for tools'
+            'glu: for tools'
+            'python-numpy: python module')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz"
+         openvdb-openexr3.patch)
+sha512sums=('6a5a8b637429295efa72494aef82ff92dd83092591b713f56930ccf4aab3a33806d1263bfd090c27239eab97b4fdc053288dc545e631f8a7d4ca180a32331be2'
+            '2d9e69a74f01d8c6ca66c18b31f4b504a89fe6a46c584874d2d41ba6cadcc06a995f823e0b42f9149ace16e02c449c95f268d28f1eab3c76f8c64cf7f158b84b')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < openvdb-openexr3.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  cmake \
+    -Bbuild \
+    -GNinja \
+    -DUSE_NUMPY=ON \
+    -DUSE_LOG4CPLUS=ON \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOPENVDB_BUILD_PYTHON_MODULE=ON \
+    -DOPENVDB_BUILD_DOCS=ON \
+    -DOPENVDB_BUILD_UNITTESTS=OFF
+
+  ninja -C build
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+
+  DESTDIR="${pkgdir}" ninja install
+}
+
+# vim:set sw=2 sts=2 et:

Copied: openvdb/repos/community-staging-x86_64/openvdb-openexr3.patch (from rev 923699, openvdb/trunk/openvdb-openexr3.patch)
===================================================================
--- community-staging-x86_64/openvdb-openexr3.patch	                        (rev 0)
+++ community-staging-x86_64/openvdb-openexr3.patch	2021-04-24 17:58:50 UTC (rev 923700)
@@ -0,0 +1,68 @@
+diff --git a/openvdb/openvdb/CMakeLists.txt b/openvdb/openvdb/CMakeLists.txt
+index 04bfee59..c853689a 100644
+--- a/openvdb/openvdb/CMakeLists.txt
++++ b/openvdb/openvdb/CMakeLists.txt
+@@ -46,8 +46,8 @@ message(STATUS "----------------------------------------------------")
+ # Collect and configure lib dependencies
+ 
+ if(USE_EXR)
+-  find_package(IlmBase ${MINIMUM_ILMBASE_VERSION} REQUIRED)
+-  find_package(OpenEXR ${MINIMUM_OPENEXR_VERSION} REQUIRED)
++  find_package(Imath CONFIG REQUIRED)
++  find_package(OpenEXR CONFIG REQUIRED)
+   if(OPENVDB_FUTURE_DEPRECATION AND FUTURE_MINIMUM_OPENEXR_VERSION)
+     if(${OpenEXR_VERSION} VERSION_LESS FUTURE_MINIMUM_OPENEXR_VERSION)
+       message(DEPRECATION "Support for OpenEXR versions < ${FUTURE_MINIMUM_OPENEXR_VERSION} "
+@@ -55,7 +55,7 @@ if(USE_EXR)
+     endif()
+   endif()
+ else()
+-  find_package(IlmBase ${MINIMUM_ILMBASE_VERSION} REQUIRED COMPONENTS Half)
++  find_package(Imath CONFIG REQUIRED)
+ endif()
+ 
+ if(OPENVDB_FUTURE_DEPRECATION AND FUTURE_MINIMUM_ILMBASE_VERSION)
+@@ -129,7 +129,7 @@ endif()
+ set(OPENVDB_CORE_DEPENDENT_LIBS
+   Boost::iostreams
+   Boost::system
+-  IlmBase::Half
++  Imath::Imath
+ )
+ 
+ if(WIN32)
+@@ -147,10 +147,8 @@ endif()
+ 
+ if(USE_EXR)
+   list(APPEND OPENVDB_CORE_DEPENDENT_LIBS
+-    IlmBase::IlmThread
+-    IlmBase::Iex
+-    IlmBase::Imath
+-    OpenEXR::IlmImf
++    Imath::Imath
++    OpenEXR::OpenEXR
+   )
+ endif()
+ 
+@@ -413,7 +411,7 @@ if(WIN32)
+   # @note OPENVDB_OPENEXR_STATICLIB is old functionality from the makefiles
+   #       used in PlatformConfig.h to configure EXR exports. Once this file
+   #       is completely removed, this define can be too
+-  get_target_property(ILMBASE_LIB_TYPE IlmBase::Half TYPE)
++  get_target_property(ILMBASE_LIB_TYPE Imath::Imath TYPE)
+   if(OPENEXR_USE_STATIC_LIBS OR (${ILMBASE_LIB_TYPE} STREQUAL STATIC_LIBRARY))
+     list(APPEND OPENVDB_CORE_PUBLIC_DEFINES -DOPENVDB_OPENEXR_STATICLIB)
+   endif()
+diff --git a/openvdb/openvdb/Types.h b/openvdb/openvdb/Types.h
+index d176c874..4ba72e3e 100644
+--- a/openvdb/openvdb/Types.h
++++ b/openvdb/openvdb/Types.h
+@@ -7,7 +7,7 @@
+ #include "version.h"
+ #include "Platform.h"
+ #include "TypeList.h" // backwards compat
+-#include <OpenEXR/half.h>
++#include <Imath/half.h>
+ #include <openvdb/math/Math.h>
+ #include <openvdb/math/BBox.h>
+ #include <openvdb/math/Quat.h>



More information about the arch-commits mailing list