Name libimath-3-1-29t64
Description Utility libraries from ASF used by OpenEXR - runtime
Version 3.1.12-1+b3
Package Base imath
Homepage https://www.openexr.com
Maintainers ['Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>']
Contributors ['Matteo F. Vescovi <mfv@debian.org>']
Distro-repo https://salsa.debian.org/debian-phototools-team/imath
Sources ['https://sources.debian.org/data/main/i/imath/3.1.12-1/debian/watch', 'https://sources.debian.org/src/imath/3.1.12-1/debian/patches/0001-Re-enable_documentation_installation.patch', 'https://sources.debian.org/src/imath/3.1.12-1/debian/patches/series']
Dependencies ['libc6', 'libstdc++6']
Optional-Dependencies []
Build-Dependencies ['cmake', 'debhelper-compat', 'dh-python', 'doxygen', 'libboost-python-dev', 'pkgconf', 'python3-breathe <!nodoc>', 'python3-dev', 'libpython3-dev', 'python3-numpy', 'python3-sphinx <!nodoc>', 'python3-sphinx-press-theme <!nodoc>']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash f3a55554486424edc3021332ac8c833b99152b75c24578236baebb47e43a510f
#! /usr/bin/make -f

export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

INSTDIR = debian/tmp

%:
	dh $@ -Bbuild -Scmake --with python3

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

override_dh_auto_configure:
	dh_auto_configure -- \
		-DBUILD_WEBSITE=$(WEBSITE) \
		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON \
		-DPYTHON=ON

override_dh_auto_build-indep:
	dh_auto_build -- website

override_dh_auto_install-indep:
	dh_auto_install -- -C website

override_dh_auto_test:

override_dh_install-arch:
	dh_numpy3 --package=python3-imath
	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