New package: imath-3.1.5.

This commit is contained in:
André Cerqueira 2022-11-17 18:47:26 +00:00 committed by John
parent 4f990ae6a4
commit 3857eb4102
4 changed files with 48 additions and 0 deletions

View File

@ -4215,3 +4215,4 @@ libdspy-1.so.1 d-spy-1.4.0_1
libpanel-1.so.1 libpanel-1.0.1_1
libqrtr.so.1 qrtr-ns-1.0_1
libbpf.so.1 libbpf-1.0.0_1
libImath-3_1.so.29 imath-3.1.5_1

1
srcpkgs/imath-devel Symbolic link
View File

@ -0,0 +1 @@
imath

1
srcpkgs/imath-python3 Symbolic link
View File

@ -0,0 +1 @@
imath

45
srcpkgs/imath/template Normal file
View File

@ -0,0 +1,45 @@
# 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"
}
}