File: rules

package info (click to toggle)
flac 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,076 kB
  • sloc: ansic: 49,678; cpp: 8,273; sh: 6,117; makefile: 947; perl: 162
file content (40 lines) | stat: -rwxr-xr-x 935 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
#!/usr/bin/make -f

export DEB_HOST_ARCH_CPU  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

# Enable SSE only on amd64
ifeq ($(DEB_HOST_ARCH_CPU),amd64)
	OPTFLAGS = --disable-altivec --enable-sse
# Enable Altivec only on ppc64
else ifeq ($(DEB_HOST_ARCH_CPU),ppc64)
	OPTFLAGS = --enable-altivec --disable-sse
else
	OPTFLAGS = --disable-asm-optimizations --disable-sse --disable-altivec
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-rpath \
		--disable-xmms-plugin \
		$(OPTFLAGS) \
		--enable-static \
		--disable-silent-rules

override_dh_auto_build-indep:
	dh_auto_build -i -- -C doc

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

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: