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

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Jul 13 03:40:38 UTC 2019


    Date: Saturday, July 13, 2019 @ 03:40:37
  Author: svenstaro
Revision: 489311

archrelease: copy trunk to community-testing-x86_64

Added:
  openvdb/repos/community-testing-x86_64/
  openvdb/repos/community-testing-x86_64/PKGBUILD
    (from rev 489310, openvdb/trunk/PKGBUILD)
  openvdb/repos/community-testing-x86_64/boost-1.67.patch
    (from rev 489310, openvdb/trunk/boost-1.67.patch)

------------------+
 PKGBUILD         |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 boost-1.67.patch |   11 +++++++++
 2 files changed, 74 insertions(+)

Copied: openvdb/repos/community-testing-x86_64/PKGBUILD (from rev 489310, openvdb/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-07-13 03:40:37 UTC (rev 489311)
@@ -0,0 +1,63 @@
+# Maintainer : Sven-Hendrik Haase <svenstaro at gmail.com>
+
+pkgname=openvdb
+pkgver=6.1.0
+pkgrel=1
+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=('openexr' 'boost-libs' 'intel-tbb' 'zlib' 'jemalloc' 'blosc')
+makedepends=('doxygen' 'boost' 'cmake' 'mesa' 'cppunit' 'glfw-x11' 'glu' 'python' 'python-numpy')
+optdepends=('glfw: for tools'
+            'glu: for tools'
+            'python-numpy: python module')
+source=("https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz"
+        https://patch-diff.githubusercontent.com/raw/AcademySoftwareFoundation/openvdb/pull/428.patch)
+sha512sums=('99ebbb50104ef87792ab73989e8714c4f283fb02d04c3033126b5f0d927ff7bbdebe35c8214ded841692941d8ed8ae551fd6d1bf90ad7dc07bedc3b38b9c4b38'
+            '2eba70b5dde0d9f319841963a93f74915ecc65a13629fec282a04ceb260f30dd475c43b445e7bb121dbc0381c638ddbae102775279aef46b80b1d3093497b916')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  sed -i "s|DESTINATION docs|DESTINATION share/doc/$pkgname|" openvdb/CMakeLists.txt
+  sed -i "s/MINIMUM_PYTHON_VERSION 2.7/MINIMUM_PYTHON_VERSION 3.7/g" CMakeLists.txt
+
+  patch -Np1 -i "$srcdir"/428.patch
+
+  mkdir build
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"/build
+
+  export CXXFLAGS="${CXXFLAGS} -DPY_OPENVDB_USE_NUMPY"
+  cmake .. \
+    -DBLOSC_LOCATION=/usr/ \
+    -DTBB_LOCATION=/usr/ \
+    -DUSE_GLFW3=ON \
+    -DGLFW3_LOCATION=/usr/ \
+    -DILMBASE_NAMESPACE_VERSIONING=OFF \
+    -DOPENEXR_NAMESPACE_VERSIONING=OFF \
+    -DILMBASE_LOCATION=/usr/ \
+    -DOPENEXR_LOCATION=/usr/ \
+    -DCPPUNIT_LOCATION=/usr/include/cppunit \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DOPENVDB_BUILD_PYTHON_MODULE=ON \
+    -DOPENVDB_BUILD_DOCS=ON \
+    -DOPENVDB_BUILD_UNITTESTS=OFF \
+    -DPYTHON_INCL_DIR=/usr/include/python3.7m \
+    -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m \
+    -DPYTHON_LIB_DIR=/usr/lib \
+    -DPython_LIBRARY=/usr/lib/libpython3.7m.so \
+
+  sed -i "s/isystem/I/g" $(find . -name flags.make)
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim:set sw=2 sts=2 et:

Copied: openvdb/repos/community-testing-x86_64/boost-1.67.patch (from rev 489310, openvdb/trunk/boost-1.67.patch)
===================================================================
--- community-testing-x86_64/boost-1.67.patch	                        (rev 0)
+++ community-testing-x86_64/boost-1.67.patch	2019-07-13 03:40:37 UTC (rev 489311)
@@ -0,0 +1,11 @@
+diff -upr openvdb-5.1.0.orig/openvdb/CMakeLists.txt openvdb-5.1.0/openvdb/CMakeLists.txt
+--- openvdb-5.1.0.orig/openvdb/CMakeLists.txt	2018-06-03 02:59:00.521389220 +0300
++++ openvdb-5.1.0/openvdb/CMakeLists.txt	2018-06-03 03:07:55.094264747 +0300
+@@ -275,6 +275,7 @@ IF (NOT WIN32)
+   TARGET_LINK_LIBRARIES ( vdb_view
+     openvdb_shared
+     ${Boost_THREAD_LIBRARY}
++    ${CMAKE_THREAD_LIBS_INIT}
+     ${OPENGL_gl_LIBRARY}
+     ${OPENGL_glu_LIBRARY}
+     ${COCOA_LIBRARY}


More information about the arch-commits mailing list