Name libimath-3-1-29t64
Description Utility libraries from ASF used by OpenEXR - runtime
Version 3.1.9-3.1ubuntu2
Package Base imath
Homepage https://www.openexr.com
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Matteo F. Vescovi <mfv@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/imath/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/imath/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/imath/plain/debian/patches/0001-src-python-config-ModuleDefine.cmake-do-not-install-.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/imath/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/libimath-3-1-29t64/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6', 'libstdc++6']
Optional-Dependencies []
Build-Dependencies ['dpkg-dev', 'cmake', 'debhelper-compat', 'dh-python [!i386]', 'doxygen', 'libboost-python-dev [!i386]', 'pkg-config', 'python3-breathe [!i386]', 'python3-dev', 'python3-numpy [!i386]', 'python3-sphinx [!i386]', 'python3-sphinx-press-theme [!i386]']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 7b62292db74bab20ccea4db0039b5c7e720aec36aeed4a405d8da4c2c60b29c8
#! /usr/bin/make -f

export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

ifneq ($(DEB_HOST_ARCH), i386)
    witharg = --with python3
    cmake_python = -DPYTHON=ON
endif

INSTDIR = debian/tmp

%:
	dh $@ -Bbuild -Scmake $(witharg)

ifeq "" "$(filter %-doc,$(shell dh_listpackages))"
  BUILDDOC = OFF
else
  BUILDDOC = ON
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBUILD_DOCS=$(BUILDDOC) \
		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
		$(cmake_python)

override_dh_auto_build-indep:
	dh_auto_build -- docs

override_dh_auto_install-indep:
	dh_auto_install -- -C docs

override_dh_auto_test:

override_dh_install-arch:
ifneq ($(DEB_HOST_ARCH), i386)
	dh_numpy3 --package=python3-imath
endif
	dh_install

override_dh_install-indep:
	rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/doctools.js
	rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/jquery.js
	rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/language_data.js
	rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/searchtools.js
	rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/_static/underscore.js
	rm -f $(INSTDIR)/usr/share/doc/Imath/sphinx/.buildinfo
	rm -rf $(INSTDIR)/usr/share/doc/Imath/sphinx/.doctrees
	dh_install