diff --git a/common/shlibs b/common/shlibs index 3698004fcb0..db220bd173d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/imath-devel b/srcpkgs/imath-devel new file mode 120000 index 00000000000..aa5ac0a078d --- /dev/null +++ b/srcpkgs/imath-devel @@ -0,0 +1 @@ +imath \ No newline at end of file diff --git a/srcpkgs/imath-python3 b/srcpkgs/imath-python3 new file mode 120000 index 00000000000..aa5ac0a078d --- /dev/null +++ b/srcpkgs/imath-python3 @@ -0,0 +1 @@ +imath \ No newline at end of file diff --git a/srcpkgs/imath/template b/srcpkgs/imath/template new file mode 100644 index 00000000000..0123217d7ae --- /dev/null +++ b/srcpkgs/imath/template @@ -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 " +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" + } +}