[arch-commits] Commit in openvdb/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jan 15 07:27:54 UTC 2019
Date: Tuesday, January 15, 2019 @ 07:27:54
Author: felixonmars
Revision: 423161
archrelease: copy trunk to community-staging-x86_64
Added:
openvdb/repos/community-staging-x86_64/
openvdb/repos/community-staging-x86_64/PKGBUILD
(from rev 423160, openvdb/trunk/PKGBUILD)
openvdb/repos/community-staging-x86_64/boost-1.67.patch
(from rev 423160, openvdb/trunk/boost-1.67.patch)
------------------+
PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++
boost-1.67.patch | 11 ++++++++++
2 files changed, 69 insertions(+)
Copied: openvdb/repos/community-staging-x86_64/PKGBUILD (from rev 423160, openvdb/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-01-15 07:27:54 UTC (rev 423161)
@@ -0,0 +1,58 @@
+# Maintainer : Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=openvdb
+pkgver=6.0.0
+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=('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=('6b9e267fff46647b39e1e6faa12059442196c1858df1fda1515cfc375e25bc3033e2828c80e63a652509cfba386376e022cebf81ec85aaccece421b0c721529b'
+ '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 423160, openvdb/trunk/boost-1.67.patch)
===================================================================
--- community-staging-x86_64/boost-1.67.patch (rev 0)
+++ community-staging-x86_64/boost-1.67.patch 2019-01-15 07:27:54 UTC (rev 423161)
@@ -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