File: rules

package info (click to toggle)
audacity 2.4.2~dfsg0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 174,812 kB
  • sloc: ansic: 399,725; cpp: 292,221; python: 53,279; sh: 28,982; lisp: 8,078; makefile: 4,045; xml: 2,235; perl: 2,110; java: 1,551; asm: 545; pascal: 395; cs: 122; sed: 42; awk: 35
file content (29 lines) | stat: -rwxr-xr-x 905 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# provide custom lame.pc
export PKG_CONFIG_PATH=$(CURDIR)/debian/pkgconfig

%:
	dh $@

override_dh_auto_configure:
	sed 's/@DEB_HOST_MULTIARCH@/${DEB_HOST_MULTIARCH}/' debian/pkgconfig/lame.pc.in > debian/pkgconfig/lame.pc
	dh_auto_configure -- \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-Daudacity_use_sbsms=off \
		-Daudacity_use_ffmpeg=linked

# tests fails with system portaudio
override_dh_auto_test:

execute_after_dh_auto_install:
	# Move appdata to metainfo
	mv debian/tmp/usr/share/appdata/ debian/tmp/usr/share/metainfo/
	# Don't package unnecessary copy of GPL
	rm debian/tmp/usr/share/doc/audacity/LICENSE.txt
	# Move indep plugins to usr/share
	mkdir -p debian/tmp/usr/share/audacity
	mv debian/tmp/usr/lib/audacity/nyquist debian/tmp/usr/lib/audacity/plug-ins debian/tmp/usr/share/audacity