[arch-commits] Commit in openvdb/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sat Sep 16 16:09:55 UTC 2017
Date: Saturday, September 16, 2017 @ 16:09:54
Author: svenstaro
Revision: 257918
upgpkg: openvdb 4.0.2-1
Modified:
openvdb/trunk/PKGBUILD
----------+
PKGBUILD | 56 +++++++++++++++++++++++++-------------------------------
1 file changed, 25 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-09-16 16:08:19 UTC (rev 257917)
+++ PKGBUILD 2017-09-16 16:09:54 UTC (rev 257918)
@@ -1,51 +1,45 @@
# Maintainer : Sven-Hendrik Haase <sh at lutzhaase.com>
-# I would just like to take a minute here to state that this is probably one
-# of the worst packaged software packages that I have ever looked at.
-# The Makefile has defaults set to the upstream developers' specific systems
-# as well as other oddities.
-
pkgname=openvdb
-pkgver=3.2.0
-pkgrel=4
+pkgver=4.0.2
+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=('i686' 'x86_64')
license=('MPL')
depends=('openexr' 'boost-libs' 'intel-tbb' 'zlib' 'jemalloc' 'blosc')
-makedepends=('doxygen' 'boost' 'python2' 'log4cplus' 'python2-numpy' 'texlive-core' 'ghostscript')
-optdepends=('python2-numpy: Python module'
- 'log4cplus: for vdb_print')
+makedepends=('doxygen' 'boost' 'cmake' 'mesa' 'cppunit' 'glfw-x11' 'glu')
+optdepends=('glfw: for tools'
+ 'glu: for tools')
source=("https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz")
-sha512sums=('df9a4895b219aae3b5a9616c34eb846d565877ff76648405691f0c903507f6faba94e8eba9173423b50cb5cef80f3ec500a9f70977cb7161701d39fd105abc91')
+sha512sums=('8e3e12583b81f9b9303b309e839c8321c67b67ff8a0e61bb56c87276bf25c0deff22f5a73c7c5b661b8e5df345bfdabfa6b0aea9bf16fce57d9c53a76751c75d')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}"
+ cd "${srcdir}/${pkgname}-${pkgver}"
- make all \
- OPENVDB_ENABLE_3_ABI_COMPATIBLE=ON \
- PYTHON_VERSION='2.7' \
- CPPUNIT_INCL_DIR='' \
- HDSO='/usr' \
- PYTHON_INCL_DIR=/usr/include/python2.7 \
- PYTHON_LIB_DIR=/usr/lib \
- EXR_LIB_DIR=/usr/lib \
- ILMBASE_LIB_DIR=/usr/lib \
- NUMPY_INCL_DIR=/usr/lib/python2.7/site-packages/numpy/core/include/numpy \
- GLFW_INCL_DIR='' \
- BOOST_PYTHON_LIB_DIR=/usr/lib \
- BOOST_PYTHON_LIB=-lboost_python
+ [[ -d build ]] && rm -rf build
+ mkdir build && cd build
+ 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=OFF \
+ -DOPENVDB_BUILD_DOCS=ON
+ make
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}/${pkgname}"
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
- mkdir ${pkgdir}/usr
- make install \
- GLFW_INCL_DIR='' \
- EPYDOC='' \
- DESTDIR=${pkgdir}/usr
+ make DESTDIR="${pkgdir}" install
}
# vim:set sw=2 sts=2 et:
More information about the arch-commits
mailing list