PKGBUILDs/community/openvdb/PKGBUILD

45 lines
1.4 KiB
Bash
Raw Normal View History

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
2020-05-14 15:16:09 +00:00
2018-09-22 22:33:22 +00:00
pkgname=openvdb
2021-06-19 15:18:17 +00:00
pkgver=8.1.0
pkgrel=1
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')
2021-06-19 15:18:17 +00:00
depends=('boost-libs' 'intel-tbb' 'zlib' 'jemalloc' 'blosc' 'log4cplus')
2019-10-08 00:25:07 +00:00
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')
2021-06-19 15:18:17 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz")
sha512sums=('081ccedb122ff9bd73e0cd7ff083ad0ff0165e0cf6305187edcbe90ff12f01ec085c91ad5c52c53596035e0c2afd5b8801e6c00374b0fc4b0cc111f5c7f37eb5')
2018-09-22 22:33:22 +00:00
build() {
2020-12-25 16:00:18 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2018-09-22 22:33:22 +00:00
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LDFLAGS="-latomic $LDFLAGS"
2020-12-25 16:00:18 +00:00
cmake \
-Bbuild \
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
2020-12-25 16:00:18 +00:00
ninja -C build
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
2018-09-22 22:33:22 +00:00
}
# vim:set sw=2 sts=2 et: