#!/usr/bin/make -f export DH_OPTIONS export DEB_BUILD_MAINT_OPTIONS = hardening=+all ifeq ($(DEB_HOST_ARCH),i386) export DEB_CXXFLAGS_MAINT_APPEND = -mfpmath=sse -msse2 export DEB_CFLAGS_MAINT_APPEND = -mfpmath=sse -msse2 endif include /usr/share/dpkg/architecture.mk BUILD_LIBS = $(if $(filter libopenexr-3-1-30,$(shell dh_listpackages)),ON,OFF) %: dh $@ -Bbuild -Scmake override_dh_auto_configure: dh_auto_configure -- \ -DBUILD_WEBSITE=OFF -DOPENEXR_BUILD_LIBS=$(BUILD_LIBS) -DOPENEXR_INSTALL=$(BUILD_LIBS) \ -DOPENEXR_LIB_SUFFIX=-3_1 -DOPENEXR_INTERNAL_IMF_NAMESPACE=Imf_3_1 \ -DIEX_INTERNAL_NAMESPACE=Iex_3_1 -DILMTHREAD_INTERNAL_NAMESPACE=IlmThread_3_1 \ -DOPENEXR_NAMESPACE_CUSTOM=1 -DIEX_NAMESPACE_CUSTOM=1 -DILMTHREAD_NAMESPACE_CUSTOM=1 \ -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DOPENEXR_TEST_TOOLS=OFF override_dh_auto_build: dh_auto_build ifneq (,$(filter %-doc,$(shell dh_listpackages))) debian/build-docs endif ifeq ($(DEB_HOST_ARCH),arm64) # Known C++/Core DWA rounding mismatch, also present in 3.1. # https://github.com/AcademySoftwareFoundation/openexr/issues/1460 # Preserve runtime arithmetic and keep all other tests enabled. override_dh_auto_test: dh_auto_test -- 'ARGS+=--exclude-regex ^OpenEXRCore[.]testDWA[AB]Compression$$' endif ifeq ($(DEB_HOST_ARCH_ENDIAN),big) # Ignore test results override_dh_auto_test: -dh_auto_test endif override_dh_installdocs: dh_installdocs ifneq (,$(filter %-doc,$(shell dh_listpackages))) dh_sphinxdoc -plibopenexr-doc endif