46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'imath'
|
|
pkgname=imath
|
|
version=3.1.6
|
|
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=ea5592230f5ab917bea3ceab266cf38eb4aa4a523078d46eac0f5a89c52304db
|
|
|
|
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"
|
|
}
|
|
}
|