File: rules

package info (click to toggle)
darkice 1.3-0.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,024 kB
  • sloc: cpp: 32,044; sh: 11,508; makefile: 129
file content (30 lines) | stat: -rwxr-xr-x 1,066 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# Dependency on NSL is not really required on some architectures.
DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed -Wl,-z,defs
DEB_BUILD_MAINT_OPTIONS := hardening=+all
include /usr/share/dpkg/default.mk

POLICY_TARGETS := binary binary-arch binary-indep build build-arch	\
build-indep clean
.PHONY: $(POLICY_TARGETS)
$(POLICY_TARGETS):
	dh $@ --with autoreconf

# lame lacks pkg-config support and requires an explicit option.

# vorbis, opus, twolame, alsa, pulseaudio, jack, samplerate are listed
# in Build-Depends and selected automatically if present.

# faac, aacplus are not in Debian main. Explicitly disable them so
# that the build does not change if they are installed or removed.

# Trick sysconfdir to install the examples in the right place.
.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- \
		$(foreach v,CFLAGS CPPFLAGS CXXFLAGS LDFLAGS,"$(v)=$($(v))") \
		--with-lame-prefix=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--sysconfdir=/usr/share/doc/darkice/examples \
		--without-aacplus \
		--without-faac