Name pkgconf-bin
Description manage compile and link flags for libraries (binaries)
Version 1.8.1-2build1
Package Base pkgconf
Homepage http://pkgconf.org/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/pkgconf/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/pkgconf-bin/plain/debian/watch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pkgconf/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pkgconf/plain/debian/patches/fix-exists-print-errors.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pkgconf/plain/debian/patches/pkg.m4?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pkgconf/plain/debian/patches/regenerate-docs-for-libpkgconf.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pkgconf/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/pkgconf/plain/debian/patches/sysroot_dir-logic.patch?h=ubuntu/noble']
Dependencies ['libc6', 'libpkgconf3']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'kyua <!nocheck>', 'atf-sh <!nocheck>']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 7a812f05ee1610154b433e2ad54f6e4163fcbb306b9fb31afe959afb2e5e1545
#! /usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifneq (,$(filter $(DEB_HOST_ARCH_OS),hurd))
DEB_CPPFLAGS_MAINT_APPEND = -DPATH_MAX=4096

override_dh_auto_test:
	: tests fail on Hurd due to a kyua crash
	-dh_auto_test || cat debian/.debhelper/generated/_source/home/.kyua/logs/kyua.*.log
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
   SET_PKG_CONFIG = PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config
   GCC = $(DEB_HOST_GNU_TYPE)-gcc
else
   GCC = gcc
endif

SYSTEM_LIBDIRS := $(shell sh debian/system-libdirs.sh $(GCC))

%:
	dh $@

override_dh_auto_configure:
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	cp -f /usr/share/misc/config.guess config.guess
endif
	$(SET_PKG_CONFIG) dh_auto_configure -- --prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--with-pkg-config-dir=/usr/local/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig \
		--with-system-libdir=$(SYSTEM_LIBDIRS)

override_dh_auto_install:
	dh_auto_install
	rm debian/tmp/usr/lib/*/*.la
	sed \
		-e "s^@GNU_TYPE@^$(DEB_HOST_GNU_TYPE)^g" \
		-e "s^@MULTIARCH@^$(DEB_HOST_MULTIARCH)^g" \
		-e "s^@SYSTEM_LIBDIRS@^$(SYSTEM_LIBDIRS)^g" \
		debian/personality.in > debian/pkgconf/usr/share/pkgconfig/personality.d/$(DEB_HOST_GNU_TYPE).personality
ifneq ($(DEB_HOST_MULTIARCH),$(DEB_HOST_GNU_TYPE))
	ln -s ${DEB_HOST_GNU_TYPE}.personality debian/pkgconf/usr/share/pkgconfig/personality.d/${DEB_HOST_MULTIARCH}.personality
endif

override_dh_installchangelogs:
	dh_installchangelogs NEWS

.PHONY: override_dh_auto_configure override_dh_auto_install