void-packages/srcpkgs/alembic/template

45 lines
1.1 KiB
Bash
Raw Normal View History

2020-03-04 13:00:18 +01:00
# Template file for 'alembic'
pkgname=alembic
version=1.7.13
2020-03-04 13:00:18 +01:00
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="zlib-devel ilmbase-devel"
2020-03-04 13:00:18 +01:00
short_desc="Open framework for storing and sharing scene data"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, MIT"
homepage="https://alembic.io"
distfiles="https://github.com/alembic/alembic/archive/${version}.tar.gz"
checksum=14a44a1d28d1a0736655e53fc529dd4d3993bf4d03535f66de9e634c9b47d441
2020-03-04 13:00:18 +01:00
2020-03-05 01:06:27 +01:00
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) broken="undefined reference to '__sync_bool_compare_and_swap_8'";;
esac
2020-03-04 13:00:18 +01:00
if [ -z "$CROSS_BUILD" ]; then
makedepends+=" hdf5-devel"
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
post_patch() {
printf '\ntarget_link_libraries(Alembic PRIVATE atomic)\n' >> lib/Alembic/CMakeLists.txt
}
fi
2020-03-04 13:00:18 +01:00
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
}
}