2019-07-13 21:52:40 +00:00
|
|
|
# Maintainer : Sven-Hendrik Haase <svenstaro@gmail.com>
|
2018-09-22 22:33:22 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
pkgname=openvdb
|
2019-12-09 03:48:10 +00:00
|
|
|
pkgver=7.0.0
|
2020-02-16 00:48:20 +00:00
|
|
|
pkgrel=3
|
2018-09-22 22:33:22 +00:00
|
|
|
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')
|
2019-10-08 00:25:07 +00:00
|
|
|
depends=('openexr' 'boost-libs' 'intel-tbb' 'zlib' 'jemalloc' 'blosc' 'log4cplus' 'openexr')
|
|
|
|
makedepends=('doxygen' 'boost' 'cmake' 'mesa' 'cppunit' 'glfw-x11' 'glu' 'python' 'python-numpy' 'ninja')
|
2018-09-22 22:33:22 +00:00
|
|
|
optdepends=('glfw: for tools'
|
|
|
|
'glu: for tools'
|
|
|
|
'python-numpy: python module')
|
2019-10-08 00:25:07 +00:00
|
|
|
source=("https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz")
|
2019-12-09 03:48:10 +00:00
|
|
|
sha512sums=('f5321b22b10e192012d544cc02921d3d52f621778ec5aa21ba6d450f3e29f2fdbd76486ad390a0c008394dbc6ee4aeecc04527ef30e73adf71c1a08a021746b7')
|
2018-09-22 22:33:22 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2019-07-13 21:52:40 +00:00
|
|
|
sed -i "s/MINIMUM_PYTHON_VERSION 2.7/MINIMUM_PYTHON_VERSION 3.7/g" CMakeLists.txt
|
|
|
|
|
|
|
|
mkdir build
|
2018-09-22 22:33:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2019-07-13 21:52:40 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"/build
|
2018-09-22 22:33:22 +00:00
|
|
|
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LDFLAGS="-latomic $LDFLAGS"
|
|
|
|
cmake .. \
|
2019-10-08 00:25:07 +00:00
|
|
|
-GNinja \
|
|
|
|
-DUSE_NUMPY=ON \
|
|
|
|
-DUSE_LOG4CPLUS=ON \
|
2018-09-22 22:33:22 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DOPENVDB_BUILD_PYTHON_MODULE=ON \
|
|
|
|
-DOPENVDB_BUILD_DOCS=ON \
|
2019-12-09 03:48:10 +00:00
|
|
|
-DOPENVDB_BUILD_UNITTESTS=OFF
|
2018-09-22 22:33:22 +00:00
|
|
|
|
2019-10-08 00:25:07 +00:00
|
|
|
sed -i "s/isystem/I/g" build.ninja
|
|
|
|
ninja
|
2018-09-22 22:33:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
|
|
|
|
2019-10-08 00:25:07 +00:00
|
|
|
DESTDIR="${pkgdir}" ninja install
|
2020-02-16 00:48:20 +00:00
|
|
|
mkdir -p "${pkgdir}"/usr/share/doc/
|
|
|
|
mv "${pkgdir}"/usr/doc "${pkgdir}"/usr/share/doc/$pkgname
|
2018-09-22 22:33:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set sw=2 sts=2 et:
|