[arch-commits] Commit in openvdb/trunk (PKGBUILD)

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


    Date: Saturday, July 13, 2019 @ 03:40:32
  Author: svenstaro
Revision: 489310

upgpkg: openvdb 6.1.0-1

Modified:
  openvdb/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++--------------
 1 file changed, 19 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-13 03:35:58 UTC (rev 489309)
+++ PKGBUILD	2019-07-13 03:40:32 UTC (rev 489310)
@@ -1,34 +1,35 @@
-# Maintainer : Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer : Sven-Hendrik Haase <svenstaro at gmail.com>
 
 pkgname=openvdb
-pkgver=6.0.0
-pkgrel=2
+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-numpy')
+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"
-        'boost-1.67.patch')
-sha512sums=('6b9e267fff46647b39e1e6faa12059442196c1858df1fda1515cfc375e25bc3033e2828c80e63a652509cfba386376e022cebf81ec85aaccece421b0c721529b'
-            '48075304517a9e0f52d5c22c575a22fb7904c743262652d4abe1028bfc540d4f5a8a97bd754acbb3959a7c148d12c7e55a71bd630e59bf4fe51433ac9dca4372')
+        https://patch-diff.githubusercontent.com/raw/AcademySoftwareFoundation/openvdb/pull/428.patch)
+sha512sums=('99ebbb50104ef87792ab73989e8714c4f283fb02d04c3033126b5f0d927ff7bbdebe35c8214ded841692941d8ed8ae551fd6d1bf90ad7dc07bedc3b38b9c4b38'
+            '2eba70b5dde0d9f319841963a93f74915ecc65a13629fec282a04ceb260f30dd475c43b445e7bb121dbc0381c638ddbae102775279aef46b80b1d3093497b916')
 
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i ../boost-1.67.patch
   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}"
+  cd "${srcdir}/${pkgname}-${pkgver}"/build
 
-  [[ -d build ]] && rm -rf build
-  mkdir build && cd build
-
   export CXXFLAGS="${CXXFLAGS} -DPY_OPENVDB_USE_NUMPY"
   cmake .. \
     -DBLOSC_LOCATION=/usr/ \
@@ -43,9 +44,13 @@
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DOPENVDB_BUILD_PYTHON_MODULE=ON \
     -DOPENVDB_BUILD_DOCS=ON \
-    -DOPENVDB_ABI_VERSION_NUMBER=3 \
-    -DOPENVDB_BUILD_UNITTESTS=OFF
+    -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
 }
 


More information about the arch-commits mailing list