Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 DPKG_EXPORT_BUILDFLAGS = 1
4
5 DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed
6
7 DEB_BUILD_MAINT_OPTIONS = hardening=+all
8
9 include /usr/share/dpkg/default.mk
10
11 # Needed for testsuite
12 export XDG_RUNTIME_DIR = $(CURDIR)/debian/tmp/tmp/xdgruntimedir
13 export CK_TIMEOUT_MULTIPLIER = 0
14
15 ifeq ($(words $(sort $(filter stage1,$(DEB_BUILD_PROFILES)))),1)
16 bluez = disabled
17 else ifneq ($(DEB_HOST_ARCH_OS),linux)
18 bluez = disabled
19 else
20 bluez = enabled
21 endif
22
23 ifeq ($(DEB_HOST_ARCH_OS),linux)
24 systemd = enabled
25 else
26 systemd = disabled
27 endif
28
29 # Libs should be in the multi-arch path, but the modules should be in the
30 # normal directory as pulseaudio is foreign
31 DEB_MESON_OPTIONS = \
32 -Ddoxygen=false \
33 -Dx11=enabled \
34 -Dhal-compat=false \
35 -Dgsettings=enabled \
36 -Dgstreamer=enabled \
37 -Dbluez5-gstreamer=enabled \
38 -Dbluez5=$(bluez) \
39 -Dstream-restore-clear-old-devices=true \
40 -Dzshcompletiondir=/usr/share/zsh/vendor-completions \
41 -Dsystemduserunitdir=/usr/lib/systemd/user \
42 -Dudevrulesdir=/usr/lib/udev/rules.d \
43 -Dmodlibexecdir=/usr/lib/pulse-$(DEB_VERSION_UPSTREAM)/modules \
44 -Dpulsedsp-location=/usr/\\'$$'LIB/pulseaudio \
45 -Dgtk=enabled \
46 -Dglib=enabled \
47 -Dfftw=enabled \
48 -Djack=enabled \
49 -Dopenssl=enabled \
50 -Dipv6=true \
51 -Dsoxr=enabled \
52 -Dsystemd=$(systemd) \
53 -Dudev=$(systemd) \
54 -Dstream-restore-clear-old-devices=true \
55 -Dtests=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),false,true) \
56
57
58 PA_MAJORMINOR = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -r -e 's/^([0-9]+\.[0-9]+).*/\1/')
59
60 %:
61 dh $@
62
63
64 override_dh_auto_configure:
65 dh_auto_configure -- $(DEB_MESON_OPTIONS)
66
67 override_dh_auto_install:
68 dh_auto_install
69 install -d $(CURDIR)/debian/tmp/usr/share/apport/package-hooks
70 cp $(CURDIR)/debian/apport-hook.py $(CURDIR)/debian/tmp/usr/share/apport/package-hooks/source_pulseaudio.py
71 ifeq ($(DEB_HOST_ARCH_OS),linux)
72 mkdir -p $(CURDIR)/debian/tmp/usr/share/alsa/alsa.conf.d
73 cp -a $(CURDIR)/debian/pulse.conf \
74 $(CURDIR)/debian/tmp/usr/share/alsa/alsa.conf.d
75 cp -a $(CURDIR)/debian/pulse-alsa.conf $(CURDIR)/debian/tmp/usr/share/alsa
76 endif
77 ifneq (,$(filter $(DEB_HOST_ARCH),amd64 arm64 i386 mips64el ppc64el riscv64 s390x alpha hurd-amd64 ia64 loong64 ppc64 sparc64 x32))
78 dh_install -ppulseaudio-utils debian/tmp/usr/bin/padsp
79 dh_install -ppulseaudio-utils debian/tmp/usr/share/man/man1/padsp.1
80 endif
81
82 override_dh_makeshlibs:
83 sed 's/PA_MAJORMINOR/$(PA_MAJORMINOR)/' debian/shlibs.local.in > debian/shlibs.local
84 dh_makeshlibs --exclude=usr/lib/pulse-$(DEB_VERSION_UPSTREAM)/modules \
85 --exclude=usr/lib/$(DEB_HOST_MULTIARCH)/pulseaudio
86
87 override_dh_shlibdeps:
88 dh_shlibdeps --libpackage=pulseaudio
89
90 override_dh_installinit:
91 dh_installinit -ppulseaudio --name=pulseaudio-enable-autospawn
92
93 override_dh_installdocs:
94 dh_installdocs -A NEWS README
95
96 override_dh_clean:
97 dh_clean
98 rm -f debian/shlibs.local