File: rules

package info (click to toggle)
flac 1.5.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,672 kB
  • sloc: ansic: 51,939; cpp: 10,644; sh: 6,670; makefile: 930; perl: 162
file content (52 lines) | stat: -rwxr-xr-x 1,196 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

BUILDDIR = obj-$(DEB_HOST_MULTIARCH)

ifeq ($(shell pandoc -v 2>/dev/null),)
INSTALL_MANPAGES="-DINSTALL_MANPAGES=OFF"
endif

%:
	dh $@ --buildsystem=cmake

override_dh_update_autotools_config:
override_dh_autoreconf:

override_dh_auto_configure:
	dh_auto_configure -B $(BUILDDIR)-static -- \
		$(INSTALL_MANPAGES)
	dh_auto_configure -- \
		-DBUILD_SHARED_LIBS=ON \
		$(INSTALL_MANPAGES)

override_dh_auto_build:
	dh_auto_build -B $(BUILDDIR)-static
	dh_auto_build

override_dh_auto_build-indep:
	dh_auto_build -i -- -C doc
	touch doc/FLAC.tag && sed -e 's,>.*/include/,>/usr/include/,g' -i doc/FLAC.tag

override_dh_auto_install:
	dh_auto_install -B $(BUILDDIR)-static
	dh_auto_install

override_dh_auto_install-indep:
	dh_auto_install -i -- -C doc

execute_after_dh_auto_install-arch:
	mkdir -p debian/tmp/usr/share/man

override_dh_makeshlibs:
	dh_makeshlibs -plibflac++11 -VUpstream-Version
	dh_makeshlibs --remaining-packages

override_dh_auto_test-arch:
	# drop (fake)root privileges,
	# but still skip running test suite
	# as it is *exhaustive*
	env -u LD_PRELOAD dh_auto_test -a --no-act

override_dh_auto_test-indep: