openvdb: fix build on platforms without 64-bit atomics
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user