# Template file for 'alembic' pkgname=alembic version=1.8.5 revision=2 build_style=cmake hostmakedepends="pkg-config" makedepends="zlib-devel imath-devel" short_desc="Open framework for storing and sharing scene data" maintainer="André Cerqueira " license="BSD-3-Clause, MIT" homepage="https://www.alembic.io" changelog="https://raw.githubusercontent.com/alembic/alembic/master/NEWS.txt" distfiles="https://github.com/alembic/alembic/archive/${version}.tar.gz" checksum=180a12f08d391cd89f021f279dbe3b5423b1db751a9898540c8059a45825c2e9 case "$XBPS_TARGET_MACHINE" in ppc64*) ;; ppc*) broken="undefined reference to '__sync_bool_compare_and_swap_8'";; esac post_patch() { if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then printf '\ntarget_link_libraries(Alembic PRIVATE atomic)\n' >> lib/Alembic/CMakeLists.txt fi } post_install() { vlicense LICENSE.txt } alembic-devel_package() { short_desc+=" - development files" depends="${makedepends} ${sourcepkg}-${version}_${revision}" pkg_install() { vmove usr/include vmove "usr/lib/*.so" vmove usr/lib/cmake } }