Name libpango-1.0-0
Description Layout and rendering of internationalized text
Version 1.56.3-1
Package Base pango1.0
Homepage https://www.pango.org/
Maintainers ['Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>']
Contributors ['Emilio Pozuelo Monfort <pochu@debian.org>', 'Iain Lane <laney@debian.org>', 'Jeremy Bícha <jbicha@ubuntu.com>', 'Laurent Bigonville <bigon@debian.org>', 'Marco Trevisan (Treviño) <marco@ubuntu.com>', 'Michael Biebl <biebl@debian.org>']
Distro-repo https://salsa.debian.org/gnome-team/pango
Sources ['https://sources.debian.org/data/main/p/pango1.0/1.56.3-1/debian/watch', 'https://sources.debian.org/src/pango1.0/1.56.3-1/debian/patches/Revert-build-Drop-the-install-tests-option.patch', 'https://sources.debian.org/src/pango1.0/1.56.3-1/debian/patches/debian', 'https://sources.debian.org/src/pango1.0/1.56.3-1/debian/patches/series']
Dependencies ['fontconfig', 'libc6', 'libfribidi0', 'libglib2.0-0t64', 'libharfbuzz0b', 'libthai0']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'dh-sequence-gir', 'fonts-dejavu-core <!nocheck>', 'fonts-noto-color-emoji <!nocheck>', 'fonts-noto-core <!nocheck>', 'gir1.2-cairo-1.0-dev', 'gir1.2-gio-2.0-dev', 'gir1.2-gobject-2.0-dev', 'gir1.2-harfbuzz-0.0-dev', 'gobject-introspection', 'libcairo2-dev', 'libfontconfig-dev', 'libfreetype-dev', 'libfribidi-dev', 'libglib2.0-dev', 'libharfbuzz-dev', 'libsysprof-capture-4-dev', 'libthai-dev', 'libx11-dev', 'libxft-dev', 'libxrender-dev', 'libxt-dev', 'locales <!nocheck> | locales-all <!nocheck>', 'meson', 'perl', 'pkgconf', 'python3-docutils <!nodoc>']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 4fa38472696d2ddb10bfc9a4692a9446e8478fdb1f48c769a609fc9fec3adfc5
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

built_binaries := $(shell dh_listpackages)
configure_options :=

ifneq ($(filter libpango1.0-doc,$(built_binaries)),)
with_docs = true
else
with_docs = false
endif

ifneq ($(filter pango1.0-tools,$(built_binaries)),)
configure_options += -Dman-pages=true
endif

ifneq ($(filter pkg.pango1.0.nosysprof,$(DEB_BUILD_PROFILES)),)
configure_options += -Dsysprof=disabled
else
ifeq ($(filter amd64 arm64 armel armhf i386 mips64el ppc64el riscv64 s390x hppa loong64 powerpc ppc64 sh4,$(DEB_HOST_ARCH)),)
configure_options += -Dsysprof=disabled
else
configure_options += -Dsysprof=enabled
endif
endif

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
configure_options += --cross-file=$(DEB_HOST_GNU_TYPE)-gobject-introspection.ini
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dauto_features=enabled \
		-Dgtk_doc=$(with_docs) \
		-Dinstall-tests=true \
		$(configure_options)

override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	debian/tests/run-with-locales \
		--generate en_US.utf8 \
		-- \
	env \
		LC_ALL=en_US.utf8 \
	dh_auto_test
endif

# Skip build-time tests if all we are building is documentation; running
# them once per architecture is plenty
override_dh_auto_test-indep:
	@:

# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
# quite right for installed-tests
override_dh_fixperms:
	dh_fixperms -Xusr/libexec/installed-tests
ifneq ($(filter %-tests,$(binaries)),)
	chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests
endif

override_dh_makeshlibs:
	dh_makeshlibs --add-udeb=libpango1.0-udeb -- -c4