46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
|
# Template file for 'imath'
|
||
|
pkgname=imath
|
||
|
version=3.1.5
|
||
|
revision=1
|
||
|
build_style=cmake
|
||
|
configure_args="-DPYTHON=ON"
|
||
|
hostmakedepends="python3-numpy"
|
||
|
makedepends="boost-devel python3-devel python3-numpy"
|
||
|
short_desc="C++/Python library for 2D/3D vector/matrix/math operations"
|
||
|
maintainer="André Cerqueira <acerqueira021@gmail.com>"
|
||
|
license="BSD-3-Clause"
|
||
|
homepage="https://www.openexr.com/"
|
||
|
changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/Imath/main/CHANGES.md"
|
||
|
distfiles="https://github.com/AcademySoftwareFoundation/Imath/archive/v${version}/${pkgname}-${version}.tar.gz"
|
||
|
checksum=1e9c7c94797cf7b7e61908aed1f80a331088cc7d8873318f70376e4aed5f25fb
|
||
|
|
||
|
if [ "$XBPS_MACHINE" = "i686" ]
|
||
|
then
|
||
|
make_check=no # Test Fails in i868
|
||
|
# See upstream: https://github.com/AcademySoftwareFoundation/Imath/issues/151
|
||
|
fi
|
||
|
|
||
|
post_install() {
|
||
|
vlicense LICENSE.md
|
||
|
}
|
||
|
|
||
|
imath-python3_package() {
|
||
|
short_desc+=" - Python module"
|
||
|
pkg_install() {
|
||
|
vmove "usr/lib/libPyImath_Python*"
|
||
|
vmove "${py3_sitelib}/imath.so"
|
||
|
vmove "${py3_sitelib}/imathnumpy.so"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
imath-devel_package() {
|
||
|
depends="${sourcepkg}>=${version}_${revision}, imath-python3>=${version}_${revision}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove usr/lib/cmake
|
||
|
vmove usr/lib/pkgconfig
|
||
|
vmove "usr/lib/libImath*.so"
|
||
|
}
|
||
|
}
|