Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 BUILDDIR = obj-$(DEB_HOST_MULTIARCH)
6
7 ifeq ($(shell pandoc -v 2>/dev/null),)
8 INSTALL_MANPAGES="-DINSTALL_MANPAGES=OFF"
9 endif
10
11 %:
12 dh $@ --buildsystem=cmake
13
14 override_dh_update_autotools_config:
15 override_dh_autoreconf:
16
17 override_dh_auto_configure:
18 dh_auto_configure -B $(BUILDDIR)-static -- \
19 $(INSTALL_MANPAGES)
20 dh_auto_configure -- \
21 -DBUILD_SHARED_LIBS=ON \
22 $(INSTALL_MANPAGES)
23
24 override_dh_auto_build:
25 dh_auto_build -B $(BUILDDIR)-static
26 dh_auto_build
27
28 override_dh_auto_build-indep:
29 dh_auto_build -i -- -C doc
30 touch doc/FLAC.tag && sed -e 's,>.*/include/,>/usr/include/,g' -i doc/FLAC.tag
31
32 override_dh_auto_install:
33 dh_auto_install -B $(BUILDDIR)-static
34 dh_auto_install
35
36 override_dh_auto_install-indep:
37 dh_auto_install -i -- -C doc
38
39 execute_after_dh_auto_install-arch:
40 mkdir -p debian/tmp/usr/share/man
41
42 override_dh_makeshlibs:
43 dh_makeshlibs -plibflac++11 -VUpstream-Version
44 dh_makeshlibs --remaining-packages
45
46 override_dh_auto_test-arch:
47 # drop (fake)root privileges,
48 # but still skip running test suite
49 # as it is *exhaustive*
50 env -u LD_PRELOAD dh_auto_test -a --no-act
51
52 override_dh_auto_test-indep: