mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Maintainer : Sven-Hendrik Haase <svenstaro@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
pkgname=openvdb
|
|
pkgver=8.0.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' 'log4cplus' 'openexr')
|
|
makedepends=('doxygen' 'boost' 'cmake' 'mesa' 'cppunit' 'glfw-x11' 'glu' 'python' 'python-numpy' 'ninja')
|
|
optdepends=('glfw: for tools'
|
|
'glu: for tools'
|
|
'python-numpy: python module')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/dreamworksanimation/openvdb/archive/v${pkgver}.tar.gz")
|
|
sha512sums=('b26dea41e5305bbe023362241b82dda7e168f8df9526270e6b214f8442ce7e2135889d79a1944928478ae1a2b24866381b3be4d2d1af7a5726e39724055a6e78')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LDFLAGS="-latomic $LDFLAGS"
|
|
cmake \
|
|
-Bbuild \
|
|
-GNinja \
|
|
-DUSE_NUMPY=ON \
|
|
-DUSE_LOG4CPLUS=ON \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DOPENVDB_BUILD_PYTHON_MODULE=ON \
|
|
-DOPENVDB_BUILD_DOCS=ON \
|
|
-DOPENVDB_BUILD_UNITTESTS=OFF
|
|
|
|
ninja -C build
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
|
|
|
DESTDIR="${pkgdir}" ninja install
|
|
mkdir -p "${pkgdir}"/usr/share/doc/
|
|
mv "${pkgdir}"/usr/doc "${pkgdir}"/usr/share/doc/$pkgname
|
|
}
|
|
|
|
# vim:set sw=2 sts=2 et:
|