openvdb: fix build on platforms without 64-bit atomics
This commit is contained in:
parent
477d44ca53
commit
a4315d7945
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue