mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
53 lines
1.7 KiB
Bash
53 lines
1.7 KiB
Bash
# Maintainer : Sven-Hendrik Haase <svenstaro@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
pkgname=openvdb
|
|
pkgver=7.1.0
|
|
pkgrel=5
|
|
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=('49806375f7e6d7b12eaba24e672a068531d2f8a05f12eba29069710d2682f9983f9e6ad26047eed4b28e337f8d0e738b90130582863c710e8dd1e720bf0addad')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed -i "s/MINIMUM_PYTHON_VERSION 2.7/MINIMUM_PYTHON_VERSION 3.7/g" CMakeLists.txt
|
|
|
|
mkdir build
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"/build
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LDFLAGS="-latomic $LDFLAGS"
|
|
cmake .. \
|
|
-GNinja \
|
|
-DUSE_NUMPY=ON \
|
|
-DUSE_LOG4CPLUS=ON \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DOPENVDB_BUILD_PYTHON_MODULE=ON \
|
|
-DOPENVDB_BUILD_DOCS=ON \
|
|
-DOPENVDB_BUILD_UNITTESTS=OFF
|
|
|
|
sed -i "s/isystem/I/g" build.ninja
|
|
ninja
|
|
}
|
|
|
|
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:
|