Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # DEB_BUILD_PROFILES='nodoc'
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
6 export systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
7
8 CONFIGURE_FLAGS := \
9 --with-libfreeaptx \
10 --enable-aptx \
11 --enable-aptx-hd \
12 --enable-faststream \
13 --enable-lc3-swb \
14 --enable-mp3lame \
15 --enable-mpg123 \
16 --enable-msbc \
17 --enable-ofono \
18 --enable-midi \
19 --enable-opus \
20 --enable-upower \
21 --enable-cli \
22 --enable-rfcomm \
23 --enable-a2dpconf \
24 --enable-hcitop \
25 --enable-test \
26 --enable-systemd \
27 --enable-manpages \
28 # very noisy (#1103614)
29 # --enable-debug
30 # fdk-aac (libfdk-aac-dev) is in non-free
31 # --enable-aac
32
33 ifeq ($(DEB_HOST_ARCH_ENDIAN),little)
34 CONFIGURE_FLAGS += --enable-ldac
35 endif
36
37 %:
38 dh $@ --exclude=.la
39
40 override_dh_auto_configure:
41 dh_auto_configure -- $(CONFIGURE_FLAGS)
42
43 execute_before_dh_install:
44 # Remove static link libraries.
45 rm -rf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/alsa-lib/*.a
46
47 override_dh_installsystemd:
48 dh_installsystemd -pbluez-alsa-utils --name=bluealsa-aplay bluealsa-aplay.service
49 dh_installsystemd -pbluez-alsa-utils --name=bluealsa bluealsa.service
50
51 override_dh_auto_test:
52 # DBus is needed to run the tests
53 ifneq (,$(filter $(DEB_BUILD_ARCH),mips64el loong64 hppa powerpc ppc64 sparc64 s390x ppc64el))
54 dbus-run-session -- make CFLAGS="$(CFLAGS) -fno-lto" check VERBOSE=1 \
55 || echo "Ignoring test failures"
56 else
57 dbus-run-session -- make CFLAGS="$(CFLAGS) -fno-lto" check VERBOSE=1
58 endif