void-packages/srcpkgs/openvdb/template

44 lines
1.2 KiB
Bash

# Template file for 'openvdb'
pkgname=openvdb
version=9.0.0
revision=3
build_style=cmake
configure_args="-DOPENVDB_BUILD_VDB_VIEW=1"
hostmakedepends="pkg-config"
makedepends="boost-devel tbb-devel ilmbase-devel libopenexr-devel c-blosc-devel
glfw-devel libXxf86vm-devel jemalloc-devel"
short_desc="Sparse volume data structure and tools"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MPL-2.0"
homepage="https://openvdb.org"
distfiles="https://github.com/AcademySoftwareFoundation/openvdb/archive/v${version}.tar.gz"
checksum=ad3816e8f1931d1d6fdbddcec5a1acd30695d049dd10aa965096b2fb9972b468
# reduce spam in log output
CXXFLAGS="-Wno-deprecated-declarations"
if [ "$XBPS_WORDSIZE" -eq 32 ]; then
# fix "virtual memory exhausted: Operation not permitted" errors
nodebug=yes
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
fi
post_install() {
vlicense LICENSE
}
openvdb-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/cmake
}
}