openvdb: fix build on platforms without 64-bit atomics

This commit is contained in:
q66 2020-03-05 01:06:33 +01:00
parent 477d44ca53
commit a4315d7945

View file

@ -13,6 +13,15 @@ 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
}