File: rules

package info (click to toggle)
mpv 0.32.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 11,564 kB
  • sloc: ansic: 127,926; python: 16,395; objc: 3,341; javascript: 557; sh: 532; cpp: 258; ruby: 113; pascal: 49; makefile: 30
file content (40 lines) | stat: -rwxr-xr-x 924 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

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS := hardening=+all # #741439, #799738

ifeq ($(DEB_HOST_ARCH_OS),linux)
  ARCH_CONFIGURE = --enable-dvbin
endif

%:
	dh $@

override_dh_auto_configure:
	python3 ./waf configure						\
			--prefix=/usr					\
			--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)		\
			--confdir=/etc/mpv				\
			--zshdir=/usr/share/zsh/vendor-completions	\
			--enable-cdda					\
			--enable-dvdnav					\
			--enable-libmpv-shared				\
			--enable-libsmbclient				\
			--enable-sdl2					\
			--enable-sndio					\
			--disable-build-date				\
			$(ARCH_CONFIGURE)

override_dh_auto_build:
	python3 ./waf -v build

override_dh_auto_install:
	python3 ./waf -v install --destdir=debian/tmp

override_dh_installchangelogs:
	dh_installchangelogs RELEASE_NOTES

override_dh_auto_clean:
	test -s ./waf && python3 ./waf -v distclean || true
	find . -name "*.pyc" -delete