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

Antonio Rojas arojas at archlinux.org
Wed Aug 22 07:10:28 UTC 2018


    Date: Wednesday, August 22, 2018 @ 07:10:27
  Author: arojas
Revision: 373198

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: openvdb/repos/community-staging-x86_64/PKGBUILD (from rev 373197, openvdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-22 07:10:27 UTC (rev 373198)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer : Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=openvdb
+pkgver=5.1.0
+pkgrel=4
+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-numpy')
+optdepends=('glfw: for tools'
+            'glu: for tools'
+            'python-numpy: python module')
+source=("https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz"
+        'boost-1.67.patch')
+sha512sums=('c71d040a1862f5e31f084125e9695da3ebf171788956d7d4c16f99ead26a099a81d5a9c30ba2cc61f29e32e21f822796ae34f6c62496050894087735a19489f6'
+            '48075304517a9e0f52d5c22c575a22fb7904c743262652d4abe1028bfc540d4f5a8a97bd754acbb3959a7c148d12c7e55a71bd630e59bf4fe51433ac9dca4372')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ../boost-1.67.patch
+  sed -i "s|DESTINATION docs|DESTINATION share/doc/$pkgname|" openvdb/CMakeLists.txt
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  [[ -d build ]] && rm -rf build
+  mkdir build && cd 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_ABI_VERSION_NUMBER=3 \
+    -DOPENVDB_BUILD_UNITTESTS=OFF
+
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim:set sw=2 sts=2 et:

Copied: openvdb/repos/community-staging-x86_64/boost-1.67.patch (from rev 373197, openvdb/trunk/boost-1.67.patch)
===================================================================
--- community-staging-x86_64/boost-1.67.patch	                        (rev 0)
+++ community-staging-x86_64/boost-1.67.patch	2018-08-22 07:10:27 UTC (rev 373198)
@@ -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