void-packages/srcpkgs/openvdb/template

39 lines
1.0 KiB
Bash

# Template file for 'openvdb'
pkgname=openvdb
version=7.0.0
revision=1
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"
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=97bc8ae35ef7ccbf49a4e25cb73e8c2eccae6b235bac86f2150707efcd1e910d
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_patch() {
[ "$XBPS_TARGET_NO_ATOMIC8" ] || return 0
vsed -i 's,ZLIB::ZLIB,ZLIB::ZLIB atomic,' openvdb/CMakeLists.txt
}
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
}
}