Name libpulse0
Description PulseAudio client libraries
Version 17.0+dfsg1-2+b1
Package Base pulseaudio
Homepage http://pulseaudio.org
Maintainers ['Pulseaudio maintenance team <pkg-pulseaudio-devel@lists.alioth.debian.org>']
Contributors ['Felipe Sateler <fsateler@debian.org>', 'Sebastien Bacher <seb128@debian.org>', 'Sjoerd Simons <sjoerd@debian.org>']
Distro-repo https://salsa.debian.org/pulseaudio-team/pulseaudio
Sources ['https://sources.debian.org/data/main/p/pulseaudio/17.0+dfsg1-2/debian/watch', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/disable-autospawn.patch', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/git_tests_alignment.patch', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/selectively-disable-libpulsedsp.patch', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/series', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/ucm-check-verb-for-device-status.patch', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/ucm-fix-infinite-recursion.patch', 'https://sources.debian.org/src/pulseaudio/17.0+dfsg1-2/debian/patches/ucm-replace-context-assertion-with-error.patch']
Dependencies ['libasyncns0', 'libc6', 'libdbus-1-3', 'libsndfile1', 'libsystemd0', 'libx11-6', 'libx11-xcb1', 'libxcb1']
Optional-Dependencies ['pulseaudio']
Build-Dependencies ['debhelper-compat', 'meson', 'ninja-build', 'check <!nocheck>', 'desktop-file-utils <!nocheck>', 'dh-exec', 'intltool', 'libasound2-dev [linux-any]', 'libasyncns-dev', 'libavahi-client-dev', 'libbluetooth-dev [linux-any] <!stage1>', 'libsbc-dev [linux-any]', 'libcap-dev [linux-any]', 'libfftw3-dev', 'libglib2.0-dev', 'libgstreamer1.0-dev', 'libgstreamer-plugins-base1.0-dev', 'libgtk-3-dev', 'libice-dev', 'libjack-dev', 'liblirc-dev', 'libltdl-dev', 'liborc-0.4-dev', 'libsndfile1-dev', 'libsoxr-dev', 'libspeexdsp-dev', 'libssl-dev', 'libsystemd-dev [linux-any]', 'libtdb-dev', 'libudev-dev [linux-any]', 'libwebrtc-audio-processing-dev', 'libwrap0-dev', 'libx11-xcb-dev', 'libxcb1-dev', 'libxml2-utils <!nocheck>', 'libxtst-dev', 'systemd-dev [linux-any]']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 786aca79119cb249562708fd24dcdf817604cfe75bbfcb8cda3464042e17f40e
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1

DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed

DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

# Needed for testsuite
export XDG_RUNTIME_DIR = $(CURDIR)/debian/tmp/tmp/xdgruntimedir
export CK_TIMEOUT_MULTIPLIER = 0

ifeq ($(words $(sort $(filter stage1,$(DEB_BUILD_PROFILES)))),1)
  bluez = disabled
else ifneq ($(DEB_HOST_ARCH_OS),linux)
  bluez = disabled
else
  bluez = enabled
endif

ifeq ($(DEB_HOST_ARCH_OS),linux)
  systemd = enabled
else
  systemd = disabled
endif

# Libs should be in the multi-arch path, but the modules should be in the
# normal directory as pulseaudio is foreign
DEB_MESON_OPTIONS = \
  -Ddoxygen=false \
  -Dx11=enabled \
  -Dhal-compat=false \
  -Dgsettings=enabled \
  -Dgstreamer=enabled \
  -Dbluez5-gstreamer=enabled \
  -Dbluez5=$(bluez) \
  -Dstream-restore-clear-old-devices=true \
  -Dzshcompletiondir=/usr/share/zsh/vendor-completions \
  -Dsystemduserunitdir=/usr/lib/systemd/user \
  -Dudevrulesdir=/usr/lib/udev/rules.d \
  -Dmodlibexecdir=/usr/lib/pulse-$(DEB_VERSION_UPSTREAM)/modules \
  -Dpulsedsp-location=/usr/\\'$$'LIB/pulseaudio \
  -Dgtk=enabled \
  -Dglib=enabled \
  -Dfftw=enabled \
  -Djack=enabled \
  -Dopenssl=enabled \
  -Dipv6=true \
  -Dsoxr=enabled \
  -Dsystemd=$(systemd) \
  -Dudev=$(systemd) \
  -Dstream-restore-clear-old-devices=true \
  -Dtests=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),false,true) \


PA_MAJORMINOR = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -r -e 's/^([0-9]+\.[0-9]+).*/\1/')

%:
	dh $@


override_dh_auto_configure:
	dh_auto_configure -- $(DEB_MESON_OPTIONS)

override_dh_auto_install:
	dh_auto_install
	install -d $(CURDIR)/debian/tmp/usr/share/apport/package-hooks
	cp $(CURDIR)/debian/apport-hook.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_pulseaudio.py
ifeq ($(DEB_HOST_ARCH_OS),linux)
	mkdir -p $(CURDIR)/debian/tmp/usr/share/alsa/alsa.conf.d
	cp -a $(CURDIR)/debian/pulse.conf \
		$(CURDIR)/debian/tmp/usr/share/alsa/alsa.conf.d
	cp -a $(CURDIR)/debian/pulse-alsa.conf $(CURDIR)/debian/tmp/usr/share/alsa
endif
ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 i386 mips64el ppc64el riscv64 s390x alpha hurd-amd64 ia64 loong64 ppc64 sparc64 x32))
	dh_install -ppulseaudio-utils debian/tmp/usr/bin/padsp
	dh_install -ppulseaudio-utils debian/tmp/usr/share/man/man1/padsp.1
endif

override_dh_makeshlibs:
	sed 's/PA_MAJORMINOR/$(PA_MAJORMINOR)/' debian/shlibs.local.in > debian/shlibs.local
	dh_makeshlibs --exclude=usr/lib/pulse-$(DEB_VERSION_UPSTREAM)/modules \
		--exclude=usr/lib/$(DEB_HOST_MULTIARCH)/pulseaudio

override_dh_shlibdeps:
	dh_shlibdeps --libpackage=pulseaudio

override_dh_installinit:
	dh_installinit -ppulseaudio --name=pulseaudio-enable-autospawn

override_dh_installdocs:
	dh_installdocs -A NEWS README

override_dh_clean:
	dh_clean
	rm -f debian/shlibs.local