File: rules

package info (click to toggle)
mediainfo 26.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,912 kB
  • sloc: cpp: 19,090; objc: 3,102; xml: 1,428; sh: 1,328; python: 263; makefile: 212
file content (56 lines) | stat: -rwxr-xr-x 1,445 bytes parent folder | download | duplicates (5)
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
53
54
55
56
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

auto_build_cmd =					\
	cat debian/autoreconf | while read path; do	\
		$(1) -D"$$path";			\
	done

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	$(call auto_build_cmd,dh_auto_configure)

override_dh_auto_build:
	$(call auto_build_cmd,dh_auto_build)

override_dh_auto_install:
	$(call auto_build_cmd,dh_auto_install)
	# Legacy appstream data path
	rm -fr $(CURDIR)/debian/tmp/usr/share/metainfo
	install -dm 755 $(CURDIR)/debian/tmp/usr/share/appdata
	install -m 644 Project/GNU/GUI/mediainfo-gui.metainfo.xml $(CURDIR)/debian/tmp/usr/share/appdata/mediainfo-gui.appdata.xml

override_dh_auto_clean:
	$(call auto_build_cmd,dh_auto_clean)

override_dh_installchangelogs:
	dh_installchangelogs -p mediainfo History_CLI.txt
	dh_installchangelogs -p mediainfo-gui History_GUI.txt

override_dh_install:
	dh_install --fail-missing

override_dh_installdocs:
	dh_installdocs

	prename 's/ReadMe_.*\.txt$$/README/' debian/*/usr/share/doc/*/ReadMe*

%.1: %.pod
	pod2man --center "User Commands" --release=MediaInfo\ 0.7.52 $< > $@

override_dh_installman: debian/mediainfo.1 debian/mediainfo-gui.1
	dh_installman

override_dh_strip:
	dh_strip -p mediainfo --dbg-package=mediainfo-dbg
	dh_strip -p mediainfo-gui --dbg-package=mediainfo-gui-dbg

clean:
	rm -f debian/*.1
	dh clean --with=autoreconf

%:
	dh $@ --with=autoreconf --parallel